skip to Main Content

Cara Mengalihkan Traffic SosMed ke VPN di ROS7

Berikut ini adalah cara mengalihkan traffic sosmed ke VPN dengan VPN Traffic Singapore. Sebelum masuk ke tutorial, pastikan Anda sudah memiliki akun VPN Traffic Singapore. Jika belum, maka bisa order di: VPN RT RWnet Indonesia

Pada tutorial ini mimin menggunakan ROS7.

1. Pasang akun VPN TRAFIKnya, pastikan sudah muncul “R”.

2. Membuat address list IP lokal mana saja yang trafficnya akan di alihkan ke VPN, Silahkan disesuaikan sendiri. Untuk IP nya bisa dilihat pada IP > Addresses

/ip firewall address-list; 
add address=192.168.1.1/28 list=LOCAL-IP;

3. Membuat Config RAW

/ip firewall raw;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=YOUTUBE content=.ytimg.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=YOUTUBE content=googlevideo.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=TIKTOK content=.tiktok.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=TIKTOK content=.tiktokcdn.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=INSTAGRAM content=.cdninstagram.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=INSTAGRAM content=scontent-sin6-2.cdninstagram.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=INSTAGRAM content=.instagram.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=FACEBOOK content=.facebook.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=FACEBOOK content=.facebook.net dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed address-list-timeout=1d chain=prerouting comment=FACEBOOK content=.fbcdn.net dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP;
add action=add-dst-to-address-list address-list=vpn-sosmed \
address-list-timeout=1d chain=prerouting comment=WHATSAPP content=\
.whatsapp.net dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP
add action=add-dst-to-address-list address-list=vpn-sosmed \
address-list-timeout=1d chain=prerouting comment=WHATSAPP content=\
.whatsapp.com dst-address-list=!LOCAL-IP src-address-list=LOCAL-IP
add action=add-dst-to-address-list address-list=vpn-sosmed \
address-list-timeout=10m chain=prerouting comment="WHATSAPP" \
dst-address-list=!LOCAL-IP dst-port=\
3478,4244,5222,5223,5228,5288,5242,5349,34784,45395,50318,59234 protocol=\
tcp src-address-list=LOCAL-IP
add action=add-dst-to-address-list address-list=vpn-sosmed \
address-list-timeout=10m chain=prerouting comment="WHATSAPP" \
dst-address-list=!LOCAL-IP dst-port=\
3478,4244,5222,5223,5228,5288,5242,5349,34784,45395,50318,59234 protocol=\
udp src-address-list=LOCAL-IP

4. Membuat Routing Table untuk Routing Mark

/routing table add name=SOSMED fib

5. Membuat Config Mangle

/ip firewall mangle;
add action=mark-routing chain=prerouting comment="VPN SOSMED | TARUH PALING ATAS! | by MAHAVIKRI" dst-address-list=vpn-sosmed new-routing-mark="SOSMED" passthrough=no src-address-list=LOCAL-IP;
/ip firewall mangle move [find new-routing-table="SOSMED"] destination=0;

6. Membuat NAT GLobal

/ip firewall nat;
add action=masquerade chain=srcnat comment="NAT GLOBAL";

7. Menambahkan Routing, utk IP gateway di sesuaikan dengan IP yang didapat (Interface VPN TRAFIK > status > Remote Address)

/ip route;
add distance=1 gateway="10.10.10.1" routing-table="SOSMED";

Silahkan dicoba, seharusnya pada interface VPN TRAFIK sudah jalan. Maka semua traffic sosmed dialihkan ke server VPN.

Demikianlah cara mengalihkan Traffic sosmed ke VPN Traffic Indonesia di Mikrotik v7.

Jika Anda mengalami kesulitan, silahkan hubungi Customer Service Mahavikri Network
WhatsApp: +62-851-5627-1524
Telegram: @mahavikri

Mahavikri menyediakan Web Hosting, Domain, dan Cloud Compute

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top
Search