ABDURROZAK
HOME ABOUT ME MICROSITE KONTAK PERSEMBAHAN HELP
ABDURROZAK.MY.ID // MIKROTIK TUTORIAL

VPN MIKROTIK

RB941 hAP LITE - VPN CONFIGURATION LENGKAP

Panduan mendalam implementasi VPN pada MikroTik RB941: L2TP/IPsec, PPTP, SSTP, dan WireGuard. Remote access secure ke jaringan kantor dari mana saja. Konfigurasi dual: CLI (Terminal) & WinBox (GUI).

SPESIFIKASI HARDWARE RB941-2nD

RB941 hAP lite dengan kemampuan VPN server. Support L2TP/IPsec, PPTP, SSTP, dan WireGuard (RouterOS v7+). Cocok untuk remote access 5-10 client concurrent.

CPU
AR9344 - 650MHz
RAM
32 MB DDR2
STORAGE
16 MB FLASH
ETHERNET
4x 10/100 Mbps
VPN SUPPORT
L2TP, PPTP, SSTP
WIREGUARD
RouterOS v7+
VPN CLIENT MAX
~5-10 concurrent
VPN SPEED
~10-20 Mbps
POWER
5V DC / USB
OS
RouterOS v6 L4
DIMENSI
113 x 89 x 28mm
BERAT
160 gram
CATATAN VPN: RB941 support L2TP/IPsec, PPTP, SSTP. WireGuard hanya di RouterOS v7+. Performa VPN tergantung CPU. Untuk performa VPN terbaik, pertimbangkan upgrade ke hAP ac^2 atau CCR series.
KONSEP VPN (VIRTUAL PRIVATE NETWORK) FUNDAMENTAL

VPN (Virtual Private Network) membuat tunnel terenkripsi melalui internet untuk akses aman ke jaringan private. Client remote bisa akses jaringan kantor seolah-olah terhubung langsung.

JENIS-JENIS VPN
L2TP/IPsec
Layer 2 Tunneling Protocol dengan IPsec encryption. Paling secure dan widely supported.
✓ Secure, widely supported, cross-platform
✗ Complex setup, slower performance
PPTP
Point-to-Point Tunneling Protocol. Oldest VPN protocol, easy setup but less secure.
✓ Easy setup, fast, widely supported
✗ Less secure, outdated
SSTP
Secure Socket Tunneling Protocol. Microsoft protocol, good for Windows clients.
✓ Good for Windows, firewall-friendly
✗ Windows-centric, slower
WireGuard
Modern VPN protocol. Fast, simple, secure. Requires RouterOS v7+.
✓ Fast, simple, secure, modern
✗ RouterOS v7+ only
KEUNGGULAN VPN
ENCRYPTED TUNNEL
Semua traffic dienkripsi melalui tunnel. Data aman dari eavesdropping di internet.
REMOTE ACCESS
Akses jaringan kantor dari mana saja. Seolah-olah terhubung langsung ke jaringan kantor.
SECURE
Data terenkripsi end-to-end. Aman dari eavesdropping, man-in-the-middle attack.
ACCESS ANYWHERE
Akses dari mana saja dengan internet. Remote work, WFH, mobile access.
PENTING: VPN mempengaruhi performa. Enkripsi membutuhkan CPU. RB941 dengan CPU 650MHz bisa handle 5-10 VPN client concurrent. Untuk lebih banyak client, upgrade hardware.
TOPOLOGI VPN SCHEMA
// TOPOLOGI VPN REMOTE ACCESS // [ REMOTE CLIENT ] (Remote Location) | | VPN Tunnel (Encrypted) | L2TP/IPsec, PPTP, SSTP, WireGuard v [ INTERNET ] | | Public Internet v +-------------------+ | MIKROTIK RB941 | | VPN SERVER | | | | ether1: WAN | Public IP | ether2-4: LAN | Private Network | wlan1: WIFI | +-------------------+ | v [ OFFICE NETWORK ] 192.168.10.0/24 Servers, Printers, Resources VPN CLIENT: - Dapat IP dari VPN pool (10.5.5.0/24) - Bisa akses 192.168.10.0/24 - Traffic encrypted via VPN tunnel
VPN WORKING: Remote client connect ke VPN server -> dapat IP dari VPN pool -> bisa akses jaringan kantor (192.168.10.0/24) -> semua traffic encrypted via VPN tunnel.
ANIMASI VPN CONNECTION LIVE FLOW

