Common Check Items

VPN connections fail or cannot be pinged when configurations (such as the negotiation policy, firewall, route table, interzone policy, NAT configuration, and security group) are incorrect.

Check the following configurations.

Checking the Negotiation Information on Both Sides of a VPN Connection

  • Ensure that the PSKs of the two sides are the same.
  • Ensure the IKE policies and the IPsec policies of the two sides are the same.
  • Ensure that the local subnet of one side is the same as the remote subnet of the other side and the remote subnet of one side is the same as the local subnet of the other side.

Checking the Configurations of the Firewall on Your Local Network and the Security Group on HUAWEI CLOUD

  • Ensure that data packets from your network are allowed to the VPC subnet on HUAWEI CLOUD.
  • Ensure that data packets from the VPC subnet on HUAWEI CLOUD are allowed to your network.

Checking the Firewall Route Table

Verify that there is a route whose destination is the VPC subnet on HUAWEI CLOUD.

  • Ensure that a route table contains the route to the target network on HUAWEI CLOUD.
  • Ensure that the forwarding table of the route works properly.

    Incorrect route configurations:

    1. The destination CIDR block is different from the VPC CIDR block. In this case, traffic destined to HUAWEI CLOUD cannot be routed to the public network interface configured with the IPsec policy.
    2. The outbound interface rather than the next hop is specified when configuring a static route.

      On an Ethernet network, the outbound interface cannot learn the ARP entries from the remote side, leading to route forwarding failure.

    3. The VPN gateway address on HUAWEI CLOUD is specified as the next hop of the route.

      Some non-Huawei devices do not support automatic route iteration. VPN traffic is sent from the public network interface. Therefore, the next hop must be the gateway address provided by the carrier.

      The following uses the Cisco device as an example.

      IP route: 192.168.1.0; 255.255.255.0; a.b.c.d

      192.168.1.0/24 is the CIDR block of a VPC on HUAWEI CLOUD and a.b.c.d is the gateway address provided by the carrier.

Checking the Firewall Interzone Policy

  • From a trust zone to an untrust zone: Allows access from your local network to the VPC subnet on the cloud.
  • From an untrust zone to a trust zone: Allows access from the VPC on the cloud to your local network.

Checking the NAT Configurations on the Firewall

Check whether the local VPN gateway is behind the NAT device (usually the border firewall). That is, the outbound interface of the VPN gateway uses a private IP address, and then it is translated into a public IP address by the NAT device.

This scenario is also called IPsec NAT traversal.