is there any way to disconnect user, using only radius server, (for example when radius recives accounting-request) ?
thanks
is there any way to disconnect user, using only radius server, (for example when radius recives accounting-request) ?
thanks
starting from 2.9 beta5 there is a new submenu available under ‘/radius’ section, called ‘incoming’. If it’s enabled you can disconnect PPP-kind connection from RADIUS server using ‘radclient’. You can find more about how to do it in ‘man radclient’.
Edgars
what about hotspot’s users , how can I disconnect user from hotspot (with RouterOS 2.8.10) using radius. I think radius server hasn’t such option to command client to disconnect user.
There is a way to connect to hotspot by telnet/ssh and use /ip hotspot active remove … , but I don’t think that this is a best idea ![]()
no, for HotSpot user disconnectinf there isn’t such a feature implemented yet. You can use some scripting language and write a script which will connect to the router via SSH and perform some action there (for example, remove some user).
Edgars
ok, so are there any others protocols for connecting to routerOS, not only ssh/telnet, may be something easer, or can I install same cgi-script to doing sth via www in router ?
No, you have to use telnet or ssh. There was a thread not long ago about some scripts realizing functionality this way (using expect on a linux box). Perhaps you find something there…
How works http://moon.mt.lv/radius , there radius automatic disconnect user after time limit. ?
Haven’t tested the MikroTik HotSpot Manager, but what you refer to most probably is a Session-Timeout limit. This can be handled since a long time ago.
The main difference is if you can set the limit at login time (i.e. “stay online for max 1 hour” or “may transfer max. 1 GB of data”) or if you want to connect a logged in user at your will. In the first case those limits are given to the RouterOS by (for example) RADIUS limits, which can be enforced by the router. In the second case, you have to create a new connection to the router telling it to disconnect user ABC. This has been realised in the newest betas for ppp-like connections (PPPoE, …), but not for hotspot users.