<div dir="ltr"><div class="gmail_extra">Thanks all for the input. I do use plain old pptpd and openvpn with freeradius and a mysql backend. No mikrotik or chillispot<br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 4:01 PM, Winfield, Alister <span dir="ltr"><<a href="mailto:Alister.Winfield@bskyb.com" target="_blank">Alister.Winfield@bskyb.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:12px;font-family:Verdana,sans-serif">
<div>Look at the network devices documentation there are many ways of doing it for example.</div>
<ol>
<li>Device has quotas and it manages them for you in some way.</li><li>Device has quotas and ‘asks’ you to make a decision by RADIUS (Often another authentication request with extra ‘quota’ attribute added).</li><li>Device sends interim accounting and you use CoA to stop a session that goes over quota on receipt of interim accounting packet.</li>

<li>Something else.</li></ol>
<div>Basically its a function of the software+hardware you are using and not a function of RADIUS itself (although RADIUS may be the control mechanism).</div>
<div><br>
</div>
<div>Alister</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">


<span style="font-weight:bold">From: </span>Ali Jawad <<a href="mailto:alijawad1@gmail.com" target="_blank">alijawad1@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>FreeRadius users mailing list <<a href="mailto:freeradius-users@lists.freeradius.org" target="_blank">freeradius-users@lists.freeradius.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, 16 July 2014 01:18<br>
<span style="font-weight:bold">To: </span>FreeRadius users mailing list <<a href="mailto:freeradius-users@lists.freeradius.org" target="_blank">freeradius-users@lists.freeradius.org</a>><br>
<span style="font-weight:bold">Subject: </span>Disconnect on Accounting Octet Quota<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi
<div>I did setup a max monthly quota check to limit the amount of B/W used by a user. The test worked, BUT only after a user disconnects and reconnects. While a user is connected he can go over limit and keep doing so. I did do some reading and obviously the
 reason is that in radacct acctinputoctets and acctoutputoctets are only set with a stop signal.</div>
<div><br>
</div>
<div>Quote : </div>
<div>
<p style="margin-top:0pt;font-family:Verdana;margin-bottom:5pt;font-size:13px;color:rgb(0,0,0)">
This attribute indicates how many octets have been received from the port over the course of this service being provided, and can only be present in Accounting-Request records where the Acct-Status-Type is set to Stop.</p>


</div>
<div><br>
</div>
<div>My setup is quite simple ,I do use the below. Now the question is , is there another approach to overcome this limitation ? Or can I force a Acct-Status refresh of some sort without disconnecting users ?</div>
<div><br>
</div>
<div>
<p>sqlcounter daily-BW-counter {</p>
<p>        counter-name = Daily-Session-Octets<br>
</p>
<p>        check-name = Max-Daily-Octets</p>
<p>        reply-name = Session-Timeout</p>
<p>        sqlmod-inst = sql<br>
</p>
<p>        key = User-Name</p>
<p>        reset = daily</p>
<p><br>
</p>
<p>query = "SELECT SUM(AcctInputOctets) + SUM(AcctOutputOctets) FROM radacct  WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>}</p>
</div>
</div>
</div>
</div>
</div></div></span>Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error,
 please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal
 and external networks. SKY and the SKY marks are trademarks of British Sky Broadcasting Group plc and Sky International AG and are used under licence. British Sky Broadcasting Limited (Registration No. 2906991), Sky-In-Home Service Limited (Registration No.
 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are direct or indirect subsidiaries of British Sky Broadcasting Group plc (Registration No. <a href="tel:2247735" value="+9742247735" target="_blank">2247735</a>). All of the companies mentioned in this paragraph are incorporated in England and
 Wales and share the same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.
</div>

<br>-<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></blockquote></div><br></div></div>