Visualisasi VPN tunnel: Remote client connect ke VPN server melalui internet. Traffic dienkripsi melalui tunnel.

REMOTE CLIENT 10.5.5.2 VPN TUNNEL Encrypted INTERNET MIKROTIK VPN SERVER RB941 OFFICE NETWORK 192.168.10.0/24 // VPN TUNNEL FLOW // REMOTE CLIENT -> VPN TUNNEL (ENCRYPTED) -> OFFICE NETWORK
VPN Tunnel
Encrypted Traffic
VPN TUNNEL: Remote client connect ke VPN server melalui internet. Semua traffic dienkripsi melalui VPN tunnel. Client bisa akses jaringan kantor seolah-olah terhubung langsung.
SETUP BASIC ROUTER STEP 01

Setup basic router sebelum konfigurasi VPN: identity, interface, IP address, DHCP, NAT.

VIA CLI
# 1. Set identity [admin@MikroTik] > /system identity set name="VPN-SERVER" # 2. Rename interface [admin@VPN-SERVER] > /interface set ether1 name="WAN" [admin@VPN-SERVER] > /interface set ether2 name="LAN" # 3. Set IP address [admin@VPN-SERVER] > /ip address add address=192.168.10.1/24 interface=LAN # 4. DHCP Client (WAN) [admin@VPN-SERVER] > /ip dhcp-client add interface=WAN disabled=no # 5. DHCP Server (LAN) [admin@VPN-SERVER] > /ip pool add name="dhcp-pool" ranges=192.168.10.100-192.168.10.200 [admin@VPN-SERVER] > /ip dhcp-server add name="dhcp-lan" interface=LAN address-pool=dhcp-pool [admin@VPN-SERVER] > /ip dhcp-server network add address=192.168.10.0/24 gateway=192.168.10.1 dns-server=8.8.8.8 # 6. NAT [admin@VPN-SERVER] > /ip firewall nat add chain=srcnat action=masquerade out-interface=WAN # 7. Firewall basic [admin@VPN-SERVER] > /ip firewall filter add chain=input connection-state=established,related action=accept [admin@VPN-SERVER] > /ip firewall filter add chain=input action=drop
VIA WINBOX
1
Menu: System -> Identity: VPN-SERVER
2
Menu: Interfaces: rename ether1 -> WAN, ether2 -> LAN
3
Menu: IP -> Addresses: 192.168.10.1/24 on LAN
4
Menu: IP -> DHCP Client: add WAN
5
Menu: IP -> DHCP Server: setup LAN
6
Menu: IP -> Firewall -> NAT: masquerade WAN
7
Menu: IP -> Firewall -> Filter Rules: basic rules
L2TP/IPsec VPN CONFIGURATION VPN

L2TP/IPsec adalah VPN paling secure dan widely supported. Menggunakan L2TP untuk tunnel dan IPsec untuk encryption.

