Managing Data Volume Control More Than 4GB FR & CoovaChilli

Alan DeKok aland at deployingradius.com
Wed Oct 9 15:12:56 CEST 2013


Russell Mike wrote:
> All-In-MB counter works. Please note, when a user has downloaded his
> quota, counter do not force log off .

  The counter modules DOES NOT DO THAT.

  To see why, ask yourself what does FreeRADIUS see when the user has
downloaded his quota?

  The answer is "nothing".  The users traffic doesn't go through
FreeRADIUS, because FreeRADIUS isn't a router.

  What FreeRADIUS *may* see is an Accounting-Request for the user.
Which contains the total traffic for the user.

  So if you want to do something when the users traffic is over the
quota, you have to do it in the accounting section.  You have to update
the SQL database, and then check if the user is over quota.

  If so, send a Disconnect-Message, or exec a program to kick the user
offline.

> Which basically means that initially authorization is done by SQL then
> "max_all_mb", checks are only done once when the user makes the logon
> attempt and checks are never done again.

  Yes.  That's what you've configured.  If you want more, you need to
tell the server to do more

> This is where i have failed.
> Since you are more in to this, is there a way to perform this check
> on frequent basis and send reply to NAS to logoff user? then it should
> work. 

  Read the debug output.  You'll see the server receiving
Accounting-Request packets, with the users traffic over quota.  THAT is
when FreeRADIUS can do something.

  Alan DeKok.


More information about the Freeradius-Users mailing list