0% found this document useful (0 votes)
180 views1 page

Mangle

The document defines a queue tree with different queues for downloading, uploading, browsing, streaming, and other traffic. It also defines firewall rules to mark traffic flowing from an internal network for machine learning, browsing, streaming, and other purposes for subsequent traffic shaping based on the packet marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views1 page

Mangle

The document defines a queue tree with different queues for downloading, uploading, browsing, streaming, and other traffic. It also defines firewall rules to mark traffic flowing from an internal network for machine learning, browsing, streaming, and other purposes for subsequent traffic shaping based on the packet marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

/queue tree

add limit-at=256k max-limit=50M name=Download parent=ether3_HS queue=\


pcq-download-default
add limit-at=256k max-limit=50M name=Upload parent=ether1_WAN queue=\
pcq-upload-default
add limit-at=128k max-limit=30M name=browsing-dl packet-mark=browsing parent=\
Download queue=pcq-download-default
add limit-at=128k max-limit=20M name=streaming-dl packet-mark=streaming \
parent=Download queue=pcq-download-default
add limit-at=128k max-limit=10M name=others-dl packet-mark=others parent=\
Download priority=5 queue=pcq-download-default
add limit-at=128k max-limit=30M name=browsing-up packet-mark=browsing parent=\
Upload queue=pcq-upload-default
add limit-at=128k max-limit=30M name=streaming-up packet-mark=streaming \
parent=Upload queue=pcq-upload-default
add limit-at=128k max-limit=10M name=others-up packet-mark=others parent=\
Upload priority=5 queue=pcq-upload-default
add limit-at=128k max-limit=10M name=ML-dl packet-mark=ml parent=Download \
priority=1 queue=pcq-download-default
add limit-at=128k max-limit=10M name=ML-up packet-mark=ml parent=Upload \
priority=1 queue=pcq-upload-default

/ip firewall mangle


add action=accept chain=forward dst-port=53 protocol=udp
add action=accept chain=forward protocol=icmp
add action=mark-connection chain=forward comment=ml dst-port=\
5000-5180,5500-5680,9443,30020-30220 new-connection-mark=ml passthrough=\
yes protocol=tcp src-address=[Link]/23
add action=mark-connection chain=forward dst-port=\
5000-5180,5500-5680,9992,30020-30220 new-connection-mark=ml passthrough=\
yes protocol=udp src-address=[Link]/23
add action=mark-packet chain=forward connection-mark=ml new-packet-mark=ml \
passthrough=no
add action=mark-connection chain=forward comment=browsing dst-port=\
80,8080,443 new-connection-mark=browsing passthrough=yes protocol=tcp \
src-address=[Link]/23
add action=mark-packet chain=forward connection-mark=browsing \
new-packet-mark=browsing passthrough=no
add action=mark-connection chain=forward comment=streaming dst-port=\
80,8080,443 new-connection-mark=streaming passthrough=yes protocol=udp \
src-address=[Link]/23
add action=mark-packet chain=forward connection-mark=streaming \
new-packet-mark=streaming passthrough=no
add action=mark-connection chain=forward comment=others new-connection-mark=\
others passthrough=yes src-address=[Link]/23
add action=mark-packet chain=forward connection-mark=others new-packet-mark=\
others passthrough=no

You might also like