RES: Limiting the number of connections
Hi Alan, Thanks for your explanation. We´ve a shell script that do exactly what you sad. I´m trying to look for another way to do this. We´ve here a VoIP network and we need to restrict "N" connections to some groups. 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. It´s my scenario. Tks, Lima -----Mensagem original----- De: freeradius-users-bounces@lists.freeradius.org [mailto:freeradius-users-bounces@lists.freeradius.org]Em nome de Alan DeKok Enviada em: quarta-feira, 3 de agosto de 2005 13:32 Para: FreeRadius users mailing list Assunto: Re: Limiting the number of connections "Jose Divino de Lima" <jdlima@prolan.com.br> wrote:
I´ve a challenge now to limit thu number of simultaneous connections (i.e: we can permit only ten connections at the same time).
doc/Simultaneous-Use If you're limiting connections to 10 *different* people, you'll have to write some custom code. Even a shell script would do. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
"Jose Divino de Lima" <jdlima@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.
participants (2)
-
Alan DeKok -
Jose Divino de Lima