ISI KOLOM INI JIKA MENGGUNAKAN 2 ISP UNTUK ROUTING GAME, KOSONGKAN JIKA GAK DIPAKE
KOSONGKAN JIKA GAK DIPAKE

total bandiwith
Download
M
Upload
M
bandiwith untuk game
Download
M
Upload
M
Total
Download
M
Upload
M


/interface list
add include=dynamic name="Interface Client"

/ip firewall mangle
add action=mark-routing chain=prerouting comment=Game-ISP2 \
connection-rate=0-300k dst-address-list=GAME new-routing-mark=Private \
passthrough=yes src-address-list=Lokal

/ip route
add check-gateway=ping distance=1 gateway={{ipisp2}} routing-mark=Private

/queue type
add kind=pfifo name=piffo-packet pfifo-limit=5000
add kind=sfq name="sfq-game [beta]" sfq-allot=15140 sfq-perturb=1000

/queue simple
add bucket-size=1/1 limit-at=512k/1M max-limit={{t_up}}M/{{t_down}}M name=\
"All Connection Client" priority=1/1 queue=piffo-packet/piffo-packet \
target={{iphotspot}} \
total-queue=piffo-packet
add bucket-size=1/1 limit-at=1M/1M max-limit={{limit_game_up}}M/{{limit_game_down}}M name=\
"1.Game - Ping Packet" packet-marks=\
"Game Download,Game Upload,Ping-Packet" parent="All Connection Client" \
priority=1/1 queue=piffo-packet/piffo-packet target=\
{{iphotspot}} total-queue=\
piffo-packet
add limit-at=512k/1M max-limit={{hasil_up}}M/{{hasil_down}}M name=2.Parent-Browsing-Client \
packet-marks="Client Download,Client Upload,Google Cache Download,Global C\
ache Upload,Sosial Media Download,Sosial Media Upload" parent=\
"All Connection Client" queue=pcq-upload-default/pcq-download-default \
target={{iphotspot}}
add name=Client-Rumah/Warnet parent=2.Parent-Browsing-Client queue=\
pcq-upload-default/pcq-download-default target={{ipppoe}}

add name=Client-Hotspot parent=2.Parent-Browsing-Client queue=\
pcq-upload-default/pcq-download-default target={{iphotspot}} total-queue=\
default

add name=Limitasi-Bypass-Hotspot parent=Client-Hotspot queue=\
pcq-upload-default/pcq-download-default target={{iphotspot}} total-queue=\
default

/queue tree
add max-limit={{t_down}}M name="Client Priority" parent=global priority=1 queue=\
piffo-packet
add bucket-size=1 max-limit={{limit_game_down}}M name="A. Game Download" packet-mark=\
"Game Download" parent="Client Priority" priority=1 queue=piffo-packet
add bucket-size=1 max-limit={{limit_game_up}}M name="B. Game Upload" packet-mark=\
"Game Upload" parent="Client Priority" priority=1 queue=piffo-packet
add bucket-size=1 max-limit=1M name="D. Ping Packet" packet-mark=Ping-Packet \
parent="Client Priority" priority=1 queue=piffo-packet
add max-limit={{hasil_down}}M name="C. Download" parent="Client Priority" queue=\
pcq-download-default
add name="1. Client Download Total" packet-mark="Client Download" parent=\
"C. Download" queue=pcq-download-default
add name="2. Youtube/Google Cache" packet-mark="Google Cache Download" \
parent="C. Download" priority=7 queue=pcq-download-default
add name="3. Client Sosial Media Download" packet-mark=\
"Sosial Media Download" parent="C. Download" priority=1 queue=\
pcq-download-default
add max-limit=7M name="E. Upload" parent="Client Priority" queue=\
pcq-upload-default
add name="1. Client Upload Total" packet-mark="Client Upload" parent=\
"E. Upload" queue=pcq-upload-default
add name="3. Client Sosial Media Upload" packet-mark="Sosial Media Upload" \
parent="E. Upload" queue=pcq-upload-default
add name="2. Client Google Cache Upload" packet-mark="Global Cache Upload" \
parent="E. Upload" queue=pcq-upload-default

