|
|
- /ip firewall mangle
- add action=mark-packet chain=prerouting comment=\
- "Mark packet for QoS (download)" disabled=yes in-interface=pppoe-out1 \
- new-packet-mark=pkt-download passthrough=yes
- add action=mark-packet chain=prerouting comment=\
- "Mark packet for QoS (upload)" disabled=yes new-packet-mark=pkt-upload \
- passthrough=yes
- add action=mark-packet chain=forward comment=General connection-mark=\
- !P2p_conn disabled=yes new-packet-mark=General passthrough=yes
- add action=mark-packet chain=forward comment=Small disabled=yes \
- new-packet-mark=Small packet-size=0-32 passthrough=yes
- add action=mark-packet chain=forward disabled=yes new-packet-mark=Small \
- passthrough=yes protocol=icmp
- add action=mark-packet chain=forward comment=Tcp disabled=yes dst-port=\
- 22,23,80,443 new-packet-mark=Tcp passthrough=yes protocol=tcp
- add action=mark-packet chain=forward comment=Small_Big disabled=yes \
- new-packet-mark=Small_Big packet-size=33-512 passthrough=yes
- add action=mark-packet chain=forward comment=Big disabled=yes \
- new-packet-mark=Big packet-size=513-1200 passthrough=yes
- add action=mark-connection chain=forward comment=p2p disabled=yes \
- in-interface=all-ppp new-connection-mark=P2p_conn passthrough=yes port=\
- 7881 protocol=tcp
- add action=mark-packet chain=forward connection-mark=P2p_conn disabled=yes \
- new-packet-mark=P2p passthrough=no
- /queue tree
- add comment="\D0\A1\B0\FC\D3\C5\CF\C8" disabled=yes limit-at=10M max-limit=\
- 190M name=p2p1 packet-mark=P2p parent=pppoe-out1 queue=default
- add comment="\D0\A1\B0\FC\D3\C5\CF\C8" disabled=yes name=ClassA parent=global \
- priority=7 queue=default
- add disabled=yes name=ClassB parent=ClassA queue=default
- add disabled=yes name=Leaf1 packet-mark=General parent=ClassA priority=7 \
- queue=default
- add disabled=yes name=Leaf2 packet-mark=Small parent=ClassB priority=3 queue=\
- default
- add disabled=yes name=Leaf4 packet-mark=Small_Big parent=ClassB priority=5 \
- queue=default
- add disabled=yes name=Leaf5 packet-mark=Big parent=ClassB priority=6 queue=\
- default
- add disabled=yes name=Leaf3 packet-mark=Tcp parent=ClassB priority=4 queue=\
- default
复制代码 |
|