total bandiwith isp 1
Download
M
Upload
M
bandiwith untuk game
Download
Upload
bandiwith untuk umum
Download
Upload
bandiwith untuk youtube
Download
Upload


/queue simple
add max-limit={{t_up}}M/{{t_down}}M name=Total-Bandwidth target={{iphotspot}}
/queue type
add kind=pcq name=pcq-download pcq-classifier=dst-address \
pcq-dst-address6-mask=64 pcq-src-address6-mask=64
add kind=pcq name=pcq-upload pcq-classifier=src-address \
pcq-dst-address6-mask=64 pcq-src-address6-mask=64
/queue simple
add max-limit={{limit_game_up}}/{{limit_game_down}} name=Game-Online packet-marks=\
Paket-Game-Download,Paket-Game-Upload parent=Total-Bandwidth priority=1/1 \
queue=pcq-upload/pcq-download target={{iphotspot}}
add max-limit={{limit_umum_up}}/{{limit_umum_down}} name=Koneksi-Umum packet-marks=\
Paket-Umum-Download,Paket-Umum-Upload parent=Total-Bandwidth priority=5/5 \
queue=pcq-upload/pcq-download target={{iphotspot}}
add max-limit={{limit_yt_up}}/{{limit_yt_down}} name=Koneksi-Youtube packet-marks=\
Paket-Youtube-Download,Paket-Youtube-Upload parent=Total-Bandwidth \
priority=3/3 queue=pcq-upload/pcq-download target={{iphotspot}}

/ip firewall mangle
add action=mark-connection chain=prerouting comment=PUBG dst-port=\
7889,10012,17500,18081 new-connection-mark=Koneksi-Game passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
8011,9030,10010-10650,11000-14000,20000,20001,20002,17000 \
new-connection-mark=Koneksi-Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment="FREE FIRE" dst-port=\
7006,14000,39698,39779,39003 new-connection-mark=Koneksi-Game \
passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=7008,10000-10009,17000 \
new-connection-mark=Koneksi-Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment="MOBILE LEGENDS" \
dst-port=5500-5700,8001,30000-30300,9000-9010 new-connection-mark=\
Koneksi-Game passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
5000-5200,5500-5700,8001,30000-30300,9000-9010 new-connection-mark=\
Koneksi-Game passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment="POINT BLANK" dst-port=\
39190-39200,49001-49190 new-connection-mark=Koneksi-Game passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting dst-port=40000-40010 \
new-connection-mark=Koneksi-Game passthrough=yes protocol=udp
add action=mark-packet chain=forward comment="PAKET GAME DOWNLOAD" \
connection-mark=Koneksi-Game in-interface=ether1-Internet \
new-packet-mark=Paket-Game-Download passthrough=yes
add action=mark-packet chain=forward comment="PAKET GAME UPLOAD" \
connection-mark=Koneksi-Game new-packet-mark=Paket-Game-Upload \
out-interface=ether1-Internet passthrough=yes
add action=mark-connection chain=prerouting comment="KONEKSI UMUM" \
connection-mark=!Koneksi-Game dst-port=\
80,81,443,8000-8081,21,22,23,81,88,5050,843,182,53 new-connection-mark=\
Koneksi-Umum passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting connection-mark=!Koneksi-Game \
dst-port=80,81,443,8000-8081,21,22,23,81,88,5050,843,182,53 \
new-connection-mark=Koneksi-Umum passthrough=yes protocol=udp
add action=mark-packet chain=forward comment="PAKET UMUM DOWNLOAD" \
connection-mark=Koneksi-Umum in-interface=ether1-Internet \
new-packet-mark=Paket-Umum-Download passthrough=yes
add action=mark-packet chain=forward comment="PAKET UMUM UPLOAD" \
connection-mark=Koneksi-Umum new-packet-mark=Paket-Umum-Upload \
out-interface=ether1-Internet passthrough=yes
add action=add-dst-to-address-list address-list=IP-Address-Youtube \
address-list-timeout=10m chain=prerouting comment=\
"MARKING IP ADDRESS YOUTUBE" content=googlevideo.com
add action=mark-connection chain=prerouting comment="KONEKSI YOUTUBE" \
dst-address-list=IP-Address-Youtube new-connection-mark=Koneksi-Youtube \
passthrough=yes
add action=mark-packet chain=forward comment="PAKET YOUTUBE DOWNLOAD" \
connection-mark=Koneksi-Youtube in-interface=ether1-Internet \
new-packet-mark=Paket-Youtube-Download passthrough=yes
add action=mark-packet chain=forward comment="PAKET YOUTUBE UPLOAD" \
connection-mark=Koneksi-Youtube new-packet-mark=Paket-Youtube-Upload \
out-interface=ether1-Internet passthrough=yes