2 ######################################################################
4 # This is a sample configuration for "decoupled" accounting.
5 # "Decoupled" accounting is where the accounting packets are
6 # NOT written "live" to the back-end database. This method
7 # can only be used if you are not interested in "live"
8 # accounting. i.e. Where you can tolerate delays that may be
9 # a few seconds, before accounting packets get written to
12 # Oddly enough, this method can speed up the processing of
13 # accounting packets, as all database activity is serialized.
15 # This file is NOT meant to be used as-is. It needs to be
16 # edited to match your local configuration.
20 ######################################################################
22 # Define a virtual server to write the accounting packets.
23 # Any "listen" section that listens on an accounting port should
24 # set "virtual_server = write-detail.example.com
25 server write_detail.example.com {
28 # Write the "detail" files.
30 # See raddb/modules/detail.example.com for more info.
37 # Define a virtual server to process the accounting packets.
38 server read-detail.example.com {
39 # Read accounting packets from the detail file(s) for
43 filename = "${radacctdir}/detail.example.com/detail-*:*"
47 # All packets read from the detail file are processed through
48 # the preacct && accounting sections.
50 # The following text is copied verbatim from sites-available/default.
51 # You should edit it for your own local configuration.
54 # Pre-accounting. Decide which accounting type to use.
60 # Ensure that we have a semi-unique identifier for every
61 # request, and many NAS boxes are broken.
65 # Look for IPASS-style 'realm/', and if not found, look for
66 # '@realm', and decide whether or not to proxy, based on
69 # Accounting requests are generally proxied to the same
70 # home server as authentication requests.
76 # Read the 'acct_users' file
81 # Accounting. Log the accounting data.
85 # Create a 'detail'ed log of the packets.
86 # Note that accounting requests which are proxied
87 # are also logged in the detail file.
91 # Update the wtmp file
93 # If you don't use "radlast", you can delete this line.
97 # For Simultaneous-Use tracking.
99 # Due to packet losses in the network, the data here
100 # may be incorrect. There is little we can do about it.
104 # Return an address to the IP Pool when we see a stop record.
108 # Log traffic to an SQL database.
110 # NOTE! You will have to ensure that any accounting packets
111 # NOT handled by the SQL module (e.g. "stop with zero session length"
112 # result in the accounting section still returning "ok".
114 # Otherwise, the server will think that the accounting packet
115 # was NOT handled properly, and will keep trying to process it
116 # through this virtual server!
118 # See "Accounting queries" in sql.conf
122 # Instead of sending the query to the SQL server,
123 # write it into a log file.
127 # Cisco VoIP specific bulk accounting
130 # Filter attributes from the accounting response.
131 attr_filter.accounting_response
134 # See "Autz-Type Status-Server" for how this works.
136 # Acct-Type Status-Server {