MIKROTIK / KEAMANAN
VPN Server Remote
Jadikan MikroTik server VPN untuk remote jaringan dari mana saja.
PANDUAN Cara memakai VPN Server Remote
Masuk ke jaringan kantor/pelanggan dari mana saja seolah-olah berada di lokasi: buka Winbox router, NVR CCTV, atau server lokal.
SEBELUM MULAI
- Router punya IP publik (bukan 100.64.x.x).
- Pilih L2TP/IPsec untuk HP dan Windows (tanpa aplikasi tambahan). Pilih SSTP kalau jaringan Anda memblokir port VPN biasa.
CARA MENGISI
- Jaringan VPN harus berbeda dengan LAN, contoh 10.77.0.0.
- Buat satu pengguna untuk setiap orang, dengan password kuat.
SETELAH SCRIPT DIJALANKAN
- Di HP/Windows, tambah VPN baru: jenis L2TP/IPsec dengan pre-shared key = IPsec secret, server = IP publik router.
- PPP → Active Connections menampilkan pengguna yang tersambung.
Baru pertama kali? Cara menempel script ke MikroTik & arti istilah
HASIL / SCRIPTHASIL / HITUNG
VPN Server Remote
# ===================================================
# VPN SERVER REMOTE
# Dibuat 2026-11-25 oleh SatuKonfig (satukonfig.com)
# Tempel di Winbox > New Terminal (RouterOS v6 & v7)
# ===================================================
# --- pool & profil ---
/ip pool add name=pool-vpn ranges=10.77.0.2-10.77.0.50 comment="SatuKonfig vpn-server:"
/ppp profile add name=VPN-REMOTE local-address=10.77.0.1 remote-address=pool-vpn dns-server=10.77.0.1 use-encryption=required comment="SatuKonfig vpn-server: VPN"
# --- pengguna ---
/ppp secret add name="remote1" password="PasswordKuat1" service=l2tp profile=VPN-REMOTE comment="SatuKonfig vpn-server: VPN"
# --- server L2TP/IPsec ---
/interface l2tp-server server set enabled=yes default-profile=VPN-REMOTE use-ipsec=required ipsec-secret="kunci-rahasia-ipsec" authentication=mschap2
# --- buka port di firewall ---
/ip firewall filter
add chain=input protocol=udp dst-port=500,4500,1701 action=accept comment="SatuKonfig vpn-server: VPN L2TP"
add chain=input protocol=ipsec-esp action=accept comment="SatuKonfig vpn-server: VPN IPsec"
add chain=input src-address=10.77.0.0/24 action=accept comment="SatuKonfig vpn-server: VPN akses router"
# --- pindahkan aturan "SatuKonfig VPN" ke paling atas supaya tidak terhalang aturan drop ---
:do { /ip firewall filter move [/ip firewall filter find where comment~"^SatuKonfig vpn-server:"] destination=[:pick [/ip firewall filter find where dynamic=no] 0] } on-error={}
Contoh isian di form hanya contoh; sesuaikan dengan jaringan Anda. Backup dulu sebelum menempel: /system backup save name=sebelum-satukonfig. Cara lengkap ada di Panduan di atas.