ip firewall mangle
add action=jump chain=prerouting comment="Rule Game Online" disabled=no \
jump-target=game
add action=mark-connection chain=game comment="Point Blank" disabled=no \
dst-address=203.89.146.0/23 dst-port=39190 new-connection-mark=Game \
passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="" disabled=no dst-address=\
203.89.146.0/23 dst-port=40000-40010 new-connection-mark=Game \
passthrough=yes protocol=udp
add action=mark-connection chain=game comment="Seal Online" disabled=no \
dst-port=1818 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment=Lineage2 disabled=no dst-port=\
7777 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Ghost Online" disabled=no \
dst-port=19101 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="RF Elven" disabled=no \
dst-port=27780 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Perfeck World" disabled=no \
dst-port=18901-18909 new-connection-mark=Game passthrough=yes protocol=\
tcp
add action=mark-connection chain=game comment=Rohan disabled=no dst-port=\
22100 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Zeus RO" disabled=no dst-port=\
5121 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment=Dota disabled=no dst-port=\
6000-6152 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Ido Street " disabled=no \
dst-port=2001 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Wow AMPM" disabled=no \
dst-port=8082 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Drift City" disabled=no \
dst-port=11011-11041 new-connection-mark=Game passthrough=yes protocol=\
tcp
add action=mark-connection chain=game comment=Getamped disabled=no dst-port=\
13413 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment=Yulgang disabled=no dst-port=\
19000 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="RAN Online" disabled=no \
dst-port=5105 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment=Crossfire disabled=no dst-port=\
10009 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="" disabled=no dst-port=\
12060-12070 new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=game comment=Atlantika disabled=no \
dst-address=203.89.147.0/24 dst-port=4300 new-connection-mark=Game \
passthrough=yes protocol=tcp
add action=mark-connection chain=game comment=Avalon disabled=no dst-port=\
9376-9377 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment="Lost Saga" disabled=no \
dst-port=14009,14010 new-connection-mark=Game passthrough=yes protocol=\
tcp
add action=mark-connection chain=game comment="" disabled=no dst-port=\
14009-14026 new-connection-mark=Game passthrough=yes protocol=udp
add action=mark-connection chain=game comment="FB-Empires & Allies" disabled=\
no dst-port=8890 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-connection chain=game comment=FB-Castleville disabled=no \
dst-port=8890 new-connection-mark=Game passthrough=yes protocol=tcp
add action=mark-packet chain=game comment="Packet Game Online" \
connection-mark=Game disabled=no new-packet-mark=Game_pkt passthrough=no
add action=mark-connection chain=forward comment=Poker content=\
statics.poker.static.zynga.com disabled=no dst-port=9339 \
new-connection-mark=Poker_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment="" disabled=no dst-port=843 \
new-connection-mark=Poker_con passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment="Packet Poker" connection-mark=\
Poker_con disabled=no new-packet-mark=Poker passthrough=no
add action=mark-packet chain=prerouting comment=Upload disabled=no \
in-interface=Lan new-packet-mark=Upload passthrough=no src-address=\
192.168.1.0/24
add action=mark-connection chain=forward comment="Youtube " disabled=no \
in-interface=Lan layer7-protocol=Youtube new-connection-mark=\
layer7-youtube out-interface=Modem passthrough=yes
add action=mark-packet chain=forward comment="Packet Youtube" \
connection-mark=layer7-youtube disabled=no new-packet-mark=Youtube \
passthrough=no
add action=mark-connection chain=forward comment="Limit Download" disabled=no \
in-interface=Lan layer7-protocol=Konten new-connection-mark=\
layer7-kontens out-interface=Modem passthrough=yes
add action=mark-packet chain=forward comment="Packet Limit Download" \
connection-mark=layer7-kontens disabled=no new-packet-mark=limit-kontens \
passthrough=no
add action=mark-connection chain=forward comment=Browsing disabled=no \
dst-port=80,3128 layer7-protocol=!Konten new-connection-mark=\
conn-browsing out-interface=Modem passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment="Packet Browsing" \
connection-mark=conn-browsing disabled=no new-packet-mark=limit-browsing \
passthrough=no
add action=mark-connection chain=forward comment="Limit Download Lan" \
connection-bytes=155000-4294967295 connection-mark=!Poker_con disabled=no \
in-interface=Modem new-connection-mark=Download out-interface=Lan \
packet-mark=!Game_pkt passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment="Packet Limit Download Lan" \
connection-mark=Download disabled=no new-packet-mark=Download_pkt \
packet-mark=!Game_pkt passthrough=no
queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name="Main Browse" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name="Main Upload" parent=global-in priority=8
add kind=pcq name=Game pcq-classifier=\
src-address,dst-address,src-port,dst-port pcq-limit=50 pcq-rate=0 \
pcq-total-limit=2000
add kind=pcq name=Upload pcq-classifier=src-address pcq-limit=50 pcq-rate=0 \
pcq-total-limit=2000
add kind=pcq name=Lan pcq-classifier="" pcq-limit=50 pcq-rate=1024000 \
pcq-total-limit=2000
add kind=pcq name=Proxy pcq-classifier=dst-address pcq-limit=50 pcq-rate=\
1000000 pcq-total-limit=2000
queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=1M name=Browsing packet-mark=limit-browsing parent=\
"Main Browse" priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=Youtube packet-mark=Youtube parent="Main Browse" \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=Game packet-mark=Game_pkt parent=global-total priority=1 \
queue=Game
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=Download packet-mark=limit-kontens parent=\
"Main Browse" priority=5 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=0 name=Poker packet-mark=Poker parent=global-out priority=2 \
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=512k name=Upload packet-mark=Upload parent="Main Upload" \
priority=8 queue=Upload
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
max-limit=256k name=Download-Lan packet-mark=Download_pkt parent=\
global-out priority=8 queue=default