26 Feb
2009
26 Feb
'09
6:19 a.m.
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