RES: Limiting the number of connections

Alan DeKok aland at ox.org
Thu Aug 4 19:00:13 CEST 2005


"Jose Divino de Lima" <jdlima at prolan.com.br> wrote:
> When i using a shell script it´s run properly, but it´s not fast.
> I thought that it can be did via mySQL in authorize_check query.

  You'll have to do more than that.  You'll need to increment a
counter when people log in, and decrement it when they log out.
You'll need to take care of issues like NAS reboots, etc.

  I'd suggest starting with rlm_sqlcounter, and going from there.

  Alan DeKok.




More information about the Freeradius-Users mailing list