i am creating script for managing user rates according their traffic. But I see some problems i need to cope with. I tried via user manager and manualy from terminal to set rate limit for active user downloading some data. There is no change in rate I set. I thought there is some actualization interval when rates will be activated. But my assumption is wrong. User have to log out and then after next login rates are these I set.
Is it true, that radius client connect to information about user only in time of his login ??? If so, what possibilities I have to manage rate limits for user real time?
Is possible to change way how radius client actualize information of clients from radius server(user manager) ?
I really appreciate any help with these troubles.
Next issues for developers: #1:there is no way how to set values like download-used, upload-used, uptime-used. I needed these values to change according my needs, why they are only for read? (I hope not cause postfix -used ). #2: its so hard to add real number support? have i need to always some emulate these numbers?
Radius CoA is what you are looking for, it is described in RFC 5176 if you are interested in extensive reading (http://www.ietf.org/rfc/rfc5176.txt).
Long story short - User Manager is a radius server. And, by default, radius server only listens for radius client (HotSpot/PPP/…) requests and answers them. Radius server does not send any request to radius clients. But - there is a standard extension, described in the above mentioned RFC 5176. According to it, radius server (User Manager) can send Disconnect and CoA messages, to suggest the radius client (HotSpot/PPP/…) to disconnect some particular session or change its attributes: speed/traffic limits etc. These Disconnect/CoA requests are only taken into account, if the radius client (HotSpot/PPP/…) supports this CoA extenstion. And most of the radius clients do not.
Mikrotik HotSpot supports both: Radius CoA and disconnect. PPP supports only Disconnects. What is supported by third party software should be described in their manuals.
Currently, the User Manager in version 3.x does not support CoA. User Manager beta 4.x supports both - CoA and Disconnects. Therefore CoA and Disconnect support depends on radius client used. As mentioned, Mikrotik HotSpot supports both, Mikrotik PPP - only Disconnects.