Mikrotik-Rate-Limit

I’m trying to use Mikrotik-Rate-Limit in xtradius. I’ve verified that it is getting sent the to Mikrotik but the Mikrotik seems to ignore it. I’ve also tested under freeradius and it works fine there.

I’ve looked at the debug outputs of both xtradius and freeradius and the values being sent are identical. Any ideas why this doesn’t work under xtradius?

Here is the debug output;

Sending Ack of id 76 to 192.168.0.1 (nas 192.168.0.1)
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 172.16.3.33
Framed-Compression = Van-Jacobson-TCP-IP
Mikrotik-Rate-Limit = “128k/1024k 256k/2048k 160k/1280k 5/5 4 32k/256k”

Do you have radius logging enabled on the router?
/system logging
add topics=radius action=memory

Then try the login and see what the router log says about it.

Thanks… I turn on logging and It does not show the Rate-Limit parameters being received.

It has to be a bug is xtradius so I guess it’s time to bite the bullet and upgrade my user interface to support freeradius.

We are using the Wifi4india’s radius server which supports all radius attribute supported by Mikrotik and other vendors and have a very good web GUI with administrator or and client self service portal like download/upload reporting, number of times logins, monthly yearly daily. etc.. just try that if that fits your requirement but that is windows based program.

Check your /dictionary and see if there is a “dictionary.mikrotik” file there. If so, insure it has an entry for “Mikrotik-Rate-Limit”. That would be better than a new radius setup.

I change to freeradius and now the parameters are passed correctly. However the burst feature does not work. With the following seting; 1M/3M 2M/4M 1500k/3500k 10/10, I get 4meg for 10 sec then it goes to 3meg (as it should) but after 10 seconds it goes back to 4meg. It keep cycling every 10 seconds between the rate-limit and the burst-limit. Any input on what’s wrong or is this a bug? Thanks…