IPsec/IKEv2-based VPN software for Linux
# sudo ip addr add 10.0.0.11/24 brd + dev eth0
# sudo brctl addbr br0 # sudo brctl addif eth1 # sudo ip -6 addr add 2001:db8::1/64 dev br0 |
# sudo ip addr add 10.0.0.10/24 brd + dev eth0 |
# sudo ip -6 addr add 2001:db8::100/64 dev eth0 |
auto eth0
iface eth0 inet static address 10.0.0.1 network 10.0.0.0 netmask 255.255.255.0 broadcast 10.0.0.255 auto eth1 iface eth1 inet manual up ip link set dev eth1 promisc on auto br0 iface br0 inet6 static address 2001:db8::1 netmask 64 bridge_ports eth1 bridge_stp off bridge_maxwait 10 |
- VPN Configuration[Tab] > Edit VPN Realm(Save, Add, etc.)[Left-Tree]: Click this tree node and show Edit VPN Realm(Save, Add, Remove, or Load) pane.
- Click Add VPN Realm button.
- Add a VPN Realm[Dialog]: Enter the following, then click OK button.
Realm ID: 10
Realm Name: "Example VPN"
Description: "Config for Example VPN."
Mode: Bridge
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(Bridge)[Left-Tree]
> VPN Interface[Left-Tree]:
Click this tree node and show VPN Tunnel/TAP Interface pane.
- Enter or select the following.
Internal Address Type: Unnumbered(for bridging)
Linked Bridge Name: br0
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(Bridge)[Left-Tree]
> Network Interface[Left-Tree]:
Click this tree node and show Network Interface pane.
- Uncheck Use default route and enter the followings.
Primary interface:
- Select eth0
as a source interface and IPv4.
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(Bridge)[Left-Tree]
> Service[Left-Tree]:
Click this tree node and show Service pane.
- Network Deployment: Select Hub(Concentrator) Node.
- Remote Configuration(IKEv2): Select Disabled.
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(Bridge)[Left-Tree]
> My Key Store[Left-Tree]:
Click this tree node and show My Key Store pane.
- Enter the following.
Authentication Method: RSA Signature(RSA-Sig)
My ID Type: auto
Imported Key Format: PKCS#12 - File
PKCS#12 file(*.p12): gateway1.example.com.p12
RSA Private Key's Password: himitsu
- VPN Configuration[Tab]
> Edit VPN Realm(Save, Add, etc.)[Left-Tree]:
Click this tree node and show Edit VPN Realm(Save, Add, Remove, or Load) pane.
- Click Save Configuration button.
- VPN Configuration[Tab]
> Edit VPN Realm(Save, Add, etc.)[Left-Tree]:
Click this tree node and show Edit VPN Realm(Save, Add, Remove, or Load) pane.
- Click Add VPN Realm button.
- Add a VPN Realm[Dialog]: Enter the following, then click OK button.
Realm ID: 10
Realm Name: "Example VPN"
Description: "Config for Example VPN."
Mode: End Node
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(End Node)[Left-Tree]
> VPN Interface[Left-Tree]:
Click this tree node and show VPN Tunnel/TAP Interface pane.
- Enter the following.
Internal Address Type: Static Address
Internal Address > IPv6: 2001:db8::10
Prefix: 64
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(End Node)[Left-Tree]
> Network Interface[Left-Tree]:
Click this tree node and show Network Interface pane.
- Check Use default route.
or
- Uncheck Use default route and enter the followings.
Primary interface:
- Select eth0
as a source interface and IPv4.
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(End Node)[Left-Tree]
> Service[Left-Tree]:
Click this tree node and show Service pane.
- Network Deployment: Select Spoke Node/Other.
- Remote Configuration(IKEv2): Select Disabled.
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(End Node)[Left-Tree]
> My Key Store[Left-Tree]:
Click this tree node and show My Key Store pane.
- Enter the following.
Authentication Method: RSA Signature(RSA-Sig)
My ID Type: auto
Imported Key Format: PKCS#12 - File
PKCS#12 file(*.p12): remotehost1.example.com.p12
RSA Private Key's Password: naisho
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(End Node)[Left-Tree]
> Peers[Left-Tree]:
Click this tree node and show Peers pane.
- Click Add Peer button.
- Add a New Peer[Dialog]: Enter the following, then click OK button.
Peer ID Type: Host Name(FQDN)
Peer ID: gateway1.example.com
- VPN Configuration[Tab]
> VPN Realms[Left-Tree]
> 10:Example VPN(End Node)[Left-Tree]
> Peers[Left-Tree] >
gateway1.example.com(FQDN)[Left-Tree]:
Click this tree node and show Peer: gateway1.example.com(FQDN) pane.
- Enter the following.
Peer's IP Address: IPv4 and 10.0.0.1
This peer's Network Deployment: Hub(Concentrator) Node
- VPN Configuration[Tab]
> Edit VPN Realm(Save, Add, etc.)[Left-Tree]:
Click this tree node and show Edit
VPN Realm(Save, Add, Remove, or Load) pane.
- Click Save Configuration button.