You are on page 1of 4

/ip firewall mangle

add action=mark-connection chain=prerouting comment="PORT UMUM" dst-port=\


21,22,23,81,88,5050,843,182,8777,1935,53,8000-8081,80,443 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
21,22,23,81,88,5050,843,182,8777,1935,53,8000-8081,80,443 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=udp
add action=mark-connection chain=prerouting dst-port=\
67,8291,8728,8729,5228,35915,39397,110,5060,6666,3478,66,53 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
67,8291,8728,8729,5228,35915,39397,110,5060,6666,3478,66,53 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=udp
add action=mark-connection chain=prerouting comment=GAME connection-mark=\
"!PORT UMUM" in-interface=!ether1-INTERNET new-connection-mark=\
"PORT RINGAN (GAME)" passthrough=yes protocol=udp
add action=mark-connection chain=prerouting comment=GAME connection-mark=\
"!PORT UMUM" in-interface=!ether1-INTERNET new-connection-mark=\
"PORT RINGAN (GAME)" passthrough=yes protocol=tcp
add action=add-dst-to-address-list address-list="IP BUKAN UMUM BERAT" \
address-list-timeout=1h chain=prerouting comment=\
"PORT BERAT BUKAN (GAME)" connection-mark="!PORT UMUM" connection-rate=\
1M-100M in-interface=!ether1-INTERNET
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN UMUM BERAT" in-interface=!ether1-INTERNET new-connection-mark=\
"PORT BERAT (BUKAN GAME)" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-address-list=\
"IP BUKAN UMUM BERAT" in-interface=!ether1-INTERNET new-connection-mark=\
"PORT BERAT (BUKAN GAME)" passthrough=yes protocol=udp
add action=add-dst-to-address-list address-list="IP YOUTUBE" \
address-list-timeout=1d chain=prerouting comment=YOUTUBE content=\
googlevideo.com in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP YOUTUBE" \
address-list-timeout=1d chain=prerouting content=ytimg.com in-interface=\
!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP YOUTUBE" \
address-list-timeout=1d chain=prerouting content=.youtube in-interface=\
!ether1-INTERNET
add action=mark-connection chain=prerouting dst-address-list="IP YOUTUBE" \
in-interface=!ether1-INTERNET new-connection-mark=YOUTUBE.COM \
passthrough=yes
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=INSTAGRAM content=\
.cdninstagram.com in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.instagram.com \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=LIKEE content=like.video \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=likee.video \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=Telegram content=\
.telegram.org in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=telegram.org \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=WA content=.whatsapp.net \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.whatsapp.com \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=LIFE360 content=\
.life360.com in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=FACEBOOK content=\
.facebook.com in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.facebook.net \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.fbcdn.net in-interface=\
!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=TWITTER content=\
.twitter.com in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.twimg.com in-interface=\
!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting comment=TIKTOK content=\
.tiktokv.com in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.musical.ly \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=.tiktokcdn.com \
in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="IP SOSMED" \
address-list-timeout=1d chain=prerouting content=" tiktok" in-interface=\
!ether1-INTERNET
add action=mark-connection chain=prerouting dst-address-list="IP SOSMED" \
in-interface=!ether1-INTERNET new-connection-mark=SOSMED passthrough=yes
add action=mark-packet chain=forward comment="PORT RINGAN (GAME) DOWN" \
connection-mark="PORT RINGAN (GAME)" in-interface=ether1-INTERNET \
new-packet-mark="PORT RINGAN (GAME) DOWN" passthrough=yes
add action=mark-packet chain=forward comment="PORT RINGAN (GAME) UPLUAD" \
connection-mark="PORT RINGAN (GAME)" new-packet-mark=\
"PORT RINGAN (GAME) UPLUAD" out-interface=ether1-INTERNET passthrough=yes
add action=mark-packet chain=forward comment="PORT BERAT (BUKAN GAME) DOWN" \
connection-mark="PORT BERAT (BUKAN GAME)" in-interface=ether1-INTERNET \
new-packet-mark="PORT BERAT (BUKAN GAME) DOWN" passthrough=yes
add action=mark-packet chain=forward comment="PORT BERAT (BUKAN GAME) UPLUAD" \
connection-mark="PORT BERAT (BUKAN GAME)" new-packet-mark=\
"PORT BERAT (BUKAN GAME) UPLUAD" out-interface=ether1-INTERNET \
passthrough=yes
add action=mark-packet chain=forward comment="YOUTUBE.COM DOWN" \
connection-mark=YOUTUBE.COM in-interface=ether1-INTERNET new-packet-mark=\
"YOUTUBE.COM DOWN" passthrough=yes
add action=mark-packet chain=forward comment="YOUTUBE.COM UPLUAD" \
connection-mark=YOUTUBE.COM new-packet-mark="YOUTUBE.COM UPLUAD" \
out-interface=ether1-INTERNET passthrough=yes
add action=mark-packet chain=forward comment="SOSMED DOWN" connection-mark=\
SOSMED in-interface=ether1-INTERNET new-packet-mark="SOSMED DOWN" \
passthrough=yes
add action=mark-packet chain=forward comment="SOSMED UPLOAD" connection-mark=\
SOSMED new-packet-mark="SOSMED UPLOAD" out-interface=ether1-INTERNET \
passthrough=yes
add action=mark-packet chain=forward comment="CLIENT PPPOE DOWN" \
connection-mark="PORT UMUM" dst-address=192.168.20.0/24 in-interface=\
ether1-INTERNET new-packet-mark="PPPOE DOWN" passthrough=yes
add action=mark-packet chain=forward comment="CLIENT PPPOE UP" connection-mark=\
"PORT UMUM" new-packet-mark="PPPOE UP" out-interface=ether1-INTERNET \
passthrough=yes src-address=192.168.20.0/24
add action=mark-packet chain=forward comment="CLIENT HOTSPOT DOWN" \
connection-mark="PORT UMUM" dst-address=10.10.10.1/24 in-interface=\
ether1-INTERNET new-packet-mark="HOTSPOT DOWN" passthrough=yes
add action=mark-packet chain=forward comment="CLIENT HOTSPOT UP" \
connection-mark="PORT UMUM" new-packet-mark="HOTSPOT UP" out-interface=\
ether1-INTERNET passthrough=yes src-address=10.10.10.1/24
/queue tree
add max-limit=10M name="DOWNLOAD ALL DARI ISP" parent=global queue=\
pcq-download-default
add max-limit=2M name="UPLUAD ALL DARI ISP" parent=global queue=\
pcq-upload-default
add max-limit=9M name="1.TOTAL DOWNLOAD ALL CLIEN" parent=\
"DOWNLOAD ALL DARI ISP" queue=pcq-download-default
add name="2.PORT RINGAN (GAME)" packet-mark="PORT RINGAN (GAME) DOWN" parent=\
"DOWNLOAD ALL DARI ISP" priority=1 queue=pcq-download-default
add name="PORT BERAT (BUKAN GAME) DOWN" packet-mark=\
"PORT BERAT (BUKAN GAME) DOWN" parent="1.TOTAL DOWNLOAD ALL CLIEN" queue=\
pcq-download-default
add name="YOUTUBE.COM DOWN" packet-mark="YOUTUBE.COM DOWN" parent=\
"1.TOTAL DOWNLOAD ALL CLIEN" queue=pcq-download-default
add max-limit=2M name="1.TOTAL UPLOAD ALL CLIEN" parent="UPLUAD ALL DARI ISP" \
queue=pcq-upload-default
add name="PORT BERAT(BUKAN GAME) UPLUAD" packet-mark=\
"PORT BERAT (BUKAN GAME) UPLUAD" parent="1.TOTAL UPLOAD ALL CLIEN" queue=\
pcq-upload-default
add name="YOUTUBE.COM UP" packet-mark="YOUTUBE.COM UPLUAD" parent=\
"1.TOTAL UPLOAD ALL CLIEN" queue=pcq-upload-default
add name="PORT RINGAN (GAME) UP" packet-mark="PORT RINGAN (GAME) UPLUAD" \
parent="UPLUAD ALL DARI ISP" priority=1 queue=pcq-upload-default
add name="HOTSPOT UP" packet-mark="HOTSPOT UP" parent=\
"1.TOTAL UPLOAD ALL CLIEN" queue=pcq-upload-default
add name="HOTSPOT DOWN" packet-mark="HOTSPOT DOWN" parent=\
"1.TOTAL DOWNLOAD ALL CLIEN" queue=pcq-download-default
add name="PPPOE DOWN" packet-mark="PPPOE DOWN" parent=\
"1.TOTAL DOWNLOAD ALL CLIEN" queue=pcq-download-default
add name="PPPOE UP" packet-mark="PPPOE UP" parent="1.TOTAL UPLOAD ALL CLIEN" \
queue=pcq-upload-default
add name="SOSMED DOWN" packet-mark="SOSMED DOWN" parent=\
"1.TOTAL DOWNLOAD ALL CLIEN" queue=pcq-download-default
add name="SOSMED UP" packet-mark="SOSMED UPLOAD" parent=\
"1.TOTAL UPLOAD ALL CLIEN" queue=pcq-upload-default
/queue simple
add name="1. GAME" packet-marks=\
"PORT RINGAN (GAME) DOWN,PORT RINGAN (GAME) UPLUAD" target=\
10.10.10.1/24
add name=ALL_TRAFICK packet-marks="PORT BERAT (BUKAN GAME) DOWN,PORT BERAT (BU\
KAN GAME) UPLUAD,YOUTUBE.COM DOWN,YOUTUBE.COM UPLUAD,PPPOE DOWN,PPPOE UP,HOTSP\
OT DOWN,HOTSPOT UP,SOSMED DOWN,SOSMED UPLOAD" target=\
10.10.10.1/24
add name=BINDING parent=ALL_TRAFICK
add name=HOTSPOT parent=ALL_TRAFICK

You might also like