🌐 📘 Bagian 2 (Lanjutan & Penerapan) • Modul 19 100% Standar Industri & Vokasi

VPN Server: WireGuard, L2TP/IPsec & SSTP Remote

Membangun WireGuard VPN modern di RouterOS v7, L2TP/IPsec site-to-site, SSTP port 443, dan remote Winbox tanpa IP publik via MikroTik Cloud DDNS.

1. WireGuard VPN di RouterOS v7

WireGuard adalah protokol VPN generasi baru yang jauh lebih cepat, ringan, dan aman dibanding OpenVPN atau IPsec klasik, dengan implementasi enkripsi modern (Curve25519, ChaCha20).

2. Skrip Setup WireGuard Server & Peer Klien

# 1. Buat Interface WireGuard Server
/interface wireguard add name=wg-server listen-port=13231 comment="VPN Server WireGuard"
/ip address add address=10.200.0.1/24 interface=wg-server

# 2. Daftarkan Peer Klien (Laptop / HP Admin)
/interface wireguard peers add interface=wg-server public-key="KUNCI_PUBLIK_KLIEN_ANDA=" allowed-address=10.200.0.2/32

# 3. Buka Port Firewall UDP 13231 pada Input Chain
/ip firewall filter add chain=input protocol=udp dst-port=13231 action=accept comment="Allow WireGuard VPN"

3. Remote Router Tanpa IP Publik (MikroTik Cloud DDNS)

Jika router berada di belakang IP Privat / NAT ISP (CGNAT), aktifkan fitur MikroTik Cloud DDNS bawaan:

/ip cloud set ddns-enabled=yes update-time=yes
# Router akan mendapatkan domain unik seperti: xxxxxxxxxxxx.sn.mynetname.net