After you establish a private connection between a data center and a virtual private cloud (VPC) through an Express Connect circuit and Cloud Enterprise Network (CEN), the private connection is not encrypted. This causes security risks. To improve network security, you can use a private VPN gateway to encrypt the private connection over the Express Connect circuit (hereafter referred to as the private connection). This topic describes the principle and configuration methods of encrypted private connections.
If you want to establish encrypted tunnels over private networks, we recommend that you associate private IPsec-VPN connections with a transit router (TR). For more information, see Create multiple private IPsec-VPN connections to implement load balancing.
How it works
After you establish a private connection between a data center and a VPC through an Express Connect circuit and CEN, you can establish an encrypted tunnel between a private VPN gateway and an on-premises gateway device. You can configure routes to route network traffic between the data center and the VPC to the encrypted tunnel. This way, network traffic transmitted through the tunnel is encrypted.
The following example describes how a private connection is encrypted. In this example, the private connection is used to access an Elastic Compute Service (ECS) instance in a VPC by a client in a data center.
No. | Node | Description |
1 | Client |
|
2 | On-premises gateway device |
|
3 | VBR | After the VBR receives the request packet, the VBR queries the route table and forwards the request packet to the CEN instance. |
4 | CEN instance | After the CEN instance receives the request packet, the CEN instance queries the route table and forwards the request packet to the VPC. |
5 | VPC | After the VPC receives the request packet, the VPC queries the route table and forwards the request packet to the VPN gateway. |
Area 6 | VPN gateway |
|
7 | ECS instance |
|
8 | VPN gateway |
|
9 | VPC | After the VPC receives the response packet, the VPC queries the route table and forwards the response packet to the CEN instance. |
10 | CEN instance | After the CEN instance receives the response packet, the CEN instance queries the route table and forwards the response packet to the VBR. |
11 | VBR | After the VBR receives the response packet, the VBR queries the route table and forwards the response packet to the on-premises gateway device. |
12 | On-premises gateway device |
|
Configuration methods
To encrypt a private connection by using a private VPN gateway, you can configure the VPN gateway and the VBR connected to the VPN gateway in different manners. The following table describes the differences between the configuration methods and provides links to the tutorials.
Configuration method | Description | Tutorial | Impact on communication after the VPN connection is interrupted |
Method 1 | Configure static routing for the VBR and VPN gateway. |
| |
Method 2 |
Note You cannot configure BGP dynamic routing for the VBR if static routing is configured for the VPN gateway. | Encrypt private connections by using static routing and BGP routing |
|
Method 3 | Configure BGP dynamic routing for the VBR and VPN gateway. |
|