Managing Data Volume Control More Than 4GB FR & CoovaChilli

Alan DeKok aland at deployingradius.com
Wed Oct 9 17:27:35 CEST 2013


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.


More information about the Freeradius-Users mailing list