Page 1 of 1

Advances Queue configuration with radius server

Posted: Sat May 04, 2019 2:43 pm
by danihill
Good afternoon all,

Currently I use the radius attribute "Mikrotik-Rate-Limit" to configure the standard queue on a pppoe client connection. This allows me to configure the basic settings.

I need to be able to make a queue tree or use parent queues for every client that does a general global queue configuration for the client but then adds a queue that during certain hours of the day the queue will work different.

Maybe something like this for each client dynamically created with the radius server:

0 name="queue1" target=1.2.3.4/32 parent=none packet-marks="" priority=8/8
queue=default-small/default-small limit-at=0/0 max-limit=5M/10M
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s bucket-size=0.1/0.1

1 I name="queue1.1" target=1.2.3.4/32 parent=queue1 packet-marks=""
priority=8/8 queue=default-small/default-small limit-at=0/0
max-limit=2M/5M burst-limit=5M/10M burst-threshold=2M/5M
burst-time=25m/25m bucket-size=0.1/0.1
time=19h-1h,sun,mon,tue,wed,thu,fri,sat


does anyone work like this or have any ideas?

Re: Advances Queue configuration with radius server

Posted: Sun Jan 26, 2020 12:17 pm
by sopyan0807
I'm not sure this will work, put this script in the ppp profile, on up
:local ips [/ppp active get [find name=$user] address];
/queue tree add name=$ips target=$ips parent=queue1 packet-marks=""
priority=8/8 queue=default-small/default-small limit-at=0/0
max-limit=2M/5M burst-limit=5M/10M burst-threshold=2M/5M
burst-time=25m/25m bucket-size=0.1/0.1
time=19h-1h,sun,mon,tue,wed,thu,fri,sat