Routing Game Ke VPN Labkom - Co.id

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

/interface l2tp-client

add connect-to=id.labkom.my.id disabled=no name="TUNNEL" password=rb450 user=rb450


/ip route
add check-gateway=ping distance=2 gateway="TUNNEL" routing-mark=VPN \
target-scope=10
/ip firewall mangle
add action=mark-connection chain=prerouting comment="PORT UMUM" dst-port=\
21,22,23,53,67,66,80,81,88,110,443,843,182,1935,3478 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
21,22,23,53,67,66,80,81,88,110,443,843,182,1935,3478 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=udp
add action=mark-connection chain=prerouting dst-port=\
5050,5060,6666,8777,8000-8081,8291,8728,8729,35915,39397 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=tcp
add action=mark-connection chain=prerouting dst-port=\
5050,5060,6666,8777,8000-8081,8291,8728,8729,35915,39397 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=udp
add action=mark-connection chain=prerouting comment=wa dst-port=\
4244,5222,5223,5228,5242 in-interface=!ether1-INTERNET \
new-connection-mark="PORT UMUM" passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting dst-port=3478,45395 in-interface=\
!ether1-INTERNET new-connection-mark="PORT UMUM" passthrough=yes \
protocol=udp
add action=mark-connection chain=prerouting comment=ZOOM dst-port=\
3478,3479,5090,5091,8801-8810 in-interface=!ether1-INTERNET \
new-connection-mark="PORT UMUM" passthrough=yes protocol=udp
add action=mark-connection chain=prerouting dst-port=\
3478,3479,5090,5091,8801-8810 in-interface=!ether1-INTERNET \
new-connection-mark="PORT UMUM" passthrough=yes protocol=tcp
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 connection-mark="!PORT UMUM" \
in-interface=!ether1-INTERNET new-connection-mark="PORT RINGAN (GAME)" \
passthrough=yes protocol=tcp
add action=mark-packet chain=forward connection-mark="PORT RINGAN (GAME)" \
in-interface=ether1-INTERNET new-packet-mark="PORT RINGAN (GAME) DOWN" \
passthrough=yes
add action=mark-packet chain=forward connection-mark="PORT RINGAN (GAME)" \
new-packet-mark="PORT RINGAN (GAME) UPLUAD" out-interface=ether1-INTERNET \
passthrough=yes
add action=add-dst-to-address-list address-list="IP BUKAN UMUM BERAT" \
address-list-timeout=1m chain=prerouting comment=\
"PORT BERAT BUKAN (GAME)" connection-mark="!PORT UMUM" connection-rate=\
1M-100M in-interface=!ether1-INTERNET
add action=add-dst-to-address-list address-list="private-lokal" \
address-list-timeout=1m chain=prerouting 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=mark-packet chain=forward 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 connection-mark=\
"PORT BERAT (BUKAN GAME)" new-packet-mark=\
"PORT BERAT (BUKAN GAME) UPLUAD" out-interface=ether1-INTERNET \
passthrough=yes
add action=add-dst-to-address-list address-list="ip youtube" \
address-list-timeout=3m chain=prerouting comment=YOUTUBE.COM content=\
googlevideo.com 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=mark-packet chain=forward connection-mark=YOUTUBE.COM \
in-interface=ether1-INTERNET new-packet-mark="YOUTUBE.COM DOWN" \
passthrough=yes
add action=mark-packet chain=forward connection-mark=YOUTUBE.COM \
new-packet-mark="YOUTUBE.COM UPLUAD" out-interface=ether1-INTERNET \
passthrough=yes
add action=mark-packet chain=forward comment=CLIENT connection-mark=\
"PORT UMUM" dst-address-list=IP_LOCAL in-interface=ether1-INTERNET \
new-packet-mark="LOKAL DOWN" passthrough=yes
add action=mark-packet chain=forward connection-mark="PORT UMUM" \
new-packet-mark="LOKAL UP" out-interface=ether1-INTERNET passthrough=yes \
src-address-list=IP_LOCAL
add action=mark-packet chain=forward comment=ROUTING dst-address-list=\
IP_LOCAL in-interface=TUNNEL new-packet-mark="ROUTING DOWN" passthrough=\
yes
add action=mark-packet chain=forward new-packet-mark="ROUTING UP" \
out-interface=TUNNEL passthrough=yes src-address-list=IP_LOCAL
add action=add-dst-to-address-list address-list="PORT RANDOM" \
address-list-timeout=10m chain=prerouting connection-mark="!PORT UMUM" \
dst-address-list=!private-lokal protocol=tcp
add action=add-dst-to-address-list address-list="PORT RANDOM" \
address-list-timeout=10m chain=prerouting connection-mark="!PORT UMUM" \
dst-address-list=!private-lokal protocol=udp
add action=mark-routing chain=prerouting connection-mark="PORT RINGAN (GAME)" \
dst-address-list="PORT RANDOM" new-routing-mark=VPN passthrough=no \
protocol=udp src-address-list=IP_LOCAL
add action=mark-routing chain=prerouting connection-mark="PORT RINGAN (GAME)" \
dst-address-list="PORT RANDOM" new-routing-mark=VPN passthrough=no \
protocol=tcp src-address-list=IP_LOCAL
/queue simple
add max-limit=128k/128k name="1. TRAFIK GAME" packet-marks="PORT RINGAN (GAME)\
\_DOWN,PORT RINGAN (GAME) UPLUAD,ROUTING DOWN,ROUTING UP" priority=1/1 \
queue=default/default target=""
add max-limit=20M/30M name="ALL TRAFICK" packet-marks="PORT BERAT (BUKAN GAME) DOW\
N,PORT BERAT (BUKAN GAME) UPLUAD,YOUTUBE.COM DOWN,YOUTUBE.COM UPLUAD,LOKAL\
\_UP,LOKAL DOWN" priority=3/3 queue=\
pcq-upload-default/pcq-download-default target=""
add max-limit=20M/30M name=LOKAL parent="ALL TRAFICK" target=""
/queue tree
add name="DOWNLOAD ALL DARI ISP" parent=global queue=pcq-download-default
add name="UPLUAD ALL DARI ISP" parent=global queue=pcq-upload-default
add name="3.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="3.TOTAL DOWNLOAD ALL CLIEN" queue=\
pcq-download-default
add name="YOUTUBE.COM DOWN" packet-mark="YOUTUBE.COM DOWN" parent=\
"3.TOTAL DOWNLOAD ALL CLIEN" queue=pcq-download-default
add name="3.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="3.TOTAL UPLOAD ALL CLIEN" queue=\
pcq-upload-default
add name="YOUTUBE.COM UPLUAD" packet-mark="YOUTUBE.COM UPLUAD" parent=\
"3.TOTAL UPLOAD ALL CLIEN" queue=pcq-upload-default
add name="2. PORT RINGAN (GAME) UPLUAD" packet-mark=\
"PORT RINGAN (GAME) UPLUAD" parent="UPLUAD ALL DARI ISP" priority=1 \
queue=pcq-upload-default
add name="LAN down" packet-mark="LOKAL DOWN" parent=\
"3.TOTAL DOWNLOAD ALL CLIEN" queue=pcq-download-default
add name="LAN up" packet-mark="LOKAL UP" parent="3.TOTAL UPLOAD ALL CLIEN" \
queue=pcq-upload-default
add name="1. ROUTING GAME DOWN" packet-mark="ROUTING DOWN" parent=\
"DOWNLOAD ALL DARI ISP" priority=1 queue=pcq-download-default
add name="1. ROUTING GAME UP" packet-mark="ROUTING UP" parent=\
"UPLUAD ALL DARI ISP" priority=1 queue=pcq-upload-default
/ip firewall address-list
add address=192.168.5.0/24 list=IP_LOCAL
add address=192.168.0.0/16 list=private-lokal
add address=10.0.0.0/8 list=private-lokal
/ip firewall nat
add action=masquerade chain=srcnat comment=VPN out-interface=\
"TUNNEL"
/ip hotspot user profile set parent=LOKAL [find]
/ip hotspot user profile set insert=LOKAL [find]
/ppp profile set parent=LOKAL [find]
/ppp profile set insert-queue-before=LOKAL [find]

You might also like