I have two queues on a rb2011.
I am tagging sip traffic and rdp traffic to a remote provider (using address lists instead of ports), then using a queue tree to raise the priority. What I want to do is limit any non-tagged traffic to 2mb/s in both directions.
Here's my code:
Code: Select all
/ip firewall mangle
add action=mark-packet chain=forward comment="voip mark source" \
new-packet-mark=voip-source passthrough=no src-address-list=v
add action=mark-packet chain=forward comment="voip mark dest" \
dst-address-list=voip new-packet-mark=voip-dest passthrough=n
add action=mark-packet chain=forward comment="cloudless source" \
new-packet-mark=cloudless-source passthrough=no src-address=2
add action=mark-packet chain=forward comment="cloudless dest" dst
0.0.0.0 new-packet-mark=cloudless-dest passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration
out-interface=ether6-wan
Code: Select all
/queue tree
add name=cloudless-source packet-mark=cloudless-source parent=global priority=2 queue=default
add name=voip-source packet-mark=voip-source parent=global priority=1 queue=default
add name=voip-dest packet-mark=voip-dest parent=global priority=1 queue=default
add name=cloudless-dest packet-mark=cloudless-dest parent=global priority=2 queue=default