Help Center> Virtual Private Network> FAQ> VPN Negotiation and Interconnection> How Should I Configure Gateway Device of the Customer Data Center When I Use a VPN to Connect to the Cloud?

How Should I Configure Gateway Device of the Customer Data Center When I Use a VPN to Connect to the Cloud?

Determine the subnet of the customer data center, subnet on the cloud, and gateway IP addresses at both ends.

Then, configure IPsec on the gateway of the customer data center according to the VPN negotiation policies on the cloud, and add rules to the security group associated with the VPC to allow ICMP packets in both the inbound and outbound directions.

  • Route setting: Add routes starting from the customer gateway and destining for the VPN gateway egress. The next hop of the route on the VPN gateway is the public gateway IP address in the outbound direction.
  • NAT setting: On the VPN gateway device, disable NAT for the local subnet to access the VPC subnet. Add security group rules to allow mutual access between the local subnet and the VPC subnet, and allow the UDP 500, UDP 4500, ESP (IP protocol 50), and AH (IP protocol 51) packets both from and to IP addresses of the VPN gateway on the cloud and the gateway of the customer data center.