Help Center/ Virtual Private Network/ FAQs/ FAQs - S2C Classic VPN/ Subnet Setting/ What Are the Precautions for Configuring the Local and Remote Subnets of a VPN Connection?
Updated on 2023-06-16 GMT+08:00

What Are the Precautions for Configuring the Local and Remote Subnets of a VPN Connection?

  • You can configure up to 5 local subnets. The product of the number of local subnets and the number of remote subnets cannot exceed 225. If 225 is exceeded, consider supernetting the local or remote subnets.
  • The local subnet cannot include the CIDR block of the remote subnet. The remote subnet can include the CIDR block of the local subnet.
  • There are routes pointing to the local subnets in the VPC where the VPN gateway resides.
  • If there are two connections (connection A and connection B) created for a VPN gateway, and the remote subnet of connection A is within that of connection B, when the destination network to be accessed belongs to the overlapped CIDR block, the connection created first is matched first, regardless of the connection status. (Mask length match is not used for the policy-based VPN.)