On prerouting and postrouting I tried to make equal bandwith shearing among users, and on forward package sorting...
This is just a part of it but you will get the point...
Mangle
Code: Select all
add action=mark-packet chain=prerouting comment="" disabled=no in-interface=\
bridge1 new-packet-mark=download passthrough=no
add action=mark-packet chain=postrouting comment="" disabled=no \
new-packet-mark=upload out-interface=bridge1 passthrough=no
add action=mark-packet chain=forward comment=p2p disabled=no new-packet-mark=\
p2p p2p=all-p2p passthrough=no
add action=mark-packet chain=forward comment=http disabled=no \
new-packet-mark=http passthrough=no protocol=tcp src-port=80
add action=mark-packet chain=forward comment=other disabled=no \
new-packet-mark=other passthrough=no
Code: Select all
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=15000000 name=User_download packet-mark=download parent=\
global-in priority=8 queue=pcq_dl
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=10000000 name=User_upload packet-mark=upload parent=bridge1 \
priority=8 queue=pcq_ul
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=priority packet-mark="" parent=global-out priority=8 \
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=p2p packet-mark=p2p parent=priority priority=8 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=winbox packet-mark=http parent=priority priority=1 \
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=snmp packet-mark=other parent=priority priority=7 queue=\
default