Hi Guys,
today i’ll show you how to manage the Mikrotik Queue Tree to limit the total bandwidth (for. example you can split a 20Mbps DSL to 4Mbps per 5 users)
In my example i’ll limit upload+download=20Mbps

First of all we need to mark the packets to be traced in the queue:


/ip firewall mangle

add action=mark-packet chain=prerouting in-interface=ether3 new-packet-mark=upload

add action=mark-packet chain=postrouting new-packet-mark=download out-interface=ether3

Then we’ll set up the queue tree:


/queue tree

add max-limit=20M name=total-traffic parent=global queue=default

add name=upload packet-mark=upload parent=total-traffic queue=default

add name=download packet-mark=download parent=total-traffic queue=default

In this case the upload and download mark will be added and when this sum reach the limit it is possibile to send an email as alert (You can find the script for checking the queue tree limit here.)

Enjoy!

Advertisement