Configuring VPN
Prerequisites
- Cloud side
- A VPC has been created. For details about how to create a VPC, see Creating a VPC and Subnet.
- Security group rules have been configured for the VPC, and ECSs can communicate with other devices on the cloud. For details about how to configure security group rules, see Security Group Rules.
- An enterprise router has been created if you want to use it to connect to a VPN gateway. For details, see the enterprise router documentation.
- Data center side
- IPsec has been configured on the VPN device in the on-premises data center. For details, see Administrator Guide.
Procedure
Huawei Cloud VPNs support static routing mode, BGP routing mode, and policy-based mode. The following uses the static routing mode as an example.
- Log in to the Huawei Cloud management console.
- Click Service List and choose .
- Configure a VPN gateway.
- Choose Virtual Private Network > Enterprise – VPN Gateways, and click Buy VPN Gateway.
- Set parameters as prompted.
Table 1 only describes the key parameters for creating a VPN gateway.
- Configure a customer gateway.
- Choose Virtual Private Network > Enterprise – Customer Gateways, and click Create Customer Gateway.
- Set parameters as prompted.
Table 2 only describes the key parameters for creating a customer gateway.
Table 2 Description of customer gateway parameters Parameter
Description
Value
Name
Name of a customer gateway.
cgw-fw
Routing Mode
Select Static.
Static
Gateway IP Address
IP address used by the customer gateway to communicate with the Huawei Cloud VPN gateway.
Ensure that UDP port 4500 is permitted on the customer gateway device in the on-premises data center.
172.16.0.111
- Configure VPN connections.
- Choose Virtual Private Network > Enterprise – VPN Connections, and click Buy VPN Connection.
- Set parameters for VPN connection 1 and click Submit.
Table 3 only describes the key parameters for creating a VPN connection.
Table 3 Parameter settings for VPN connection 1 Parameter
Description
Value
Name
Name of a VPN connection.
vpn-001
VPN Gateway
VPN gateway for which the VPN connection is created.
vpngw-001
Gateway IP Address
Private IP address bound to the VPN gateway.
192.168.2.100
Customer Gateway
Name of a customer gateway.
cgw-fw
VPN Type
Select Static routing.
Static routing
Customer Subnet
Subnet in the on-premises data center that needs to access the VPC on Huawei Cloud.
- A customer subnet cannot be included in any local subnet or any subnet of the VPC to which the VPN gateway is attached.
- Reserved VPC CIDR blocks such as 100.64.0.0/10 and 214.0.0.0/8 cannot be used as customer subnets.
172.16.0.0/16
Interface IP Address Assignment
Manually specify
Local Tunnel Interface Address
Tunnel interface IP address configured on the VPN gateway.
169.254.70.1
Customer Tunnel Interface Address
Tunnel interface IP address configured on the customer gateway device.
169.254.70.2
PSK, Confirm PSK
The value must be the same as the PSK configured on the customer gateway device.
Test@123
Policy Settings
The policy settings must be the same as those on the customer gateway device.
Default
- Create VPN connection 2.
For VPN connection 2, you are advised to use the same parameter settings as VPN connection 1, except the parameters listed in the following table.
Table 4 Parameter settings for VPN connection 2 Parameter
Description
Value
Name
Name of a VPN connection.
vpn-002
Gateway IP Address
Another private IP address bound to the VPN gateway.
192.168.2.101
Local Tunnel Interface Address
Tunnel IP address of the VPN gateway.
169.254.71.1
Customer Tunnel Interface Address
Tunnel IP address of the customer gateway.
169.254.71.2
- Configure the customer gateway device.
The configuration procedures may vary according to the type of the customer gateway device. For details, see Administrator Guide.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot