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-*:*"
48 # All packets read from the detail file are processed through
49 # the preacct && accounting sections.
51 # The following text is copied verbatim from sites-available/default.
52 # You should edit it for your own local configuration.
55 # Pre-accounting. Decide which accounting type to use.
61 # Ensure that we have a semi-unique identifier for every
62 # request, and many NAS boxes are broken.
66 # Look for IPASS-style 'realm/', and if not found, look for
67 # '@realm', and decide whether or not to proxy, based on
70 # Accounting requests are generally proxied to the same
71 # home server as authentication requests.
77 # Read the 'acct_users' file
82 # Accounting. Log the accounting data.
86 # Create a 'detail'ed log of the packets.
87 # Note that accounting requests which are proxied
88 # are also logged in the detail file.
92 # Update the wtmp file
94 # If you don't use "radlast", you can delete this line.
98 # For Simultaneous-Use tracking.
100 # Due to packet losses in the network, the data here
101 # may be incorrect. There is little we can do about it.
105 # Return an address to the IP Pool when we see a stop record.
109 # Log traffic to an SQL database.
111 # NOTE! You will have to ensure that any accounting packets
112 # NOT handled by the SQL module (e.g. "stop with zero session length"
113 # result in the accounting section still returning "ok".
115 # Otherwise, the server will think that the accounting packet
116 # was NOT handled properly, and will keep trying to process it
117 # through this virtual server!
119 # See "Accounting queries" in sql.conf
123 # Instead of sending the query to the SQL server,
124 # write it into a log file.
128 # Cisco VoIP specific bulk accounting
131 # Filter attributes from the accounting response.
132 attr_filter.accounting_response
135 # See "Autz-Type Status-Server" for how this works.
137 # Acct-Type Status-Server {