VIA CLI
# 1. Enable L2TP Server [admin@VPN-SERVER] > /interface l2tp-server server set enabled=yes authentication=mschap2,mschap1,chap,pap encryption=aes-128,aes-256,aes-192 # 2. Enable IPsec [admin@VPN-SERVER] > /ip ipsec settings set enabled=yes # 3. Create IPsec Peer [admin@VPN-SERVER] > /ip ipsec peer add address=0.0.0.0/0 secret="ipsec-secret" exchange-mode=ike2 # 4. Create IPsec Proposal [admin@VPN-SERVER] > /ip ipsec proposal set [find default=yes] auth-algorithms=sha256 enc-algorithms=aes-128,aes-256 # 5. Create PPP Profile [admin@VPN-SERVER] > /ppp profile add name="vpn-profile" local-address=192.168.10.1 remote-address="vpn-pool" dns-server=8.8.8.8 [admin@VPN-SERVER] > /ip pool add name="vpn-pool" ranges=10.5.5.2-10.5.5.20 # 6. Create PPP Secret (VPN User) [admin@VPN-SERVER] > /ppp secret add name="vpnuser" password="vpnpassword" service=l2tp profile="vpn-profile" # 7. Firewall rules for L2TP/IPsec [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=udp dst-port=500,1701,4500 action=accept [admin@VLAN-GW] > /ip firewall filter add chain=input protocol=ipsec-esp action=accept # 8. Allow VPN traffic to LAN [admin@VLAN-GW] > /ip firewall filter add chain=forward src-address=10.5.5.0/24 dst-address=192.168.10.0/24 action=accept
VIA WINBOX
1
Menu: PPP -> Interface -> L2TP Server
2
Enabled: yes
3
Authentication: mschap2, mschap1, chap, pap
4
Encryption: aes-128, aes-256, aes-192
5
Menu: IP -> IPsec -> Settings: Enabled yes
6
Menu: IP -> IPsec -> Peers: Add peer
7
Address: 0.0.0.0/0, Secret: ipsec-secret
8
Menu: PPP -> Profiles: Add profile
9
Menu: PPP -> Secrets: Add secret
10
Menu: IP -> Firewall: Add rules
TIPS: L2TP/IPsec paling secure dan widely supported. Gunakan IPsec dengan AES-256 untuk encryption terbaik. Port yang dibutuhkan: UDP 500, 1701, 4500, dan IPsec ESP protocol.
PPTP VPN CONFIGURATION VPN

PPTP adalah VPN protocol tertua. Easy setup tapi less secure. Gunakan hanya jika L2TP/IPsec tidak bisa.

VIA CLI
# 1. Enable PPTP Server [admin@VPN-SERVER] > /interface pptp-server server set enabled=yes authentication=mschap2,mschap1,chap,pap # 2. Create PPP Profile [admin@VPN-SERVER] > /ppp profile add name="pptp-profile" local-address=192.168.10.1 remote-address="pptp-pool" dns-server=8.8.8.8 [admin@VPN-SERVER] > /ip pool add name="pptp-pool" ranges=10.5.6.2-10.5.6.20 # 3. Create PPP Secret [admin@VPN-SERVER] > /ppp secret add name="pptpuser" password="pptppassword" service=pptp profile="pptp-profile" # 4. Firewall rules [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=tcp dst-port=1723 action=accept [admin@VLAN-GW] > /ip firewall filter add chain=input protocol=gre action=accept # 5. Allow VPN traffic to LAN [admin@VLAN-GW] > /ip firewall filter add chain=forward src-address=10.5.6.0/24 dst-address=192.168.10.0/24 action=accept
VIA WINBOX
1
Menu: PPP -> Interface -> PPTP Server
2
Enabled: yes
3
Authentication: mschap2, mschap1, chap, pap
4
Menu: PPP -> Profiles: Add profile
5
Menu: PPP -> Secrets: Add secret
6
Menu: IP -> Firewall: Add rules (TCP 1723, GRE)
WARNING: PPTP less secure. Gunakan hanya jika L2TP/IPsec tidak bisa. PPTP sudah diketahui memiliki vulnerability. Gunakan L2TP/IPsec atau WireGuard untuk keamanan terbaik.
SSTP VPN CONFIGURATION VPN

SSTP (Secure Socket Tunneling Protocol) adalah Microsoft protocol. Good untuk Windows clients, firewall-friendly (port 443).

