192.168.75.0/24 - all packets from this subnet are marked either "Priority 1 UP" or "Priority 1 DOWN", depending on the direction of traffic flow
Code: Select all
/ip firewall mangle
add action=mark-packet chain=forward comment=Fastest src-address=192.168.75.0/24 new-packet-mark="Priority 1 UP" passthrough=no
add action=mark-packet chain=forward comment=Fastest dst-address=192.168.75.0/24 new-packet-mark="Priority 1 DOWN" passthrough=no
Code: Select all
/ip firewall mangle
add action=mark-packet chain=forward comment=Medium src-address=192.168.175.0/24 new-packet-mark="Priority 2 UP" passthrough=no
add action=mark-packet chain=forward comment=Medium dst-address=192.168.175.0/24 new-packet-mark="Priority 2 DOWN" passthrough=no
Code: Select all
/ip firewall mangle
add action=mark-packet chain=forward comment=Slowest src-address=192.168.200.0/24 new-packet-mark="Priority 3 UP" passthrough=no
add action=mark-packet chain=forward comment=Slowest dst-address=192.168.200.0/24 new-packet-mark="Priority 3 DOWN" passthrough=no
Code: Select all
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=0 max-limit=8500k name="All Download" parent=LAN-Bridge priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=4500k max-limit=8500k name="Priority 1 DOWN" packet-mark="Priority 1 DOWN" parent="All Download" priority=1 queue="pcq queue"
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=2M max-limit=4500k name="Priority 2 DOWN" packet-mark="Priority 2 DOWN" parent="All Download" priority=2 queue="pcq queue"
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=16k max-limit=16k name="Priority 3 DOWN" packet-mark="Priority 3 DOWN" parent="All Download" priority=8 queue="pcq queue"
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=0 max-limit=768k name="All Upload" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=640k max-limit=768k name="Priority 1 UL" packet-mark="Priority 1 UP" parent="All Upload" priority=1 queue="pcq queue"
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=128k max-limit=128k name="Priority 2 UL" packet-mark="Priority 2 UP" parent="All Upload" priority=2 queue="pcq queue"
add burst-limit=0 burst-threshold=0 burst-time=0s limit-at=16k max-limit=16k name="Priority 3 UL" packet-mark="Priority 3 UP" parent="All Upload" priority=8 queue="pcq queue"