<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 20, 2014 at 8:59 PM, anusha mule <span dir="ltr"><<a href="mailto:anusha.mule9988@gmail.com" target="_blank">anusha.mule9988@gmail.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><span style="font-family:Calibri;font-size:medium">One thing is that - we read "sql_counter" module is useful to limit the time a user can spend daily, weekly, or monthly on the network.</span><br></div><div>
<p style="margin:0in 0in 0pt" class="MsoNormal"><font size="3" face="Calibri">Has sql_counter has problems in limiting a user's data usage or accounting the duration used in the each of the session establishment and provide the access.</font></p>
<p style="margin:0in 0in 0pt" class="MsoNormal"><font size="3" face="Calibri"></font></p></div></blockquote><div><br></div><div><br></div><div><br></div><div>Not really. Basically it counts/sums something from accounting table (e.g. session time), compare it against something else (e.g. user time quota), and return the difference in an attribute (e.g. session-timeout).</div><div><br></div><div>If your NAS (e.g. chillispot, openvpn, mikrotik routers, whatever) has an attribute that supports data limit, then you can use sqlcounter for that (e.g. <a href="http://forum.mikrotik.com/viewtopic.php?f=3&t=33879">http://forum.mikrotik.com/viewtopic.php?f=3&t=33879</a>)</div><div><br></div><div>You could setup multiple instance of sql counters, one for time limit, one for data limit.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>