Managing Data Volume Control More Than 4GB FR & CoovaChilli
Russell Mike
radius.sir at gmail.com
Wed Oct 9 16:26:58 CEST 2013
Thanks Alan. D
So if you want to do something when the users traffic is over the quota,
you have to do it in the accounting section.
Could you please kindly indicate what should i do there ? i tried to
perform the check again when user is online by adding counter entry in *
session* section. but did not work either.
session {
sql
gigawordcounter
}
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.
I am not very clear how to update mysql db & perform the check on frequent
basis. base on the output from the counter module (ok,noop,etc..), i
understand how to update the reply from un-lang to log off user.
Thanks / Regards
RM--
On Wed, Oct 9, 2013 at 1:12 PM, Alan DeKok <aland at deployingradius.com>wrote:
> 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.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20131009/ce175cd6/attachment.html>
More information about the Freeradius-Users
mailing list