Setting Up a VPN Connection between Alibaba Cloud and GCP Using VPN Gateway




Getting Started

IPsec Parameters

Configurations — Alibaba Cloud

Set Up VPN Gateway

Set Up Customer Gateway

Set Up VPN Tunnel

Configurations — GCP

Create a New Static IP

Create the VPN Gateway

VPN Status

Firewall Rules

Testing the Tunnel

Create a Test Compute Engine

Check the VM Status

Create the SSH Keys

ssh-keygen -t rsa -f ~/.ssh/ssh-gcp-venkitas -C venkitas
chmod 400 ~/.ssh/ssh-gcp-venkitas
cat ~/.ssh/
ping #Private IP of GCP
ssh -i ~/.ssh/ssh-gcp-venkitas venkitas@


Further Reading

Alibaba Cloud ECS




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store