VIA CLI
# 1. Generate Certificate [admin@VPN-SERVER] > /certificate add name="ca-cert" common-name="VPN-CA" key-size=2048 [admin@VPN-SERVER] > /certificate sign ca-cert [admin@VPN-SERVER] > /certificate add name="server-cert" common-name="vpn-server" key-size=2048 [admin@VPN-SERVER] > /certificate sign ca=ca-cert server-cert # 2. Enable SSTP Server [admin@VPN-SERVER] > /interface sstp-server server set enabled=yes certificate=server-cert authentication=mschap2,mschap1,chap,pap # 3. Create PPP Profile [admin@VPN-SERVER] > /ppp profile add name="sstp-profile" local-address=192.168.10.1 remote-address="sstp-pool" dns-server=8.8.8.8 [admin@VPN-SERVER] > /ip pool add name="sstp-pool" ranges=10.5.7.2-10.5.7.20 # 4. Create PPP Secret [admin@VPN-SERVER] > /ppp secret add name="sstpuser" password="sstppassword" service=sstp profile="sstp-profile" # 5. Firewall rules [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=tcp dst-port=443 action=accept # 6. Allow VPN traffic to LAN [admin@VLAN-GW] > /ip firewall filter add chain=forward src-address=10.5.7.0/24 dst-address=192.168.10.0/24 action=accept
VIA WINBOX
1
Menu: Certificates: Generate CA and server certificates
2
Menu: PPP -> Interface -> SSTP Server
3
Enabled: yes, Certificate: server-cert
4
Menu: PPP -> Profiles: Add profile
5
Menu: PPP -> Secrets: Add secret
6
Menu: IP -> Firewall: Allow TCP 443
TIPS: SSTP menggunakan port 443 (HTTPS) sehingga firewall-friendly. Good untuk Windows clients. Perlu certificate untuk SSL encryption.
WIREGUARD VPN CONFIGURATION VPN

WireGuard adalah modern VPN protocol. Fast, simple, secure. Requires RouterOS v7+. Paling recommended untuk performa.

VIA CLI
# 1. Generate Keys [admin@VPN-SERVER] > /interface wireguard keys add private-key: xxxxx public-key: yyyyy # 2. Create WireGuard Interface [admin@VPN-SERVER] > /interface wireguard add name="wg-server" listen-port=51820 private-key="xxxxx" # 3. Add IP Address [admin@VPN-SERVER] > /ip address add address=10.5.8.1/24 interface=wg-server # 4. Add Peer [admin@VPN-SERVER] > /interface wireguard peers add interface=wg-server public-key="client-public-key" allowed-address=10.5.8.2/32 # 5. Firewall rules [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=udp dst-port=51820 action=accept # 6. Allow VPN traffic to LAN [admin@VLAN-GW] > /ip firewall filter add chain=forward src-address=10.5.8.0/24 dst-address=192.168.10.0/24 action=accept
VIA WINBOX
1
Menu: Interfaces -> WireGuard
2
+ Add: Generate keys
3
Name: wg-server, Listen Port: 51820
4
Menu: IP -> Addresses: Add 10.5.8.1/24
5
Menu: WireGuard -> Peers: Add peer
6
Menu: IP -> Firewall: Allow UDP 51820
TIPS: WireGuard paling modern dan fastest. Requires RouterOS v7+. Simple setup, secure, fast performance. Recommended untuk new deployments.
FIREWALL CONFIGURATION SECURITY

Firewall rules untuk VPN server. Allow VPN traffic, block unauthorized access.

VIA CLI
# 1. Allow established/related [admin@VPN-SERVER] > /ip firewall filter add chain=input connection-state=established,related action=accept # 2. Allow VPN protocols [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=udp dst-port=500,1701,4500,51820 action=accept [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=tcp dst-port=1723,443 action=accept [admin@VPN-SERVER] > /ip firewall filter add chain=input protocol=ipsec-esp action=accept # 3. Allow VPN traffic to LAN [admin@VPN-SERVER] > /ip firewall filter add chain=forward src-address=10.5.5.0/24,10.5.6.0/24,10.5.7.0/24,10.5.8.0/24 dst-address=192.168.10.0/24 action=accept # 4. Allow established forward [admin@VPN-SERVER] > /ip firewall filter add chain=forward connection-state=established,related action=accept # 5. Drop all other [admin@VPN-SERVER] > /ip firewall filter add chain=input action=drop [admin@VPN-SERVER] > /ip firewall filter add chain=forward action=drop
VIA WINBOX
1
Menu: IP -> Firewall -> Filter Rules
2
+ Add: Allow established/related
3
+ Add: Allow VPN protocols (UDP 500,1701,4500,51820, TCP 1723,443)
4
+ Add: Allow VPN traffic to LAN
5
+ Add: Allow established forward
6
+ Add: Drop all other
TIPS: Firewall rules harus berurutan. Allow established/related di paling atas. Allow VPN protocols. Allow VPN traffic to LAN. Drop all other di paling bawah.
CLIENT CONFIGURATION - WINDOWS CLIENT

