pikaro
December 6, 2013, 5:00am
1
Hello,
Can somebody show me and example of a Radius Attribute to be used with Mikrotik and Freeradius?
I have 2 hotspots. I want set Mikrotik-Rate-Limit different for each hotspot.
Hotspot1: Mikrotik-Rate-Limit = 512k/1024k for all users of this hotspot.
Hotspot2: Mikrotik-Rate-Limit = 1024k/1024k for all users of this hotspot.
I have the file /usr/share/freeradius/dictionary.mikrotik
and this line in the “/usr/share/freeradius/dictionary”
$INCLUDE dictionary.mikrotik
Regards.
pikaro
December 6, 2013, 9:59am
2
I get half solution:
INSERT INTO radreply (username, attribute, op, value) VALUES (‘freddy’, ‘Mikrotik-Group’, ‘=’, ‘myusergroup’)
INSERT INTO radreply (username, attribute, op, value) VALUES (‘freddy’, ‘Mikrotik-Rate-Limit’, ‘=’, ‘1024k/1024k’)
the “myusergroup” is the name in user profiles of mikrotik.
How can i change the username “freddy” for all users?
Regards.
I set the rate limit in each hotspot in “/ip hotspot user profile”, and send only the group from radius.
pikaro
December 6, 2013, 2:14pm
4
i dont want set the rate limit in each mikrotik.
I want change the rate limit for each hotspot from radius.
pikaro:
Hello,
Can somebody show me and example of a Radius Attribute to be used with Mikrotik and Freeradius?
I have 2 hotspots. I want set Mikrotik-Rate-Limit different for each hotspot.
Hotspot1: Mikrotik-Rate-Limit = 512k/1024k for all users of this hotspot.
Hotspot2: Mikrotik-Rate-Limit = 1024k/1024k for all users of this hotspot.
I have the file /usr/share/freeradius/dictionary.mikrotik
and this line in the “/usr/share/freeradius/dictionary”
$INCLUDE dictionary.mikrotik
Regards.
Here is a sample from my FreeRADIUS users file using hotspot and rate limit (rate limit 10 mbps in each direction and also expires the account in 2014):
user1 User-Password == “password”
Mikrotik-Rate-Limit = 10000000/10000000,
WISPr-Session-Terminate-Time = 2014-01-02T23:59:00+0100