<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; 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 id="OLK_SRC_BODY_SECTION">
<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">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">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">freeradius-users@lists.freeradius.org</a>><br>
<span style="font-weight:bold">Subject: </span>Disconnect on Accounting Octet Quota<br>
</div>
<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 class="">sqlcounter daily-BW-counter {</p>
<p class=""> counter-name = Daily-Session-Octets<br>
</p>
<p class=""> check-name = Max-Daily-Octets</p>
<p class=""> reply-name = Session-Timeout</p>
<p class=""> sqlmod-inst = sql<br>
</p>
<p class=""> key = User-Name</p>
<p class=""> reset = daily</p>
<p class=""><br>
</p>
<p class="">query = "SELECT SUM(AcctInputOctets) + SUM(AcctOutputOctets) FROM radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"</p>
<p class=""><br>
</p>
<p class=""><br>
</p>
<p class=""><br>
</p>
<p class="">}</p>
</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. 2247735). 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.
</body>
</html>