To connect your on-premises data center or private network to your ECSs in a VPC, you need to create a VPN connection after a VPN gateway is obtained.
in the upper left corner and select the desired region and project.
in the upper left corner, select a region, and choose Network > Virtual Private Network.The VPN console is displayed.
If Enterprise Edition VPN is available for the selected region, choose Virtual Private Network > Classic.
Parameter | Description | Example Value |
|---|---|---|
Region | Regions are geographic areas that are physically isolated from each other. The networks inside different regions are not connected to each other, so resources cannot be shared across regions. For low network latency and fast resource access, select the region nearest to your target users. | N/A |
Name | Name of a VPN connection. | vpn-001 |
VPN Gateway | Name of the VPN gateway for which the VPN connection is created. | vpcgw-001 |
Local Subnet | VPC subnets that will access your on-premises network through a VPN. You can set the local subnet using either of the following methods:
| 192.168.1.0/24, 192.168.2.0/24 |
Remote Gateway | The public IP address of the gateway in your data center or on the private network. This IP address is used for communicating with your VPC. In active-active mode, you can enter two remote gateway addresses. | N/A |
Remote Subnet | The subnets of your on-premises network that will access a VPC through a VPN. The remote and local subnets cannot overlap with each other. The remote subnet cannot overlap with CIDR blocks involved in existing VPC peering, Direct Connect, or Cloud Connect connections created for the local VPC. | 192.168.3.0/24, 192.168.4.0/24 |
PSK | Private key shared by two ends of a VPN connection for negotiation. PSKs configured at both ends of the VPN connection must be the same. The PSK:
| Test@123 |
Confirm PSK | Enter the PSK again. | Test@123 |
Advanced Settings | Custom |
Parameter | Description | Example Value |
|---|---|---|
Authentication Algorithm | Hash algorithm used for authentication. The following algorithms are supported:
The default algorithm is SHA1. The default algorithm is SHA2-256. | SHA2-256 |
Encryption Algorithm | Encryption algorithm. The following algorithms are supported:
The default algorithm is AES-128. | AES-128 |
DH Algorithm | Diffie-Hellman key exchange algorithm. The following algorithms are supported:
The default algorithm is Group 14. | Group 14 |
Version | Version of the IKE protocol. The value can be one of the following:
The default value is v2. | v2 |
Lifetime (s) | Lifetime of an SA, in seconds An SA will be renegotiated when its lifetime expires. The default value is 86400. | 86400 |
Negotiation Mode | This parameter is available only when Version is set to v1. You can set Negotiation Mode to Main or Aggressive. The default mode is Main. | Main |
Parameter | Description | Example Value |
|---|---|---|
Authentication Algorithm | Hash algorithm used for authentication. The following algorithms are supported:
The default algorithm is SHA2-256. | SHA2-256 |
Encryption Algorithm | Encryption algorithm. The following algorithms are supported:
The default algorithm is AES-128. | AES-128 |
PFS | Algorithm used by the Perfect forward secrecy (PFS) function. PFS supports the following algorithms:
The default algorithm is DH group 14. | DH group 14 |
Transfer Protocol | Security protocol used in IPsec to transmit and encapsulate user data. The following protocols are supported:
The default protocol is ESP. | ESP |
Lifetime (s) | Lifetime of an SA, in seconds An SA will be renegotiated when its lifetime expires. The default value is 3600. | 3600 |
An IKE policy specifies the encryption and authentication algorithms to be used in the negotiation phase of an IPsec tunnel. An IPsec policy specifies the protocol, encryption algorithm, and authentication algorithm to be used in the data transmission phase of an IPsec tunnel. The IKE and IPsec policies must be the same at both ends of a VPN connection. If they are different, the VPN connection cannot be set up.