How to limit the number of active uers

Alan DeKok aland at deployingradius.com
Fri Jul 5 14:32:52 CEST 2013


Thura Hlaing wrote:
> I am wondering if there is anyway for freeradius to reject auth requests based on the number of active (connected) users. For example, I would like to limit the number of active (authorized) users to 50 in my radius+CoovaChilli deployment, so that connection speed doesn't become very poor.

  Use a database.

  Store all of the active users in a database, such as SQL.  The server
comes with examples of how to do this.  This assumes that the client is
sending accounting requests.

  Then, simply select on the number of active users.  If more than N,
reject.

  Alan DeKok.


More information about the Freeradius-Users mailing list