Have configured MikroTik 2.9 with freeradius and mysql. I want to limit bandwidth (upload/download) of users and want to limit their traffic (1gb/2gb/10gb etc). Also want to specify validity of the account. Once the validity is over or the quota is exceeded (whichever is earlier) I want users to be disconnected automatically. Can this be done in radius server?
I’m newbie in Mikrotik. Where can I find solution to this.
Mikrotik-Recv-Limit
Mikrotik-Recv-Limit-Gigawords
Mikrotik-Xmit-Limit
Mikrotik-Xmit-Limit-Gigawords
are used to limit total amount of uploaded downloaded data.
Rate-Limit is used to limit bandwidth, rate-limit syntax -
rx-rate[/tx-rate] [rx-burst-rate[/tx-burst-rate] [rx-burst-threshold[/tx-burst-threshold] [rx-burst-time[/tx-burst-time] [priority] [rx-rate-min[/tx-rate-min]]]]
have put those attributes in radius database and mikrotik acts based on these parameters. but when the quota is exceeded the user automatically logs off and he can log in again and use internet b’coz his recv-limit and xmit-limit starts from 0. I want to record the total bandwidth used by user and if it reaches the limit given to him, the user should not be able to log in again until his account is renewed.
I hope there must be solution for this.
Also how can I specify the validity for the account/package.