<div>A) bandwidth limit</div>
<div>You can use WISPr-Bandwidth-Max-Down and WISPr-Bandwidth-Max-Up attribute to limit the bandwidth. they should be inserted in radreply or groupradreply table. But you need to modify NAS firewall to force the attribute to user.
</div>
<div> </div>
<div>I use chillispot. In the NAS I force all user Internet session to use tun0 device which is created by chillispot. This is my rule for forward chain :</div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div># iptables -P FORWARD DROP<br># iptables -F FORWARD<br># iptables -A FORWARD -o tun0-j ACCEPT<br># iptables -A FORWARD -i tun0 -j ACCEPT</div></blockquote>
<div>b) volume limit.</div>
<div>I face the same problem too when dealing with freeradius 1.1.3. but after upgrade to freeradius 1.1.4, the problems solved itself, no more <br>Session Time generated, but only AcctInputOctet. I suggest you to upgrade to Freeradius
1.1.4. but if you insist to stick on current version, you must create some perl script to help freeradius server to generate AcctInputOctet for accounting. <br> </div>
<div><span class="gmail_quote">On 3/22/07, <b class="gmail_sendername">Mathieu Lemaitre</b> <<a href="mailto:mlemaitre@walan.biz">mlemaitre@walan.biz</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">HI all,<br><br>I'm running freeradius 1.0.2 on a debian stable. For new clients, I need<br>to implement 2 functions:
<br><br>* a bandwidth limit on a per-user basis. I mean, I need to be able to<br>set, for a user, a value for his upstream and downstream bw, which is<br>sent by the radius as a reply attribute. Are they predefined attributes
<br>to do this?<br><br>* a volume limit: I'd like to be able to set a maximum amount of data<br>monthly downloadable for each user. I tried with rlm_slqcounter,<br>changing the sql request to check AcctInputOctet instead of SessionTime,
<br>but the problem is that radius always reply an attribute called<br>MaxSessionTime (or sthg like that), containing the remaining data volume<br>for the user... is there as way to change the name of the attribute<br>answered by freeradius??
<br><br>Many thaks,<br><br><br>Mathieu<br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Best Regards,<br><br>Fadli M. Zain<br>Leadership and Lifelong Learning