Client-to-site VPN tunnel with the router behind another router
Consider the following common client-to-site VPN scenario in which the router (the VPN router in the description below) is located behind another router that performs network address translation (NAT) :
- VPN client (the local computer, tablet, or smartphone):
- For authentication with the VPN router, the VPN client uses either the certificate authority (CA) that is associated with the server certificate on the VPN router or a pre-shared key that is identical to the one on the VPN router.
- After initial authentication with the VPN router, the VPN client identifies itself through the user name and password that is configured on the VPN router.
- As the local identifier, the VPN client uses WAN IP address 224.0.113.22.
-
Remote NAT router to which the VPN client connects:
- As a remote identifier for the VPN configuration, the remote NAT router has WAN IP address 203.0.113.55.
Note: You can use the public IP address 203.0.113.55 in a server certificate as both the common name (CN) and the Subject Alternative Name (SAN).
- The NAT router issues IP addresses in the 10.10.10.0/24 subnet to devices that are located in the LAN behind it.
- The NAT router includes a port forwarding rule that uses protocol UDP and port 500 to forward IKE service traffic to the VPN router with IP address 10.10.10.11.
- The NAT router includes another port forwarding rule that uses protocol UDP and port 4500 to forward NAT-Traversal (NAT-T) service traffic to the VPN router with IP address 10.10.10.11.
- As a remote identifier for the VPN configuration, the remote NAT router has WAN IP address 203.0.113.55.
-
VPN router behind the NAT router:
- The IP address of the VPN router is 10.10.10.11, which is in the subnet that the NAT router has reserved for devices that are located behind it.
- The VPN router, in turn, issues IP addresses in the 192.168.110.0/24 subnet to devices that are located in the LAN behind it, such as the switch at LAN IP address 192.168.110.50 and the server at LAN IP address 192.168.110.60.
- Depending on the configured authentication method, for authentication with the VPN client, the VPN router uses either a server certificate that is based on the same certificate authority that is installed on the VPN client or a pre-shared key that is identical to the one on the VPN client.
- As the pool range for the VPN client LAN, the VPN router assigns VPN clients a VPN LAN IP address in the range from 192.168.101.11 to 192.168.101.70. This pool range is a unique VPN pool range in a different subnet than the 192.168.110.0/24 subnet of the LAN.
Results:
In this VPN configuration, after the VPN tunnel is up, the following applies to the VPN client, depending on any additional security settings for individual devices and VLANs:
- The VPN client is connected to the NAT router at WAN IP address 203.0.113.55.
- The NAT router forwards VPN traffic to the VPN router at WAN IP address 10.10.10.11.
- The VPN client receives VPN LAN IP address 192.168.101.25 from the VPN router, which is in the VPN LAN IP address range of 192.168.101.11 to 192.168.101.70.
- Depending on your security settings, the VPN client can access devices in the LAN with subnet 192.168.110.0/24 behind the VPN router, including the switch at IP address 192.168.110.50 (and including any devices behind the switch) and the server at IP address 192.168.110.60.