Managing Data Volume Control More Than 4GB FR & CoovaChilli

Russell Mike radius.sir at gmail.com
Mon Oct 21 18:38:09 CEST 2013


On Wed, Oct 9, 2013 at 3:27 PM, Alan DeKok <aland at deployingradius.com>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.
>



Thats fine, thanks for guidelines, Alan. how can i execute the code
frequently in accounting section? i understand how to send disconnect
message if value is un desirable.



>   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/20131021/2da527d2/attachment.html>


More information about the Freeradius-Users mailing list