SQLCounter configuration

tnt at kalik.net tnt at kalik.net
Thu Feb 26 12:19:06 CET 2009


>>> Can you show some examples please? I try to do like this:
>>>
>>>     noresetBytecounter
>>>
>>>     if (reject) {
>>>         update reply {
>>>             Reply-Message := "Traffic limit exceeded."
>>>         }
>>>     }
>>>
>>> but if noresetBytecounter return reject freeradius immediatly return
>>> reject
>>> to user and do not process 'if' clause
>>
>>   You need to put this in the "post-auth" section, "Reject" subsection.
>>  See the example configuration files.
>
>
>/etc/freeradius/sites-enabled/default[412]: "SQL Counter" modules aren't
>allowed in 'post-auth' sections -- they have no such method.
>

Don't put the counter there but the counter attribute:

if(control:Counter-Attribute < 0) { ...

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list