Hi !
Is it possible to enable\disable(using a script) some queues in Queue Tree at some period of time ?
thx
Hi !
Is it possible to enable\disable(using a script) some queues in Queue Tree at some period of time ?
thx
here i found :
/ip firewall rule forward add p2p=all-p2p action drop comment=p2p
/system script add name=p2p_disable source={
/ip firewall rule forward {
disable [find comment=p2p]
}
}
/system script add name=p2p_enable source={
/ip firewall rule forward {
enable [find comment=p2p]
}
}
/system scheduler add interval=24h name=“enable_p2p”
start-time=20:00:00 on-event=p2p_enable
/system scheduler add interval=24h name=“disable_p2p”
start-time=7:00:00 on-event=p2p_disable
Is it possible to do it for Queue Tree queues (for exmpl names=que1,que2,que3,que4 …etc) ? And how change the code for 2.9.x ver
thX
Use ‘Time’ condition in mangle. Scripts are not needed.
another way ?
here i found a script
/queue tree set [/queue tree find max-limit=40960] limit-at=256000 max-limit-256000
but it doesn’t work ! why? and how i can disable\enable queue ?
Anybody!!! Is it so difficult ? or just nobody know ?
Tell me why do you need to disable a queue if you can achieve the same thing without scripts by using ‘Time’ matcher in mangle?