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

/ip firewall

The document outlines a series of firewall rules and configurations for managing network traffic related to various online games and streaming services. It includes actions for marking connections and packets for different applications such as 'mobile legends', 'dota2', 'call of duty', and others, specifying protocols and destination ports. Additionally, it sets up queue trees for download and upload limits for these marked packets to optimize bandwidth usage.

Uploaded by

kushale2056
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)
3 views2 pages

/ip firewall

The document outlines a series of firewall rules and configurations for managing network traffic related to various online games and streaming services. It includes actions for marking connections and packets for different applications such as 'mobile legends', 'dota2', 'call of duty', and others, specifying protocols and destination ports. Additionally, it sets up queue trees for download and upload limits for these marked packets to optimize bandwidth usage.

Uploaded by

kushale2056
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
You are on page 1/ 2

/ip firewall layer7-protocoladd name=video regexp="^.

+(videoplayback|watch|video|
youtube).*\\\$"/ip firewall mangleadd action=mark-connection chain=prerouting
comment="mobile legends" \ dst-port=\ 7000,8913,10003,30000-30150,5001-5059,5101-
5105,9001,5501-5559,5601-5651 \ new-connection-mark="mobile legends"
passthrough=yes protocol=tcpadd action=mark-connection chain=prerouting dst-
port=\ 7000,8913,10003,30000-30150,5001-5059,5101-5105,9001,5501-5559,5601-
5651 \ new-connection-mark="mobile legends" passthrough=yes protocol=udpadd
action=mark-packet chain=prerouting connection-mark="mobile legends" \ new-packet-
mark=ml-pkt passthrough=noadd action=mark-connection chain=prerouting
comment="cross fire" dst-port=\ 16666,10008-10009,13006-13008 new-connection-
mark="cross fire" \ passthrough=yes protocol=tcpadd action=mark-connection
chain=prerouting dst-port=12000-12080,13000-13080 \ new-connection-mark="cross
fire" passthrough=yes protocol=udpadd action=mark-packet chain=prerouting
connection-mark="cross fire" \ new-packet-mark=crossfire-pkt passthrough=noadd
action=mark-connection chain=prerouting comment="rules of survival" \ dst-
port=5501-5599,9080,24000-24050 new-connection-mark=ROS passthrough=\ yes
protocol=udpadd action=mark-connection chain=prerouting dst-port=9000-9999 \ new-
connection-mark=ROS passthrough=yes protocol=tcpadd action=mark-packet
chain=prerouting connection-mark=ROS new-packet-mark=\ ros-pkt passthrough=noadd
action=mark-connection chain=prerouting comment=dota2 dst-port=\ 27015,27036,27037
new-connection-mark=dota2 passthrough=yes protocol=tcpadd action=mark-connection
chain=prerouting dst-port=\ 4380,4379,3478,27000-28999,27001,27099 new-connection-
mark=dota2 \ passthrough=yes protocol=udpadd action=mark-packet chain=prerouting
connection-mark=dota2 \ new-packet-mark=dota2-pkt passthrough=noadd action=mark-
connection chain=prerouting comment="league of legends " \ dst-port=2099,8088,8393-
8400,5222-5227 new-connection-mark=LOL \ passthrough=yes protocol=tcpadd
action=mark-connection chain=prerouting dst-port=\ 5000-5500,19900,1513,42354 new-
connection-mark=LOL passthrough=yes \ protocol=udpadd action=mark-packet
chain=prerouting connection-mark=LOL new-packet-mark=\ lol-pkt passthrough=noadd
action=mark-connection chain=prerouting comment="call of duty" dst-
port=\ 3013,18082,65010,65050 new-connection-mark="call of duty"
passthrough=yes \ protocol=tcpadd action=mark-connection chain=prerouting dst-
port=7500-7650 \ new-connection-mark="call of duty" passthrough=yes protocol=udpadd
action=mark-packet chain=prerouting connection-mark="call of duty" \ new-packet-
mark=cod-pkt passthrough=noadd action=mark-connection chain=prerouting
comment="pubg mobile" dst-port=\
10012,17500 new-connection-mark="pubg mobile" passthrough=yes protocol=\ tcpadd
action=mark-connection chain=prerouting dst-
port="10010,10013,10039,10096,\ 10491,10612,11455,12235,13748,13894,13972,20000-
20002" \ new-connection-mark="pubg mobile" passthrough=yes protocol=udpadd
action=mark-packet chain=prerouting connection-mark="pubg mobile" \ new-packet-
mark=pubg-pkt passthrough=noadd action=mark-connection chain=prerouting
comment=streaming dst-port=443 \ new-connection-mark=streaming passthrough=yes
protocol=udpadd action=mark-connection chain=prerouting layer7-
protocol=video \ new-connection-mark=streaming passthrough=yesadd action=mark-
packet chain=prerouting connection-mark=streaming \ new-packet-mark="streaming -
pkt" passthrough=noadd action=mark-connection chain=prerouting
comment=downloading \ connection-bytes=512000-0 dst-port=80,8080,443 new-
connection-mark=\ downloading passthrough=yes protocol=tcpadd action=mark-
connection chain=prerouting connection-bytes=512000-0 \ dst-port=80,8080 new-
connection-mark=downloading passthrough=yes \ protocol=udpadd action=mark-packet
chain=prerouting connection-mark=downloading \ new-packet-mark=dload-pkt
passthrough=noadd action=mark-connection chain=prerouting comment=browsing dst-
port=\ 80,8080,443 new-connection-mark=browsing passthrough=yes protocol=tcpadd
action=mark-connection chain=prerouting dst-port=80,8080 \ new-connection-
mark=browsing passthrough=yes protocol=udpadd action=mark-packet chain=prerouting
connection-mark=browsing \ new-packet-mark=browsing-pkt passthrough=noadd
action=mark-connection chain=prerouting comment=others connection-bytes=\ 0-64000
new-connection-mark=others passthrough=yes protocol=tcpadd action=mark-connection
chain=prerouting connection-bytes=0-64000 \ new-connection-mark=others
passthrough=yes protocol=udpadd action=mark-packet chain=prerouting connection-
mark=others \ new-packet-mark=others-pkt passthrough=noadd action=mark-packet
chain=forward comment=ping new-packet-mark=ping-pkt \ passthrough=no
protocol=icmp/queue treeadd max-limit=10M name=DOWNLOAD parent=globaladd max-
limit=4M name=UPLOAD parent=ether1add name="mobile legends" packet-mark=ml-pkt
parent=DOWNLOAD priority=1 \ queue=pcq-download-defaultadd name="cross fire"
packet-mark=crossfire-pkt parent=DOWNLOAD priority=1 \ queue=pcq-download-
defaultadd name="rules of survival" packet-mark=ros-pkt parent=DOWNLOAD
priority=1 \ queue=pcq-download-defaultadd name=dota2 packet-mark=dota2-pkt
parent=DOWNLOAD priority=1 queue=\ pcq-download-defaultadd name="league of legends
" packet-mark=lol-pkt parent=DOWNLOAD priority=\ 1 queue=pcq-download-defaultadd
name="call of duty" packet-mark=cod-pkt parent=DOWNLOAD priority=1 \ queue=pcq-
download-default
add name="pubg mobile" packet-mark=pubg-pkt parent=DOWNLOAD
priority=1 \ queue=pcq-download-defaultadd name="ccall of duty" packet-mark=cod-pkt
parent=UPLOAD priority=1 \ queue=pcq-upload-defaultadd name="ccross fire" packet-
mark=crossfire-pkt parent=UPLOAD priority=1 \ queue=pcq-upload-defaultadd
name=ddota2 packet-mark=dota2-pkt parent=UPLOAD priority=1 queue=\ pcq-upload-
defaultadd name="lleague of legends " packet-mark=lol-pkt parent=UPLOAD
priority=1 \ queue=pcq-upload-defaultadd name="mmobile legends" packet-mark=ml-pkt
parent=UPLOAD priority=1 \ queue=pcq-upload-defaultadd name="ppubg mobile" packet-
mark=pubg-pkt parent=UPLOAD priority=1 \ queue=pcq-upload-defaultadd name="rrules
of survival" packet-mark=ros-pkt parent=UPLOAD priority=1 \ queue=pcq-upload-
defaultadd max-limit=4M name=SubDown parent=DOWNLOADadd max-limit=2M name="SubDown
UP" parent=UPLOADadd name=ping packet-mark=ping-pkt parent=DOWNLOAD priority=1add
max-limit=2M name=streaming packet-mark="streaming -pkt" parent=\ SubDown
queue=pcq-download-defaultadd max-limit=7M name=downloading packet-mark=dload-pkt
parent=SubDown \ queue=pcq-download-defaultadd max-limit=1M name=browsing packet-
mark=browsing-pkt parent=SubDown \ queue=pcq-download-defaultadd max-limit=1M
name=others packet-mark=others-pkt parent=SubDown queue=\ pcq-download-defaultadd
max-limit=1M name=bbrowsing packet-mark=browsing-pkt parent=\ "SubDown UP"
queue=pcq-upload-defaultadd max-limit=1M name=ddownloading packet-mark=dload-pkt
parent=\ "SubDown UP" queue=pcq-upload-defaultadd max-limit=1M name=oothers packet-
mark=others-pkt parent="SubDown UP" \ queue=pcq-upload-defaultadd max-limit=1M
name=sstreaming packet-mark="streaming -pkt" parent=\ "SubDown UP" queue=pcq-
upload-default

You might also like