Konfigurasi VPN client di Windows 10/11. Support L2TP/IPsec, PPTP, SSTP built-in.

Windows 10/11
Built-in VPN client. Support L2TP/IPsec, PPTP, SSTP.
L2TP/IPsec CONFIGURATION
VIA SETTINGS
1
Settings -> Network & Internet -> VPN
2
Add a VPN connection
3
VPN provider: Windows (built-in)
4
Connection name: Office VPN
5
Server name or address: vpn-server-public-ip
6
VPN type: Layer 2 Tunneling Protocol with IPsec (L2TP/IPsec)
7
Sign-in info: Username and password
8
Username: vpnuser, Password: vpnpassword
9
IPsec pre-shared key: ipsec-secret
10
Save -> Connect
VIA CONTROL PANEL
1
Control Panel -> Network and Sharing Center
2
Set up a new connection or network
3
Connect to a workplace
4
Use my Internet connection (VPN)
5
Internet address: vpn-server-public-ip
6
Destination name: Office VPN
7
VPN type: L2TP/IPsec
8
Pre-shared key: ipsec-secret
9
Username: vpnuser, Password: vpnpassword
10
Create -> Connect
TIPS: Windows built-in VPN client support L2TP/IPsec, PPTP, SSTP. Untuk L2TP/IPsec, perlu IPsec pre-shared key. Untuk SSTP, perlu certificate.
CLIENT CONFIGURATION - ANDROID CLIENT

Konfigurasi VPN client di Android. Built-in support L2TP/IPsec, PPTP. Untuk WireGuard, perlu app.

Android
Built-in VPN client. Support L2TP/IPsec, PPTP. WireGuard app available.
L2TP/IPsec CONFIGURATION
VIA SETTINGS
1
Settings -> Network & Internet -> VPN
2
Add VPN profile
3
Name: Office VPN
4
Type: L2TP/IPsec PSK
5
Server address: vpn-server-public-ip
6
L2TP secret: (leave blank)
7
IPsec pre-shared key: ipsec-secret
8
Username: vpnuser, Password: vpnpassword
9
Save -> Connect
WIREGUARD APP
1
Install WireGuard app dari Play Store
2
+ Add tunnel -> Add empty tunnel
3
Name: Office VPN
4
Generate keypair
5
Addresses: 10.5.8.2/32
6
DNS servers: 8.8.8.8
7
Add peer: Public key from server
8
Endpoint: vpn-server-public-ip:51820
9
Allowed IPs: 192.168.10.0/24
10
Save -> Activate
TIPS: Android built-in VPN client support L2TP/IPsec dan PPTP. Untuk WireGuard, install WireGuard app dari Play Store. WireGuard lebih fast dan secure.
CLIENT CONFIGURATION - iOS CLIENT

Konfigurasi VPN client di iOS (iPhone/iPad). Built-in support L2TP/IPsec, IKEv2, IKEv2. Untuk WireGuard, perlu app.

