To connect your on-premises data center or private network to your ECSs in a VPC, buy a VPN gateway first.
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 |
|---|---|---|
Billing Mode | Billing mode of a VPN gateway, which can be pay-per-use The billing modes available for a region are subject to those displayed on the page. Pay-per-use: When you buy a pay-per-use VPN gateway, you must buy a VPN connection together with the VPN gateway. | Pay-per-use |
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. | - |
Name | Name of a VPN gateway. | vpngw-001 |
VPC | Name of the VPC to which the VPN gateway connects. | vpc-001 |
Type | VPN type. IPsec is selected by default. | IPsec |
Reliability | Only Active-active is supported. | Active-active |
Billed By | A pay-per-use VPN gateway can be billed by bandwidth or by traffic. The billing modes available for a region are subject to those displayed on the page.
| Traffic |
Bandwidth (Mbit/s) | The bandwidth of the VPN gateway. The bandwidth is shared by all VPN connections created for the VPN gateway. The total bandwidth size used by all VPN connections created for a VPN gateway cannot exceed the VPN gateway bandwidth size. | 10 |
Parameter | Description | Example Value |
|---|---|---|
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 | PSKs configured at both ends of a 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 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 value is Group 14. DH algorithms configured at both ends of a VPN connection must be the same. Otherwise, the negotiation will fail. | 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 |
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 |