2023年10月20日 星期五

L2TP over IPsec in MOXA EDR-G9010

L2TP over IPsec is a VPN technology which is often used to remote access and remote managmenet.
This is a guide to setup L2TP over IPsec in MOXA EDR-G9010


1. Create & assign VLAN
(1) Network Configuration > Layer 2 Switching > VLAN
(2) Settings
(3) Press "+"
(4) VID set to 2, then "CREATE"
(5) Scroll down, edit port
(6) Set PVID to "2"

2. Configure LAN
(1) Network Configuratation > Network Interfaces
(2) LAN Page
(3) Edit LAN
(4) Modify IP Address & Netmask

3. Configure WAN
(1) Network Configuratation > Network Interfaces
(2) LAN Page
(3) Set VLAN ID to "2"
(4) Set Connection Type to "Static IP"
(5) Set IP Address, Netmask, and Gateway

4. Configure IPSec
(1) VPN > IPSec
(2) IPSec Settings
(3) Press "+" to add
(4) Click "Advanced Settings"
(5) Set Status to "Enabled", input Name, set L2TP Tunnel to "Enabled"
(6) In Key Exchange (Phase 1), set IKE Verstion to "IKE1" and set "Pre-shared Key"
(7) Global Settings
(8) Set Status to "Enabled"

5. Configure L2TP
(1) VPN > L2TP Server
(2) User Name Settings
(3) Press "+" to add user
(4) Set Useranme and Password, then "CREATE"
(5) Server Setting (WAN)
(6) Set L2TP Server Mode to "Enabled", set Local IP, Offered IP Start / End, then "APPLY"

6. Setup VPN in Windows
(1) Add VPN connection as below
(2) Server name or address: EDR-G9010 WAN IP
(3) VPN type: L2TP/IPsec with pre-shared key
(4) Set Pre-shared key, should be the same as step.4(6)
(5) Set username and password
(6) After VPN is created, confgure the detailed settings
(7) Click "Allow these protocols" and enable "CHAP"