iOS (iPhone/iPad)
Built-in VPN client. Support L2TP/IPsec, IKEv2. WireGuard app available.
L2TP/IPsec CONFIGURATION
VIA SETTINGS
1
Settings -> General -> VPN & Device Management
2
Add VPN Configuration
3
Type: L2TP
4
Description: Office VPN
5
Server: vpn-server-public-ip
6
Account: vpnuser
7
Password: vpnpassword
8
Secret: ipsec-secret
9
Done -> Connect
WIREGUARD APP
1
Install WireGuard app dari App Store
2
+ Add tunnel -> Add empty tunnel
3
Name: Office VPN
4
Generate keypair
5
Addresses: 10.5.8.2/32
6
DNS servers: 8.8.8.8
7
Add peer: Public key from server
8
Endpoint: vpn-server-public-ip:51820
9
Allowed IPs: 192.168.10.0/24
10
Save -> Activate
TIPS: iOS built-in VPN client support L2TP/IPsec dan IKEv2. Untuk WireGuard, install WireGuard app dari App Store. WireGuard lebih fast dan secure.
MONITORING VPN MONITORING

Monitor VPN connections dan performance.

VIA CLI
# 1. Check active VPN connections [admin@VPN-SERVER] > /ppp active print # 2. Check L2TP connections [admin@VPN-SERVER] > /interface l2tp-server print # 3. Check PPTP connections [admin@VPN-SERVER] > /interface pptp-server print # 4. Check SSTP connections [admin@VPN-SERVER] > /interface sstp-server print # 5. Check WireGuard peers [admin@VPN-SERVER] > /interface wireguard peers print # 6. Check VPN traffic [admin@VPN-SERVER] > /interface print where name~"ppp|wg" # 7. Check VPN interface stats [admin@VPN-SERVER] > /interface print stats where name~"ppp|wg"
VIA WINBOX
1
Menu: PPP -> Active: Active VPN connections
2
Menu: PPP -> Interface: VPN interfaces
3
Menu: Interfaces: VPN interface stats
4
Menu: Tools -> Traffic Monitor: Real-time traffic
5
Menu: Tools -> Graphing: Historical graphs
6
Menu: PPP -> Secrets: VPN users
TIPS: Monitor VPN connections secara berkala. Check active connections, traffic, dan performance. Monitor CPU usage karena VPN encryption membutuhkan CPU.
TROUBLESHOOTING VPN SUPPORT

Masalah umum VPN dan solusinya.

