<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=TIS-620" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
pawel_221 wrote:
<blockquote cite="mid:27173361.post@talk.nabble.com" type="cite">
<pre wrap="">I'm trying to change user speed to lower when he reach transfer limit.
Currently after reaching transfer limit NAS is disconnecting user and when
he's trying to connect he is rejected. In debug log I can see:
rlm_sqlcounter: (Check item - counter) is less than zero
rlm_sqlcounter: Rejected user user01, check_item=50000000, counter=50062959
++[noresetbytescounter] returns reject
Could you help me with Post-Auth-Type REJECT? How can I read the
control:counters in Post-Auth? I couldn't find an answer on forum... What
should I write instead "if (%{control:counter} > %{control:check_item} ) {"
in my config?
Post-Auth-Type REJECT {
if (%{control:counter} > %{control:check_item} ) {
update reply {
Reply-Message := "You have reached your transfer limit. Limited
bandwitch"
}
update control {
Auth-Type := "Accept"
WISPr-Bandwidth-Max-Down = 1048576
WISPr-Bandwidth-Max-Up = 262144
}
}
My sqlcounter.conf:
sqlcounter noresetbytescounter {
counter-name = Max-Total-Octets
check-name = Max-Total-Octets
reply-name = HotSpot-Max-Total-Octets
sqlmod-inst = sql
key = User-Name
reset = never
query = "SELECT SUM(AcctInputOctets)+SUM(AcctOutputOctets) FROM
radacct WHERE UserName='%{%k}'"
}
Greetings
Pawel
</pre>
</blockquote>
you can not do that after Post-Auth-Type REJECT<br>
<br>
you must do after <br>
<pre wrap="">noresetbytescounter</pre>
<br>
read on my arti <a class="moz-txt-link-freetext" href="http://www.easyzonecorp.net/network/view.php?ID=1042">http://www.easyzonecorp.net/network/view.php?ID=1042</a><br>
<br>
Freeradius unlang accept after chap reject.<br>
<br>
<br>
and then apply it.<br>
<br>
i know you can !!<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
<a href="http://www.EasyHorpak.com" target="_blank">http://www.EasyHorpak.com</a>
- แหล่งค้นหาหอพัก,อพาร์ทเมนท์,แมนชั่น,คอนโด,โรงแรม<br>
<a href="http://www.EasyZoneCorp.net" target="_blank">http://www.EasyZoneCorp.net</a>
- ซอฟแวร์จัดการ internet คุณภาพสูง Hotpsot และ PPPoE ,Anti NetCut, Mac
spoof<br>
<a href="http://www.thai-school.net" target="_blank">http://www.thai-school.net</a>
- เว็บไซต์โรงเรียน,ศิษย์เก่า สำเร็จรูป <br>
<a href="http://www.easyhorpak.com/superlink" target="_blank">EasyZone
SuperLink </a> - แลกหมื่นลิ้งคืในคลิ๊กเดียว <br>
</div>
</body>
</html>