Page 1 of 1

Mikrotik-Rate-Limit not working

Posted: 31 Dec 2019, 06:31
by hashbang
we had got a working radius server. I was testing accel-ppp but m not getting mikrotik-rate-limit attributes in logs.
added mikrotik dictionary in /usr/share/accel-ppp/radius/dictionary
radius is already working many mikrotiks
defined in shaper

vendor=mikrotik
attr=Mikrotik-Rate-Limit
rate-multiplier=0.001

ifname | username | calling-sid | ip | rate-limit | type | comp | state | uptime
--------+----------+-------------------+--------------+------------+-------+------+--------+----------
pppoe0 | megademo | e4:8d:8c:0a:95:e0 | 100.90.48.57 | | pppoe | | active | 01:46:22



2019-12-31 01:23:15]: info: pppoe0: disconnected
[2019-12-31 01:23:15]: info: recv [RADIUS(1) Accounting-Response id=5]
[2019-12-31 01:23:15]: warn: eth1.121: radius:packet: vendor 26 not found
[2019-12-31 01:23:15]: info: eth1.121: recv [RADIUS(1) Access-Accept id=1 <MS-CHAP2-Success 0x01533d36364644353733353538343433333346433534433439343435433030383936464544353334394441> <MS-MPPE-Recv-Key 0xa70c1d3756f15a5a6e6aa68fd44cf4af11af908219e1dbeae1d5bbb0d8529ef0a02f> <MS-MPPE-Send-Key 0xad2e32a67872ab3accdcd84282e47f6fa9129a0f54ec99649cd3372c20407b745304> <MS-MPPE-Encryption-Policy 1> <MS-MPPE-Encryption-Type 6> <Vendor-Specific 0x00003a8c081331303438353736302f3130343835373630> <Session-Timeout 4258845> <Acct-Interim-Interval 1800>]
[2019-12-31 01:23:15]: info: ppp0: connect: ppp0 <--> pppoe(e4:8d:8c:0a:95:e0)
[2019-12-31 01:23:15]: info: ppp0: megademo: authentication succeeded
help would be appreciated
thnks

Re: Mikrotik-Rate-Limit not working

Posted: 31 Dec 2019, 13:56
by dimka88
Hi hashbang. I think you need set correct vendor

Code: Select all

[shaper]
vendor=Mikrotik
attr=Mikrotik-Rate-Limit
rate-multiplier=0.001

[SOLVED]Re: Mikrotik-Rate-Limit not working

Posted: 01 Jan 2020, 06:53
by hashbang
ty, its working
I'd to restart accel-ppp
reload was not loading the new config (looks like)

Next problem in next section :?:

Re: Mikrotik-Rate-Limit not working

Posted: 02 Jan 2020, 15:37
by nik247
dimka88 wrote: 31 Dec 2019, 13:56 Hi hashbang. I think you need set correct vendor

Code: Select all

[shaper]
vendor=Mikrotik
attr=Mikrotik-Rate-Limit
rate-multiplier=0.001
And Tx and Rx from "Mikrotik-Rate-Limit" is opposite to accel-ppp.
If TX=RX it's not problem

Re: Mikrotik-Rate-Limit not working

Posted: 03 Jan 2020, 15:27
by dimka88
nik247, should we fix this?

Re: Mikrotik-Rate-Limit not working

Posted: 18 May 2020, 10:01
by hashbang
yes I'm having the same problem. Plz fix it

thanks

Re: Mikrotik-Rate-Limit not working

Posted: 19 May 2020, 18:25
by nik247