• DrayOS 5, imported, site_to_site_vpn, ipsec_vpn, route_policy, ikev1, vpn_profile, multiple_sa, ikev2, subnet_routing

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

This document introduces how to use the IPsec Multiple SA feature to access multiple remote subnets through a single VPN profile. The Multiple SA function is intended for creating an IPsec connection to non-DrayTek VPN servers that have multiple subnets, where each subnet requires a separate Security Association (SA).

When connecting to another Vigor Router with multiple subnets, multiple IPsec SA is not required, we can simply define the subnets using route policy.

This example uses two Vigor2136 routers.

Configuring DrayTek router as a VPN Server

1. Go to VPN / General Setup. Enable IPsec VPN service in the IPsec menu.

2. Go to VPN / Site-to-Site VPN.

  • Click +Add to create a VPN profile.
  • Enter the profile name and enable this profile.
General
  • Select Dial-In for the direction.
  • Select IPsec as the VPN type.
  • Check IKEv1/v2.
  • Choose a dial-in allowed schedule. Here, we choose Always Allow.
IKE Authentication
  • Enable the option Specify VPN Peer.
  • Enter the pre-shared key for this VPN client.
  • Enter the peer ID for this VPN client. (If the VPN client is using a static IP, we can enter the client's IP in Remote IP/Domain directly without using the peer ID.)
Network
  • Enter the local network of the VPN server and the remote network of the VPN client.
  • Select Multiple SAs in More Remote Subnets.
  • Add the second local network and the remote network.

Click Apply to save.

Configuring DrayTek router as a VPN Client

1. Go to VPN / General Setup. Enable IPsec VPN service in the IPsec menu.

2. Go to VPN / Site-to-Site VPN.

  • Click +Add to create a VPN profile.
  • Enter the profile name and enable this profile.
General
  • Select Dial-Out for the direction.
  • Select IPsec as the VPN type.
  • Select IKEv2 as the IPsec dial-out protocol.
  • Enter the remote server address or domain name.
  • Choose a dial-out mode. Here, we choose Always On.
IKE Authentication
  • Choose Pre-Shared Key as the 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.)
Network
  • Enter the local network of the VPN client and the remote network of the VPN server.
  • Select Multiple SAs in More Remote Subnets.
  • Add the second local network and the remote network.

Click Apply to save.

Check VPN connectivity

In VPN / VPN Connection Status, we can see 2 VPN tunnels are established as per VPN network configuration.