VPN TIDAK BISA CONNECT
KEMUNGKINAN PENYEBAB:
1. VPN server tidak enabled
2. Firewall block VPN ports
3. Username/password salah
4. IPsec pre-shared key salah (L2TP/IPsec)
5. Certificate salah (SSTP)
6. Public IP salah atau tidak accessible
SOLUSI: Cek VPN server status. Cek firewall rules. Cek credentials. Cek public IP accessibility.
VPN CONNECT TAPI TIDAK BISA AKSES LAN
KEMUNGKINAN PENYEBAB:
1. Firewall block VPN traffic ke LAN
2. Routing salah
3. VPN pool IP conflict dengan LAN
4. Firewall forward rule salah
SOLUSI: Cek firewall forward rules. Cek routing table. Cek VPN pool IP range. Pastikan tidak conflict dengan LAN.
VPN LAMBAT
KEMUNGKINAN PENYEBAB:
1. CPU overload (VPN encryption)
2. Internet connection lambat
3. Terlalu banyak VPN client
4. VPN protocol lambat (PPTP)
5. Encryption overhead
SOLUSI: Cek CPU usage. Upgrade hardware jika perlu. Gunakan WireGuard untuk performa terbaik. Kurangi jumlah VPN client.
L2TP/IPsec TIDAK CONNECT
KEMUNGKINAN PENYEBAB:
1. IPsec tidak enabled
2. IPsec peer/secret salah
3. Firewall block IPsec ports (UDP 500, 4500, ESP)
4. NAT traversal issue
5. Client tidak support IPsec
SOLUSI: Enable IPsec. Cek peer dan secret. Cek firewall rules. Pastikan client support IPsec.
SSTP TIDAK CONNECT
KEMUNGKINAN PENYEBAB:
1. Certificate tidak valid atau expired
2. Certificate common name tidak match
3. Client tidak trust certificate
4. Firewall block port 443
SOLUSI: Generate certificate baru. Pastikan common name match. Import certificate ke client. Cek firewall port 443.
WIREGUARD TIDAK CONNECT
KEMUNGKINAN PENYEBAB:
1. WireGuard tidak enabled (RouterOS v7+)
2. Public key salah
3. Allowed addresses salah
4. Firewall block UDP port
5. Endpoint address/port salah
SOLUSI: Pastikan RouterOS v7+. Cek public key. Cek allowed addresses. Cek firewall. Cek endpoint.
DIAGNOSTIC COMMANDS
# Check VPN connections > /ppp active print > /interface l2tp-server print > /interface pptp-server print > /interface sstp-server print > /interface wireguard peers print # Check VPN interface stats > /interface print stats where name~"ppp|wg" # Check firewall > /ip firewall filter print # Check routing > /ip route print # Check IPsec > /ip ipsec peer print > /ip ipsec proposal print # Check certificates > /certificate print
BEST PRACTICE VPN TIPS
USE STRONG ENCRYPTION
Gunakan L2TP/IPsec dengan AES-256 atau WireGuard. Jangan gunakan PPTP (less secure).
STRONG PASSWORDS
Gunakan password kuat untuk VPN users. Minimal 12 karakter dengan kombinasi huruf, angka, simbol.
LIMIT VPN CLIENTS
Limit jumlah VPN client concurrent. RB941 bisa handle 5-10 client. Untuk lebih banyak, upgrade hardware.
FIREWALL RULES
Configure firewall rules dengan benar. Allow VPN protocols, block unauthorized access.
MONITOR PERFORMANCE
Monitor VPN connections dan performance secara berkala. Monitor CPU usage karena encryption.
USE WIREGUARD
WireGuard paling modern, fast, dan secure. Requires RouterOS v7+. Recommended untuk new deployments.
CERTIFICATE MANAGEMENT
Untuk SSTP, manage certificates dengan baik. Renew sebelum expired. Import ke client.
DOCUMENTATION
Document VPN configuration. Document VPN users, credentials, dan configuration untuk reference.
VPN CHEATSHEET QUICK REF
VPN COMMANDS
# L2TP/IPsec > /interface l2tp-server server set enabled=yes authentication=mschap2,mschap1,chap,pap encryption=aes-128,aes-256 > /ip ipsec settings set enabled=yes > /ip ipsec peer add address=0.0.0.0/0 secret="ipsec-secret" exchange-mode=ike2 > /ppp secret add name="vpnuser" password="vpnpassword" service=l2tp # PPTP > /interface pptp-server server set enabled=yes > /ppp secret add name="pptpuser" password="pptppassword" service=pptp # SSTP > /certificate add name="server-cert" common-name="vpn-server" key-size=2048 > /interface sstp-server server set enabled=yes certificate=server-cert > /ppp secret add name="sstpuser" password="sstppassword" service=sstp # WireGuard (RouterOS v7+) > /interface wireguard add name="wg-server" listen-port=51820 > /interface wireguard peers add interface=wg-server public-key="client-key" allowed-address=10.5.8.2/32 # MONITORING > /ppp active print > /interface l2tp-server print > /interface pptp-server print > /interface sstp-server print > /interface wireguard peers print # FIREWALL > /ip firewall filter add chain=input protocol=udp dst-port=500,1701,4500,51820 action=accept > /ip firewall filter add chain=input protocol=tcp dst-port=1723,443 action=accept > /ip firewall filter add chain=input protocol=ipsec-esp action=accept
ABDURROZAK.MY.ID // JARINGAN SOSIAL

s.id

Link Tree Utama

GitHub

Repositori Kode

Instagram

Galeri Visual

Threads

Diskusi Ringkas

Facebook

Jaringan Sosial

TikTok

Konten Video Pendek

YT Teacher

Edukasi & Tutorial

YT Course

Materi Pembelajaran

YT Studio

Produksi Konten

Hashnode

Artikel Teknis

WhatsApp

Komunikasi Langsung

Email

abdurrozak.skom@gmail.com