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

Prerequisites

Topology

Overview

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/ssh-gcp-venkitas.pub
ping https://www.linkedin.com/redir/invalid-link-page?url=10%2e148%2e0%2e2 #Private IP of GCP
ssh -i ~/.ssh/ssh-gcp-venkitas venkitas@10.148.0.2

Conclusion

Further Reading

Alibaba Cloud ECS

GCP VPN

--

--

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