• DrayOS 4, imported, ipsec_vpn, lan_to_lan, connection_management, remote_subnet, ikev1, vpn_profile, multiple_sa, ikev2

Create multiple Phase 2 SA for IPsec tunnel to connect multiple subnets in one VPN profile (DrayOS4)

This document introduces how to use the IPsec Multiple SA feature to access more than one remote subnets over one VPN profile. Multiple SA is for connecting to a non-DrayTek VPN server with multiple subnets. When connecting to another Vigor Router with multiple subnets, multiple IPsec SA is not required, we should use the "More" Remote Subnet feature to add additional routes over the same tunnel.

Configuring DrayTek router as a VPN Server

1. Go to VPN and Remote Access >> Remote Access Control. Enable IPsec VPN service.

2. Go to VPN and Remote Access >> LAN to LAN. Click on an index number to create a new IPsec profile.

3. Set configurations of IPsec profile.

  • Enter a profile name, and check Enable this profile.
  • Choose Dial-In for Call Direction.
  • Choose IPsec Tunnel(IKEv1/IKEv2) for Allowed VPN Type.
  • Check Specify Remote VPN Gateway and define a Peer ID for the VPN client. (If the VPN client is using a static IP, we can enter the client's IP in Remote IP directly without using the peer ID.)
  • Check Pre-Shared Key and enter the pre-shared key for this VPN client.
  • Enter the local network of the VPN server and the remote network of the VPN client.
  • Expand More Remote Subnet menu, then check Create a unique SA for each subnet(IPsec)
  • Add the second local network and the remote network.
  • Click OK to save the profile.

Configuring DrayTek router as a VPN Client

1. Go to VPN and Remote Access >> Remote Access Control. Enable IPsec VPN service.

2. Go to VPN and Remote Access >> LAN to LAN. Click on an index number to create a new IPsec profile.

3. Set configurations of IPsec profile.

  • Enter a profile name, and check Enable this profile.
  • Choose Dial-Out for Call Direction.
  • Enable Always on.
  • Choose IPsec Tunnel and select IKEv2 for VPN Server Type.
  • Enter the remote server address or domain name
  • Select Pre-Shared Key for Authentication and enter the pre-shared key configured on the VPN server.
  • Enter the Local ID that the VPN server requires. (We can ignore it if the VPN server specifies the VPN peer with the IP or domain name.)
  • Enter the local network of the VPN client and the remote network of the VPN server.
  • Expand More Remote Subnet menu, then check Create a unique SA for each subnet(IPsec)
  • Add the second local network and the remote network.
  • Click OK to save the profile.

Check VPN connectivity

In VPN and Remote Access >> Connection Management, we can see 2 VPN tunnels are established as per VPN network configuration.