radius traffic accounting - what attributes do I use for traffic (and how)
Posted
by Mark Regensberg
on Server Fault
See other posts from Server Fault
or by Mark Regensberg
Published on 2010-01-17T18:19:40Z
Indexed on
2010/03/15
6:09 UTC
Read the original article
Hit count: 501
radius
|radius-attributes
we are building a web front end for a internet access token management system that uses radius (freeradius) queried from a captive portal. Reason for building this part is the integration into the accounting and billing platform that operates behind the scenes (all other parts are currently available open source software)
The structure is fairly standard, and setting up the basic bits were easy enough (authentication, traffic updates from the captive portal, account expiry date/times) - but I seem to have run out of ability when it comes to limiting an account by traffic consumed.
So we can:
- set up usernames / passwords
- set expiry dates/times for a given user
- see the traffic for that user being accurately updated in RADACCT
But we can't figure out the correct way/attribute to expire a user when they have consumed X octets of traffic.
What attributes are used, or - maybe more accurately - what would be the correct way to use these attributes to limit an account to a certain volume of traffic?
Any links to documentation appreciated - freeradius documentation doesn't seem to address the issue directly, or I'm looking in the wrong place...
--mark
© Server Fault or respective owner