/ip firewall mangle
add action=mark-connection chain=input comment=PING new-connection-mark=PING \
passthrough=no protocol=icmp
add action=mark-connection chain=prerouting dst-port=53 new-connection-mark=\
PING passthrough=no protocol=udp
add action=mark-packet chain=forward connection-mark=PING new-packet-mark=\
Ping-Packet passthrough=no
add action=mark-connection chain=prerouting comment=\
"Lempar Trafik Berat Ke Download" connection-rate=250k-999M \
dst-address-list=GAME new-connection-mark="Client All" passthrough=yes
add action=mark-connection chain=prerouting connection-rate=250k-999M \
new-connection-mark="Client All" passthrough=yes src-address-list=GAME
add action=mark-connection chain=prerouting comment="Sosial Media" \
dst-address-list=Sosmed in-interface-list="Interface Client" \
new-connection-mark=SOSMED passthrough=no
add action=mark-packet chain=forward connection-mark=SOSMED new-packet-mark=\
"Sosial Media Download" out-interface-list="Interface Client" passthrough=\
yes
add action=mark-packet chain=forward connection-mark=SOSMED \
in-interface-list="Interface Client" new-packet-mark="Sosial Media Upload" \
passthrough=no
add action=mark-connection chain=postrouting comment="Game Trafik" \
connection-mark="!Client All" dst-address-list=GAME new-connection-mark=\
GAME-FRW passthrough=no
add action=change-dscp chain=prerouting connection-rate=0-250k \
dst-address-list=GAME new-dscp=8 passthrough=no
add action=mark-packet chain=forward comment="Game Download/Upload" \
connection-mark=GAME-FRW new-packet-mark="Game Download" \
out-interface-list="Interface Client" passthrough=yes
add action=mark-packet chain=forward connection-mark=GAME-FRW \
in-interface-list="Interface Client" new-packet-mark="Game Upload" \
passthrough=yes
add action=mark-connection chain=prerouting comment="Speedtest/Client ALL" \
dst-address-list=Speedtest in-interface-list="Interface Client" \
new-connection-mark="Client All" passthrough=no
add action=mark-connection chain=prerouting comment="Client All" \
connection-mark=!GAME-FRW in-interface-list="Interface Client" \
new-connection-mark="Client All" passthrough=yes
add action=mark-packet chain=forward connection-mark="Client All" \
in-interface-list="Interface Client" new-packet-mark="Client Upload" \
passthrough=no
add action=mark-packet chain=forward connection-mark="Client All" \
new-packet-mark="Client Download" out-interface-list="Interface Client" \
passthrough=no
add action=mark-connection chain=prerouting comment=Youtube dst-address-list=\
"Google Cache" in-interface-list="Interface Client" new-connection-mark=\
"Google Cache" passthrough=no
add action=mark-packet chain=forward connection-mark="Google Cache" \
in-interface-list="Interface Client" new-packet-mark="Global Cache Upload" \
passthrough=no
add action=mark-packet chain=forward connection-mark="Google Cache" \
new-packet-mark="Google Cache Download" out-interface-list=\
"Interface Client" passthrough=no

/ip firewall raw
add action=add-dst-to-address-list address-list=Speedtest \
address-list-timeout=1h chain=prerouting comment=Speedtest content=\
speedtest
add action=add-dst-to-address-list address-list=Speedtest \
address-list-timeout=1h chain=prerouting log=yes port=0-60000 protocol=\
tcp tls-host=*speedtest*
add action=add-dst-to-address-list address-list=Speedtest \
address-list-timeout=1h chain=prerouting content=speedtest dst-port=\
0-65365 log=no protocol=udp tcp-flags=""
add action=add-dst-to-address-list address-list=GAME address-list-timeout=2m \
chain=prerouting comment="Game New" dst-port=\
2080-2099,3051-3079,5000-5200,5300-5699,7000-7999,9000-30000,39000-45000 \
in-interface-list="Interface Client" protocol=tcp tcp-flags=""
add action=add-dst-to-address-list address-list=GAME address-list-timeout=2m \
chain=prerouting dst-port=\
3051-3079,3401-3470,4301-5599,7001-8001,8200-8300,9000-30200,40000-40010 \
in-interface-list="Interface Client" protocol=udp
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting comment=Whatsapp content=.whatsapp.net \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting content=.whatsapp.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting comment=Facebook content=.facebook.com \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting content=.fbcdn.net in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting content=.facebook.net in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting comment=Instagram content=.cdninstagram.com \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting content=.instagram.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting comment=Twitter content=.twitter.com \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
2h chain=prerouting content=.twimg.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list="Google Cache" \
address-list-timeout=5m chain=prerouting comment="Global Cache Telkom" \
content=.googlevideo.com in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list="Google Cache" \
address-list-timeout=5m chain=prerouting content=.youtube.com \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting comment=Tiktok content=.byteoversea.com \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting content=.ibyteimg.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting content=.tiktokcdn.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting content=.tiktokv.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting content=.tiktok.com in-interface-list=\
"Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting comment="Tiktok (TLS)" content=tiktok \
in-interface-list="Interface Client"
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting in-interface-list="Interface Client" protocol=tcp \
tls-host=*.tiktokcdn.com
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting in-interface-list="Interface Client" protocol=tcp \
tls-host=*.tiktokv.com
add action=add-dst-to-address-list address-list=Sosmed address-list-timeout=\
1h chain=prerouting in-interface-list="Interface Client" protocol=tcp \
tls-host=*tiktok.com

/ip firewall address-list
add address=161.202.192.0/19 list=GAME
add address=13.33.184.0/22 list=GAME
add address=13.250.0.0/15 list=GAME
add address=203.205.234.0/23 list=GAME
add address=23.248.160.0/19 list=GAME
add address=23.248.168.0/22 list=GAME
add address=161.202.0.0/16 list=GAME
add address=129.227.32.0/20 list=GAME
add address=128.1.0.0/16 list=GAME
add address=129.227.64.0/19 list=GAME
add address=169.38.64.0/19 list=GAME
add address=169.38.64.0/18 list=GAME
add address=27.111.228.0/22 list=GAME
add address=50.97.0.0/19 list=GAME
add address=174.132.0.0/15 list=GAME
add address=174.133.116.0/22 list=GAME
add address=180.240.128.0/17 list=GAME
add address=180.240.190.0/24 list=GAME
add address=180.252.0.0/16 list=GAME
add address=119.81.0.0/16 list=GAME
add address=119.81.64.0/18 list=GAME
add address=119.28.96.0/19 list=GAME
add address=119.28.122.0/23 list=GAME
add address=161.202.217.0/24 list=GAME
add address=103.10.124.0/24 list=GAME
add address=128.1.87.0/24 list=GAME
add address={{iphotspot}} list=Lokal

/interface list member
add interface="{{interface1}}" list="Interface Client"
add interface="{{interface2}}" list="Interface Client"
add interface="{{interface3}}" list="Interface Client"
add interface="{{interface4}}" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"
add interface="" list="Interface Client"