Disconnect the user if reach the limit
Hello , I create HotSpot system with MikroTik, FreeRADIUS + MySQL But i have problem : How to disconnect user when reach the usage limit (ex: 50 hours, 50 MBytes)? depends on they prepaid registration, so it will stored at RADIUS (MySQL Database). Everyone can register via web based hmmm.. if it possible, how to give user information when they reach the limit like "Time's Up", etc. Does it using RadKill ? but, actually i don't know how to use it. thanks before.. -- Best regards, Yudi Wijaya
Yudi Wijaya <yudiw@centrin.net.id> wrote:
How to disconnect user when reach the usage limit (ex: 50 hours, 50 MBytes)? depends on they prepaid registration, so it will stored at RADIUS (MySQL Database). Everyone can register via web based
For 50 hours, see rlm_counter. For 50MBytes, it's not really possible.
hmmm.. if it possible, how to give user information when they reach the limit like "Time's Up", etc.
It's up to the NAS. The answer is usually no. Alan DeKok.
Hello Alan, Wednesday, February 22, 2006, 12:25:07 AM, you wrote: > Yudi Wijaya <yudiw@centrin.net.id> wrote: >> How to disconnect user when reach the usage limit (ex: 50 >> hours, 50 MBytes)? depends on they prepaid registration, so it will >> stored at RADIUS (MySQL Database). Everyone can register via web based > For 50 hours, see rlm_counter. + hmm.. i will use rlm_sqlcounter, i'll test it in this week.. please help me if i got problem, ok? :) thanks > For 50MBytes, it's not really possible. + is there any trick of it? i really want implement that, so when user reach 500 MBytes will be disconnect and can not login until they re-fill the deposit. I believe you have some trick of this, because you're an expert of this :) please do details :) -- Best regards, Yudi Wijaya +62-856-1022800
Yudi Wijaya <yudiw@centrin.net.id> wrote: > > For 50MBytes, it's not really possible. > + is there any trick of it? i really want implement that, so when > user reach 500 MBytes will be disconnect and can not login until they > re-fill the deposit. The most you can do is to write a script that runs when accounting packets are received. If the user is over their limit, that scrip can do something (it depends on the NAS) to the NAS to disconnect them. Alan DeKok.
participants (2)
-
Alan DeKok -
Yudi Wijaya