FreeRADIUS 2.1.12 rlm_sqlcounter bug?

Alan DeKok aland at
Fri Dec 16 15:04:39 CET 2011

ben beneke wrote:
> I am using FreeRADIUS Version 2.1.12, for host i686-pc-linux-gnu,
> built on Dec 6 2011 at 19:51:34, and I'd like to set up a quota using
> rlm_sqlcounter.
> However, the quota I'd like to use is over 4GB and the module will
> than overflow, not allowing a user who still has quota left.

  Use rlm_expr to do 64-bit math.

  Counters in RADIUS are 32-bits.  So counting more than 4G is
impossible using "native" attributes.  You need to use rlm_expr to
calculate the values yourself.

  Alan DeKok.

More information about the Freeradius-Users mailing list