<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;">Dear Mike,<div><br></div><div>Thank you for your reply.</div><div><br></div><div>What i don’t understand is how to write skip group “offertaA_unlimited” and use “offertaA_limited” in the update reply</div><div><br><div><div>Il giorno 26/set/2014, alle ore 13:18, Russell Mike <<a href="mailto:radius.sir@gmail.com">radius.sir@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><font size="4"><span style="font-family:georgia,serif">No, i would not help all, i want you to learn so that you can troubleshoot as needed. Defiantly, i would give fare idea how that would be done. it is so easy, anyways. <br><br>In "/etc/freeradius/sites-available/default" , in your case chillispot_max_byte_monthly. Do like this<br></span></font></div><font size="4"><span style="font-family:georgia,serif"><br></span></font><br><font size="4"><span style="font-family:georgia,serif"><font size="4"><span style="font-family:georgia,serif">access-period<br></span></font><font size="4"><span style="font-family:georgia,serif">expiration<br></span></font></span></font><div><font size="4"><span style="font-family:georgia,serif">more entries....</span></font></div><font size="4"><span style="font-family:georgia,serif"><br>chillispot_max_byte_monthly{<br> reject = 1<br> }<br> if(reject){<br> update reply {<br> WISPr-Bandwidth-Max-Down := 100k<br> }<br> ok = reject<br> }<br></span></font><span style="font-family:georgia,serif"><font size="4"><br>This is not a solution, understand from my example how it is going to work. Please do not copy paste, it would not work.<br><br></font></span></div><div><span style="font-family:georgia,serif"><font size="4">Thanks / Regards<br></font></span></div><div><span style="font-family:georgia,serif"><font size="4">RM --<br> </font></span></div></div><div><span style="font-family:georgia,serif"> </span><br><div><br><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 9:59 AM, Emanuele Fia <span dir="ltr"><<a href="mailto:emanuele.fia@gmail.com" target="_blank">emanuele.fia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Dear Mike,<div><br></div><div>Exactly, i need to drop the bandwidth when the user reaches the bandwidth quota.</div><div><br></div><div>Can you help me to modify authorize section ?</div><div><div class="h5"><div><br></div><div><br><div><div>Il giorno 26/set/2014, alle ore 11:26, Russell Mike <<a href="mailto:radius.sir@gmail.com" target="_blank">radius.sir@gmail.com</a>> ha scritto:</div><br><blockquote type="cite"><div dir="ltr"><div><span style="font-family:trebuchet ms,sans-serif">OK<br></span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">You need to do unlang coding for that, you need to modify freeradius reply under authorize section. To be sure, are you saying when a user reaches the bandwidth quota you do not want to deny rather drop the bandwidth to 100K. Right? <br></span></div><div><span style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span style="font-family:trebuchet ms,sans-serif">Thanks<br></span></div><span style="font-family:trebuchet ms,sans-serif"><br></span><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 8:56 AM, Emanuele Fia <span dir="ltr"><<a href="mailto:emanuele.fia@gmail.com" target="_blank">emanuele.fia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto;">Dear Mike,<br>
<br>
Thank you for your answer.<br>
<span><br>
>Now happen that when sqlcounter 'Max-Monthly-TrafficIN' reach the value set in radgroupreply return auth reject.<br>
<br>
</span>When the counter 'Max-Monthly-TrafficIN’ reach the value 5000000 freeradius reply with access-reject that is not what i need. I need that when the counter reach the value of 5000000 freeradius reply with 'offertaA_limited' reply settings.<br>
<br>
The problem is the access-reject that send the sqlcounter.<br>
<br>
(Reply when counter reach the specified value )<br>
<br>
Sending Access-Request of id 23 to 127.0.0.1 port 1812<br>
User-Name = "1berrinoma1228721nx"<br>
User-Password = "su72ug"<br>
NAS-IP-Address = 78.159.220.181<br>
NAS-Port = 1812<br>
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=23, length=70<br>
Reply-Message = "Your maximum monthly usage time has been reached”<br>
<br>
<br>
Il giorno 26/set/2014, alle ore 10:45, Russell Mike <<a href="mailto:radius.sir@gmail.com" target="_blank">radius.sir@gmail.com</a>> ha scritto:<br>
<div><br>
> Hi<br>
><br>
> this is how it should work as you explained. what is wrong ? what do you want? please explain more. did you check if your counter does reset every month ?<br>
><br>
> Thanks<br>
><br>
><br>
> On Thu, Sep 25, 2014 at 12:05 PM, Emanuele Fia <<a href="mailto:emanuele.fia@gmail.com" target="_blank">emanuele.fia@gmail.com</a>> wrote:<br>
> Dear Freeradius Users,<br>
><br>
> I need some help in my freeradius configuration.<br>
><br>
> radusergroup<br>
> +---------------------+---------------------+----------+<br>
> | username | groupname | priority |<br>
> +---------------------+---------------------+----------+<br>
> | 1aaaaaaaaa1228721nx | offertaA_unlimited | 1 |<br>
> | 1aaaaaaaaa1228721nx | offertaA_limited | 2 |<br>
> +---------------------+---------------------+----------+<br>
><br>
> radgroupcheck<br>
> +----+---------------------+-----------------------+----+---------+<br>
> | id | groupname | attribute | op | value |<br>
> +----+---------------------+-----------------------+----+---------+<br>
> | 35 | offertaA_unlimited | Max-Monthly-TrafficIN | := | 5000000 |<br>
> +----+---------------------+-----------------------+----+---------+<br>
><br>
> radgroupreply<br>
> +-----+---------------------+---------------------+----+------------+<br>
> | id | groupname | attribute | op | value |<br>
> +-----+---------------------+---------------------+----+------------+<br>
> | 207 | offertaA_unlimited | Fall-Through | = | yes |<br>
> | 205 | offertaA_unlimited | Rate-Limit | = | 2048k/512k |<br>
> | 211 | offertaA_limited | Fall-Through | = | yes |<br>
> | 209 | offertaA_limited | Rate-Limit | = | 100k/100k |<br>
> +-----+---------------------+---------------------+----+------------+<br>
><br>
><br>
> My goal is that user '1aaaaaaaaa1228721nx' use the group 'offertaA_unlimited' until the attribute 'Max-Monthly-TrafficIN' ( sqlcounter ) reach the value and after this radius reply with settings of the group 'offertaA_limited'<br>
><br>
> Now happen that when sqlcounter 'Max-Monthly-TrafficIN' reach the value set in radgroupreply return auth reject.<br>
><br>
> Probably there is something to do in policy.conf, i have done some test without results =(<br>
><br>
> Thank you for help,<br>
> Emanuele<br>
><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>
><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>
<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>
</div></blockquote></div><br></div></div>
-<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></blockquote></div><br></div></div></div></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></div></div></div>
-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a></blockquote></div><br></div></body></html>