Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /ip firewall address-list
- add address=10.0.0.0/8 comment="++ client" list=local
- add address=172.16.0.0/12 list=local
- add address=192.168.0.0/16 list=local
- /ip firewall address-list
- add address=43.252.184.0/22 comment="++ garena" list=games
- add address=203.117.172.0/24 list=games
- add address=203.117.155.0/24 list=games
- add address=203.117.158.0/24 list=games
- add address=203.116.64.0/24 list=games
- add address=203.116.23.0/24 list=games
- add address=202.73.16.0/21 list=games
- add address=125.5.12.0/24 list=games
- add address=122.11.128.0/24 list=games
- add address=103.248.56.0/22 list=games
- add address=49.50.7.0/24 comment="++ kreon" list=games
- add address=49.50.6.0/24 list=games
- add address=49.50.6.0/23 list=games
- add address=49.50.5.0/24 list=games
- add address=49.50.4.0/24 list=games
- add address=49.50.4.0/23 list=games
- add address=49.50.4.0/22 list=games
- add address=203.89.147.0/24 list=games
- add address=203.89.146.0/24 list=games
- add address=202.93.16.0/21 comment="++ lyto" list=games
- add address=122.102.54.0/24 comment="++ megaxus" list=games
- add address=122.102.53.0/24 list=games
- add address=122.102.52.0/24 list=games
- add address=122.102.51.0/24 list=games
- add address=122.102.50.0/24 list=games
- add address=122.102.49.0/24 list=games
- add address=122.102.48.0/24 list=games
- add address=103.8.56.0/24 comment="++ prime link indonesia" list=games
- add address=103.8.57.0/24 list=games
- add address=103.8.58.0/23 list=games
- add address=103.8.58.0/24 list=games
- add address=103.8.59.0/24 list=games
- add address=110.93.12.0/23 list=games
- add address=110.93.12.0/24 list=games
- add address=110.93.13.0/24 list=games
- add address=110.93.14.0/23 list=games
- add address=110.93.14.0/24 list=games
- add address=110.93.15.0/24 list=games
- add address=202.43.116.0/23 list=games
- add address=202.43.116.0/24 list=games
- add address=202.43.117.0/24 list=games
- add address=116.212.98.0/23 comment="++ lintas data indonesia" list=games
- add address=116.212.98.0/24 list=games
- add address=116.212.99.0/24 list=games
- add address=205.185.194.0/24 comment="++ valve US" list=games
- add address=208.78.164.0/22 comment="++ valve corporation" list=games
- add address=103.28.54.0/23 comment="++ valve singapure" list=games
- add address=143.137.146.0/24 comment=Peru list=games
- add address=153.254.86.0/24 comment=Japan list=games
- add address=45.121.184.0/23 comment="++ valve japan" list=games
- add address=45.121.186.0/23 list=games
- add address=146.66.152.0/23 comment="++ valve europe union" list=games
- add address=146.66.154.0/24 list=games
- add address=155.133.240.0/23 list=games
- add address=155.133.242.0/23 list=games
- add address=155.133.244.0/24 list=games
- add address=155.133.245.0/24 list=games
- add address=162.254.192.0/24 list=games
- add address=162.254.193.0/24 list=games
- add address=162.254.194.0/23 list=games
- add address=162.254.196.0/24 list=games
- add address=162.254.197.0/24 list=games
- add address=162.254.198.0/24 list=games
- add address=162.254.199.0/24 list=games
- add address=185.25.183.0/24 list=games
- add address=122.11.128.0/18 list=games
- add address=146.66.155.0/24 list=games
- add address=146.66.156.0/23 list=games
- add address=146.66.158.0/23 list=games
- add address=185.25.180.0/23 list=games
- add address=185.25.182.0/24 list=games
- add address=155.133.238.0/24 comment="++ valve germany" list=games
- add address=155.133.239.0/24 list=games
- add address=155.133.246.0/23 list=games
- add address=155.133.248.0/24 list=games
- add address=155.133.249.0/24 list=games
- add address=155.133.250.0/23 list=games
- add address=155.133.250.0/24 list=games
- add address=155.133.251.0/24 list=games
- add address=155.133.252.0/24 list=games
- add address=155.133.254.0/24 list=games
- add address=205.196.6.0/24 list=games
- add address=208.64.200.0/24 list=games
- add address=208.64.201.0/24 list=games
- add address=208.64.202.0/24 list=games
- add address=208.64.203.0/24 list=games
- add address=192.69.96.0/22 list=games
- add address=63.150.138.0/24 comment="++ valve" list=games
- add address=216.111.123.0/24 list=games
- add address=103.10.124.0/24 list=games
- add address=103.10.125.0/24 list=games
- add address=117.18.232.0/24 comment="++ edgecast network" disabled=yes list=\
- games
- add address=205.185.216.0/24 comment="++ valve US" list=games
- add address=206.82.192.0/19 comment="++ Latisys-Irvine, LLC" list=games
- add address=155.133.253.0/24 comment="++ valve" list=games
- add address=190.217.32.0/22 list=games
- add address=155.133.233.0/24 list=games
- add address=155.133.230.0/23 list=games
- add address=155.133.232.0/23 list=games
- /ip firewall mangle
- add action=mark-connection chain=prerouting comment="++ echo request" new-connection-mark=icmp protocol=icmp
- add action=mark-packet chain=prerouting connection-mark=icmp new-packet-mark=icmp_up passthrough=no
- add action=mark-packet chain=postrouting connection-mark=icmp new-packet-mark=icmp_down passthrough=no
- add action=mark-connection chain=prerouting comment="++ dns resolve" new-connection-mark=dns port=53,2048,5353,123 protocol=udp
- add action=mark-packet chain=prerouting connection-mark=dns new-packet-mark=dns_up passthrough=no
- add action=mark-packet chain=postrouting connection-mark=dns new-packet-mark=dns_down passthrough=no
- add action=mark-connection chain=prerouting comment="++ games online" dst-address-list=games dst-port=!80,182,443,8080,21,81,6861,6851,1970,1935,4500,127,88,8001-8050 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting dst-address-list=games dst-port=!80,182,443,8080,21,81,6861,6851,1970,1935,4500,127,88,8001-8050 new-connection-mark="games online" protocol=udp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games online ---> touch prodigy" dst-address=103.8.56.0/24 dst-port=!80,443 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> mobile legend" dst-port=5530,30050-30110 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> line get rich" dst-port=10500-10515 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> clash of clans/royale, last empire, zynga poker" dst-port=9330-9340,9933 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting dst-port=9330-9340 new-connection-mark="games online" protocol=udp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> domino qq" dst-port=9122,11000-11150 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> dream league soccer" dst-port=60970-60980 new-connection-mark="games online" protocol=udp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> shinobi heroes" dst-port=10005-10020 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games mobile ---> boya domino qq" dst-port=7020-7030 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games browser ---> league of angels" dst-port=51700-51715 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games browser ---> sword of angels" dst-port=15490-15510 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games browser ---> headshot" dst-port=1800-1810 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting dst-port=1845-1860 new-connection-mark="games online" protocol=udp src-address-list=local
- add action=mark-connection chain=prerouting comment="++ games browser ---> others" dst-port="843,4000,8000,8012,8890,9339,9338,10001-10011,7200-7210,7450-7460,23300,4530" new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting dst-port=26590-26600,1800-1810,7111,5050,441,29007,64990-65010 new-connection-mark="games online" protocol=tcp src-address-list=local
- add action=mark-connection chain=prerouting dst-port=1845-1860 new-connection-mark="games online" protocol=udp src-address-list=local
- add action=mark-packet chain=forward comment="++ all games ---> packet" connection-mark="games online" new-packet-mark=games_online_up out-interface="ether1" passthrough=no
- add action=mark-packet chain=forward connection-mark="games online" in-interface="ether1" new-packet-mark=games_online_down passthrough=no
- add action=mark-connection chain=prerouting comment="++ other connections" connection-mark=no-mark new-connection-mark="OTHER CONN"
- add action=mark-packet chain=forward comment="++ qos data < 2 MB" connection-bytes=0-2097152 content=!1935 new-packet-mark=qos_small_up out-interface="ether1" passthrough=no protocol=tcp
- add action=mark-packet chain=forward connection-bytes=0-2097152 content=!1935 in-interface="ether1" new-packet-mark=qos_small_down passthrough=no protocol=tcp
- add action=mark-packet chain=forward comment="++ qos data > 2 MB" new-packet-mark=qos_high_up out-interface="ether1" passthrough=no
- add action=mark-packet chain=forward in-interface="ether1" new-packet-mark=qos_high_down passthrough=no
- /queue type
- add kind=pcq name=games pcq-burst-time=1s pcq-classifier=src-address,dst-address,src-port,dst-port pcq-dst-address6-mask=64 pcq-src-address6-mask=64
- add kind=pcq name=download pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-src-address6-mask=64 rate=2M
- add kind=pcq name=upload pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-src-address6-mask=64 rate=384k
- /queue simple
- add comment="++ global connection" max-limit=1M/4M name="--- packet management" queue=default/default target=ether2
- add limit-at=128k/1M max-limit=1M/4M name="--- echo request" packet-marks=icmp_up,icmp_down,dns_up,dns_down parent="--- packet management" priority=1/1 queue=default/default target="0.0.0.0/0"
- add limit-at=128k/1M max-limit=1M/4M name="--- games online" packet-marks=games_online_up,games_online_down parent="--- packet management" priority=2/2 queue=games/games target="0.0.0.0/0"
- add limit-at=256k/2M max-limit=512k/3M name="--- weight packet" parent="--- packet management" queue=default/default target="0.0.0.0/0"
- add comment=" ------------------------------------" limit-at=128k/1M max-limit=512k/3M name="--- data < 2 MB" packet-marks=qos_small_up,qos_small_down parent="--- weight packet" priority=6/6 queue=upload/download target="0.0.0.0/0"
- add limit-at=128k/1M max-limit=512k/3M name="--- data > 2 MB" packet-marks=qos_high_up,qos_high_down parent="--- weight packet" queue=upload/download target="0.0.0.0/0"
Add Comment
Please, Sign In to add comment