<div dir="ltr"><font face="trebuchet ms, sans-serif">Thanks Alan. D</font><br><div class="gmail_extra"><br></div><div class="gmail_extra"><font face="verdana, sans-serif">So if you want to do something when the users traffic is over the quota, you have to do it in the accounting section.  </font></div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><font face="trebuchet ms, sans-serif">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 <b>session</b> section. but did not work either. </font></div>
<div class="gmail_extra"><font face="trebuchet ms, sans-serif"><br></font></div><div class="gmail_extra"><div class="gmail_extra"><font face="trebuchet ms, sans-serif">session {</font></div><div class="gmail_extra"><font face="trebuchet ms, sans-serif">        sql</font></div>
<div class="gmail_extra"><font face="trebuchet ms, sans-serif">        gigawordcounter</font></div><div class="gmail_extra"><font face="trebuchet ms, sans-serif">}</font></div><div class="gmail_extra"><br></div><div class="gmail_extra">
<font face="verdana, sans-serif">You have to update the SQL database, and then check if the user is over quota. </font><span style="font-family:verdana,sans-serif">If so, send a Disconnect-Message, or exec a program to kick the user </span><span style="font-family:verdana,sans-serif">offline.</span></div>
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font face="trebuchet ms, sans-serif">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.<br>
</font></div><div class="gmail_extra"><br></div><div><font face="trebuchet ms, sans-serif">Thanks / Regards</font></div><div><font face="trebuchet ms, sans-serif">RM--</font></div><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 1:12 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">Russell Mike wrote:<br>
> All-In-MB counter works. Please note, when a user has downloaded his<br>
> quota, counter do not force log off .<br>
<br>
</div>  The counter modules DOES NOT DO THAT.<br>
<br>
  To see why, ask yourself what does FreeRADIUS see when the user has<br>
downloaded his quota?<br>
<br>
  The answer is "nothing".  The users traffic doesn't go through<br>
FreeRADIUS, because FreeRADIUS isn't a router.<br>
<br>
  What FreeRADIUS *may* see is an Accounting-Request for the user.<br>
Which contains the total traffic for the user.<br>
<br>
  So if you want to do something when the users traffic is over the<br>
quota, you have to do it in the accounting section.  You have to update<br>
the SQL database, and then check if the user is over quota.<br>
<br>
  If so, send a Disconnect-Message, or exec a program to kick the user<br>
offline.<br>
<div class="im"><br>
> Which basically means that initially authorization is done by SQL then<br>
> "max_all_mb", checks are only done once when the user makes the logon<br>
> attempt and checks are never done again.<br>
<br>
</div>  Yes.  That's what you've configured.  If you want more, you need to<br>
tell the server to do more<br>
<div class="im"><br>
> This is where i have failed.<br>
> Since you are more in to this, is there a way to perform this check<br>
> on frequent basis and send reply to NAS to logoff user? then it should<br>
> work.<br>
<br>
</div>  Read the debug output.  You'll see the server receiving<br>
Accounting-Request packets, with the users traffic over quota.  THAT is<br>
when FreeRADIUS can do something.<br>
<span class=""><font color="#888888"><br>
  Alan DeKok.<br>
</font></span><div class=""><div class="h5">-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div></div>