By Evan Wong, Solutions Architect
Multi-cloud is one of the most sought-after architecture design that bridges the benefits of having multiple technology capabilities of the providers and to avoid vendor lock-in. To be able to connect to the various cloud providers with Alibaba Cloud, there are few options. One of the method is to connect via the VPN gateway through the public internet. This lab focuses on the step by step guide on setup the VPN Gateway on both Alibaba Cloud and Amazon Web Services.
The following lab provides the steps by steps on how to setup VPN Gateway to establish the connection to AWS.
Before going through the step-by-step guide, you should have:
Choose the region, VPC, peak bandwidth and billing method.
After the purchase, you should be able to see the new VPN Gateway on the console.
Give it a name:
Next, create a customer gateway. Click on the Create Customer Gateway, enter the name and IP address.
After it has created, it should appear on the console. Next navigate to the VPN connection page.
Provide the VPN connection name, choose the correct VPN and Customer Gateway, the local and remote network, as well as the pre-shared key.
Check the connection status. The status should state "Phase 2 of IKE Tunnel Negotiation Succeeded".
After the VPN Gateway has been established successfully, the next step is to add the route entry to the VPC in order for the ECS to be able to communicate with the EC2 in AWS.
Navigate to the VPC -> VRouters page. Click on the Add Route Entry.
Enter the CIDR Block from the AWS, choose VPN Gateway as the Next Hop Type and select the VPN Gateway that was created a moment ago.
Recheck again on the VRouter information page, the new route entry list should be appeared on the list
Navigate to Virtual Private Cloud, and click Create Virtual Private Gateway.
Key in a name and click Create Virtual Private Gateway.
After completed, attach a VPC.
Navigate to Customer Gateway and create a new Customer Gateway.
Enter a name for the customer gateway and enter the IP address of the Alibaba Cloud VPN Gateway.
Choose the correct VPN Gateway and choose the existing Customer Gateway that has been created earlier. Select static routing option and enter a static IP prefixes which is the subnet of the VPC.
Before you allow the access to the AWS EC2 instances, the route table need to be added in order for the Alibaba Cloud to connect to the AWS.
Make sure on the AWS side, the similar route entry have to be added as well. Next create ECS and EC2 or using the existing instances to do a ping test.
This VPN Gateway solution allows customer who are consuming services in both Alibaba Cloud and AWS to be able have a secure connectivity between both sites over internet.
Last Call for Alibaba Cloud MVP Nomination - September 2018 Batch
2,599 posts | 762 followers
FollowAlibaba Clouder - December 27, 2018
James Lee - February 28, 2024
Yen Sheng - April 3, 2023
Hironobu Ohara - May 18, 2023
JJ Lim - September 15, 2021
Alibaba Clouder - February 7, 2018
Can AliCloud China region create VPN connection to AWS cloud?
I've created vpn on the ap regions betwen aws and ali, then connect china with ap throw cen. Works fine :D
where does the AWS IP 52.74.7.208 come from? Is there a step before creating Alibaba Customer Gateway
"where does the AWS IP 52.74.7.208 come from? Is there a step before creating Alibaba Customer Gateway "I want to know the answer, too.
Is there any workaround in situations where we don't have VPN customer gateway. (for example AWS China regions)
2,599 posts | 762 followers
FollowA key value database service that offers in-memory caching and high-speed access to applications hosted on the cloud
Learn MoreElastic and secure virtual cloud servers to cater all your cloud hosting needs.
Learn MoreLearn More
More Posts by Alibaba Clouder
222487980713563372 November 20, 2018 at 5:17 am
great thanks