• Virtual Private Cloud

  1. Help Center
  2. Virtual Private Cloud
  3. User Guide
  4. FAQs
  5. Connectivity
  6. How Do I Configure a Remote Device for a VPN?

How Do I Configure a Remote Device for a VPN?

Due to the symmetry of the tunnel, the VPN parameters configured in the cloud must be the same as those configured in your own data center. If they are different, a VPN connection cannot be established.

To set up a VPN connection, you also need to configure the IPsec VPN on the router or firewall in your own data center. The configuration method may vary depending on your network device in use. For details, see the configuration guide of your network device.

The following operations describe how to configure the IPsec VPN connection on a Huawei USG6600 series V100R001C30SPC300 firewall for your reference.

In this example, the subnets of the data center are and, the subnets of the VPC are and, and the public IP address of the IPsec tunnel egress in the VPC is X.X.X.X, which can be obtained from the local gateway parameters of the IPsec VPN connection in the VPC.


  1. Log in to the command-line interface (CLI) of the firewall.
  2. Check firewall version information.
    display version 
    Huawei Versatile Security Platform Software
    Software Version: USG6600 V100R001C30SPC300(VRP (R) Software, Version 5.30)
  3. Create an access control list (ACL) and bind it to the target VPN instance.
    acl number 3065 vpn-instance vpn64
    rule 1 permit ip source destination
    rule 2 permit ip source destination
    rule 3 permit ip source destination
    rule 4 permit ip source destination
  4. Create an IKE proposal.
    ike proposal 64 
    dh group5 
    authentication-algorithm sha1 
    integrity-algorithm hmac-sha2-256 
    sa duration 3600 
  5. Create an IKE peer and reference the created IKE proposal. The peer IP address is X.X.X.X.
    ike peer vpnikepeer_64
    pre-shared-key ******** (******** specifies the pre-shared key.)
    ike-proposal 64
    undo version 2
    remote-address vpn-instance vpn64 X.X.X.X
    sa binding vpn-instance vpn64
  6. Create an IPsec protocol.
    ipsec proposal ipsecpro64
    encapsulation-mode tunnel
    esp authentication-algorithm sha1
  7. Create an IPsec policy and reference the IKE policy and IPsec proposal.
    ipsec policy vpnipsec64 1 isakmp
    security acl 3065
    pfs dh-group5
    ike-peer vpnikepeer_64
    proposal ipsecpro64
    local-address xx.xx.xx.xx
  8. Apply the IPsec policy to the subinterface.
    interface GigabitEthernet0/0/2.64
    ipsec policy vpnipsec64
  9. Test the connectivity.

    After you perform the preceding operations, you can test the connectivity between your ECSs in the cloud and the hosts in your data center. For details, see the following figure.

    Figure 1 Connectivity test