Pre release of 2.1.12
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Fri Sep 2 23:30:08 CEST 2011
>
>
> Would be handy to change Acct-Interim-Interval to something like:
> ----
> update reply {
> Acct-Interim-Interval := 3000 + %{rand:1200}
> }
> ----
>
> This would give me Acct-Interim-Interval set to 1hr+-10mins.
>
> As it is set now, I just got 1MB of journal recorded to file accounting
> data landing on my systems :)
Are you suggesting adding a rand xlat? I guess it'd be useful to add some fuzz to interim update intervals. But there are many other options for fuzz other than rand. For example...
if("%{%{NAS-IP-Address}:-%{Packet-Src-Ip-Address}}" =~ /([0-9]{1,3})[.]([0-9]{1,3})$/){
update control {
Tmp-Integer-0 = "%{expr:((%{1}*1000)+%{2})%%2000}"
}
}
-Arran
Arran Cudbard-Bell
a.cudbardb at freeradius.org
RADIUS - Half the complexity of Diameter
More information about the Freeradius-Users
mailing list