Managing Data Volume Control More Than 4GB FR & CoovaChilli
Russell Mike
radius.sir at gmail.com
Wed Oct 9 18:52:55 CEST 2013
Thanks Alan D
understood. I will use unlang in accounting.
Thanks
On Wednesday, October 9, 2013, Alan DeKok wrote:
> Russell Mike wrote:
> >> 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.
>
> Uh... you do know that "session" is not the same as "accounting", right?
>
> Why are you doing something wrong?
>
> > 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.
>
> Do you understand what the server does when it receives an accounting
> packet?
>
> Have you tried running the server in debugging mode, and seeing what
> happens when it receives an accounting packet?
>
> Do that before asking more questions. Watch the server go update SQL.
>
> Now... how do you query SQL (independent of RADIUS) to see if the
> users session is over quota?
>
> Then... put that query into the "accounting" section, via "unlang".
> Check if the user is over quota. If so, send a disconnect message.
>
> See raddb/sites-available/originate-coa for examples of originating a
> disconnect message.
>
> 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/e80da771/attachment.html>
More information about the Freeradius-Users
mailing list