0% found this document useful (0 votes)
83 views2 pages

Config RFT

The document configures queue trees for download and upload traffic on an interface. It creates queues for different traffic types like online games, heavy downloads, light uploads etc and assigns them bandwidth limits and priorities. It also uses IP firewall mangle rules to classify connections and mark packets based on the connection type, size and rate to identify online games, heavy and light traffic for prioritizing them in the queues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views2 pages

Config RFT

The document configures queue trees for download and upload traffic on an interface. It creates queues for different traffic types like online games, heavy downloads, light uploads etc and assigns them bandwidth limits and priorities. It also uses IP firewall mangle rules to classify connections and mark packets based on the connection type, size and rate to identify online games, heavy and light traffic for prioritizing them in the queues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

/queue tree

add max-limit=100M name="A. DOWNLOAD" parent=global priority=8 queue=pcq-


download-default

add limit-at=64k max-limit=15M name="A.1. ONLINE GAMES" packet-mark="ONLINE


GAMES-PK" parent="A. DOWNLOAD" priority=2 queue=pcq-download-default

add limit-at=64k max-limit=5M name="A.2. OTHERS DOWNLOAD" packet-


mark=OTHERS-PK parent="A. DOWNLOAD" priority=8 queue=pcq-download-default

add limit-at=64k max-limit=15M name="A.3. LIGHT DOWNLOADS" packet-


mark=LIGHT-PK parent="A. DOWNLOAD" priority=8 queue=pcq-download-default

add limit-at=64k max-limit=60M name="A.4. HEAVY DOWNLOADS" packet-


mark=HEAVY-PK parent="A. DOWNLOAD" priority =8 queue=pcq-download-default

add max-limit=100M name="B. UPLOAD" parent=ether1 priority=8 queue=pcq-upload-


default

add limit-at=64k max-limit=15M name="B.1. ONLINE GAMES" packet-mark="ONLINE


GAMES-PK" parent="B. UPLOAD" priority=1 queue=pcq-upload-default

add limit-at=64k max-limit=5M name="B.2. OTHERS UPLOAD" packet-


mark=OTHERS-PK parent="B. UPLOAD" priority=8 queue=pcq-upload-default

add limit-at=64k max-limit=15M name="B.3. LIGHT UPLOADS" packet-mark=LIGHT-


PK parent="B. UPLOAD" priority=8 queue=pcq-upload-default

add limit-at=64k max-limit=60M name="B.4. HEAVY UPLOADS" packet-mark=HEAVY-


PK parent="B. UPLOAD" priority=8 queue=pcq-upload-default

/ip firewall mangle

add action=mark-connection chain=forward comment="ONLINE GAMES" dst-address-


list="ONLINE GAMES" new-connection-mark="ONLINE GAMES-CON"
passthrough=yes

add action=mark-packet chain=forward connection-mark="ONLINE GAMES-CON" new-


packet-mark="ONLINE GAMES-PK" passthrough=no

add action=mark-connection chain=prerouting comment="ALL TRAFFIC" connection-


mark=!HEAVY-CON new-connection-mark="ALL TRAFFIC-CON" passthrough=yes

add action=mark-connection chain=prerouting comment="HEAVY TRAFFIC"


connection-bytes=256000-0 connection-mark="ALL TRAFFIC-CON" connection-
rate=512k-0 new-connection mark=HEAVY-CON passthrough=yes protocol=tcp

add action=mark-connection chain=prerouting connection-bytes=256000-0 connection-


mark="ALL TRAFFIC-CON" connection-rate=512k-0 new-connection-mark=HEAVY-
CON passthrough=yes protocol=udp

add action=mark-packet chain=prerouting connection-mark=HEAVY-CON new-packet-


mark=HEAVY-PK passthrough=no

add action=mark-connection chain=prerouting comment="LIGHT TRAFFIC" connection-


bytes=1-256000 connection-mark="ALL TRAFFIC-CON" new-connection-mark=LIGHT-
CON passthrough=yes protocol=tcp

add action=mark-connection chain=prerouting connection-bytes=1-256000 connection-


mark="ALL TRAFFIC-CON" new-connection-mark=LIGHT-CON passthrough=yes
protocol=udp

add action=mark-packet chain=prerouting connection-mark=LIGHT-CON new-packet-


mark=LIGHT-PK passthrough=no

add action=mark-packet chain=prerouting comment=OTHERS connection-mark="ALL


TRAFFIC-CON" new-packet-mark=OTHERS-PK passthrough=no

You might also like