Guides
ProductDeveloperPartnerPersonal
Guides

Configure Tunnels with Alibaba Cloud IPsec

Alibaba Cloud VPN Gateway is an Internet-based service that securely and reliably connects enterprise data centers, office networks, and Internet terminals to virtual private clouds (VPCs) of Alibaba Cloud through encrypted channels.

Alibaba Cloud IPsec-VPN connects networks based on routes. It facilitates the configuration and maintenance of VPN policies and provides flexible traffic routing methods. You can use IPsec-VPN to connect a data center to a VPC or connect two VPCs. IPsec-VPN supports the IKEv1 and IKEv2 protocols. All on-premises gateway devices that support these two protocols can connect to VPN gateways on Alibaba Cloud.

467

Table of Contents

Configure Tunnels in Umbrella

You must select an Umbrella SIG Data Center IP address to use when creating the IPsec tunnel.
In the sample commands, <umbrella_dc_ip> refers to this IP address. We recommend choosing the IP address based on the data center located near to your device. For more information, see Connect to Cisco Umbrella Through Tunnel.

  1. Navigate to Deployments > Core Identities > Network Tunnels, and then click Add.
1388
  1. Enter an appropriate name in the Tunnel Name field and choose Other from the Device Type drop-down list.
1681
  1. Under Tunnel ID Format, click the IP Address radio button and enter the Alibaba Cloud VPC NAT gateway public IP address in the IP Address field. Enter the same Pre-Shared-Key (PSK) Passphrase in the Passphrase and the Confirm Passphrase fields, and then click Save.
1249

The new tunnel appears in the Umbrella dashboard with a status of Not Established. The tunnel status is updated once it is fully configured and connected with Alibaba Cloud IPSec VPN.

Configure Alibaba Cloud IPsec VPN

Prerequisites

Before you use IPsec-VPN to connect a data center to a VPC, the following requirements must be met:

  • The gateway device in the data center supports the IKEv1 and IKEv2 protocols.
  • IPsec-VPN supports the IKEv1 and IKEv2 protocols. All gateway devices that support these two protocols can connect to VPN gateways on Alibaba Cloud.
  • A static public IP address is assigned to the gateway device in the data center.
  • The CIDR block of the data center does not overlap with the CIDR block of the VPC.
  • You must read and understand the security group rules that apply to the Elastic Compute Service (ECS) instances in the VPC, and the security rules allow gateway devices in the data center to access cloud resources.

Procedure

  1. Create a VPN Gateway—Enable the IPsec-VPN feature for the VPN gateway. You can create multiple IPsec-VPN connections for each VPN gateway.
  2. Create a Customer Gateway—Register the information about the gateway device in the data center to Alibaba Cloud through a customer gateway.
  3. Create an IPsec-VPN Connection—Connect a VPN channel between the VPN gateway and the gateway device in the data center. The data center can exchange encrypted data with Alibaba Cloud only after an IPsec-VPN connection is created.
  4. Configure the On-premises Gateway Device—Load the configuration of the VPN gateway on Alibaba Cloud to the gateway device in the data center. For more information, see Configure an H3C firewall device.
  5. Configure Routes for the VPN Gateway—Configure routes for the VPN gateway and advertise these routes to the VPC route table so the VPC and the data center can communicate with one another. For more information, see VPN Gateway route overview.
  6. Test the Connectivity—Log on to an Elastic Compute Service (ECS) instance that is not assigned a public IP address in the VPC. Run the ping command to ping the private IP address of a server that resides in the data center and test the connectivity.

Create a Customer Gateway

You can use a customer gateway to establish an IPsec-VPN connection between a virtual private cloud (VPC) and a data center or between two VPCs. After you create a customer gateway, you can update the information about a gateway device in the data center to Alibaba Cloud. Then, you can connect the customer gateway to a VPN gateway. A customer gateway can connect to multiple VPN gateways.

  1. Log in to Alibaba Cloud VPN Gateway console and navigate to Interconnections > VPN > Customer Gateways.
  2. Select the region where you want to create the customer gateway.
    Note: You must deploy the customer gateway and the VPN gateway to be connected in the same region.
  3. Under Customer Gateways, click Create Customer Gateway, then set the following parameters:
  • Name—a name between 2 and 128 characters in length. It must start with a letter, and can include digits, underscores, and hyphens.
  • IP Address—the static public IP address of the gateway device in the closest Umbrella data center. For more information, see Connect to Cisco Umbrella Through Tunnel.
  • ASN—the autonomous system number of the gateway device in the data center.
    Note: This is required when the VPN gateway has dynamic BGP enabled.
  • Description—a description for the customer gateway between 2 and 100 characters in length. It must start with a letter and can include digits, underscores, and hyphens.
  1. Click OK.

Create an IPsec-VPN Connection

When using Alibaba Cloud IPsec-VPN to create a site-to-site connection, you must configure the local gateway according to the IPsec connection configured for the Alibaba Cloud VPN Gateway. For more information, see Create and manage IPsec-VPN connections.

Before You Configure

  • Make sure you have configured IPsec connections. For more information, see Connect a data center to a VPC.
  • After you create an IPsec-VPN connection, download the configurations of the IPsec-VPN connection.

Following is an example of configuring the IPsec-VPN connection:

  • Customer Gateway—includes the IP address of the closest Umbrella data center.
  • Pre-Shared Key—is the Pre-Shared Key from the Umbrella dashboard.
1032

Under Advanced Configuration, for IKE Configurations:

  • Version—ikev2
  • Negotiation Mode—main
  • Encryption Algorithm—aes256
  • DH Group—group14
  • SA Life Cycle (seconds)—86400
  • Local ID—IP (address of local Alibaba Cloud NAT Gateway IP address)
  • Remote ID—IP (address of nearest Umbrella data center)
750

Under Advanced Configuration, for IPsec Configurations:

  • Encryption Algorithm—aes256
  • Authentication Algorithm—sha1
  • DH Group—group2
  • SA Life Cycle (seconds)—86400
  • DPD—On (click toggle button to on status (green))
  • NAT Transversal—On (click toggle button to on status (green))
748

View Logs

  1. In the VPN Console, navigate to VPC > IPsec Connections. Find the connection, click the Action menu, and select View Logs.
1588 1008

Configure Tunnels with Palo Alto IPsec < Configure Tunnels with Alibaba Cloud IPsec > Configure Tunnels with Palo Alto Prisma SDWAN