Connect AWS VPN GateWay to AliCloud VPN GateWay

简介: Connect AWS VPN GateWay to AliCloud VPN GateWay in Site-to-Site mode

Testing Environment

AWS

AliCloud

subnet cidr

192.167.0.0/16

192.168.0.0/16

ecs ip for ping testing

192.167.12.213

192.168.0.10

Establish the IPSec Tunnel

Step1 Create VPN GateWay  in  the vpc on AliCoud



now we created the alicloud vpn gateway ip, 47.99.xx.xx


Step2 Create VPN GateWay  in the vpc on AWS



Step3 Create Customer Gateway on AWS

Enter a name for the customer gateway and enter the IP address of the Alibaba Cloud VPN Gateway


Step4 Create VPN Connection on AWS

Choose your vpn gateway and customer gateway created before.

Config as the bellow picture.

Config local cidr 0.0.0.0/0.
Config remote cidr 0.0.0.0/0.


Edit the tunnel options as bellow


Now, we created the tunnel outerside ip address.

tunnel1 52.73.xx.xx

tunnel2 107.23.xx.xx


Step5 Create Customer Gateway on AliCloud

Use the tunnel 1 ip address as the customer gateway id on aliCloud.


Step6 Create VPN Connection on AliCloud


Step7 Create VPN Connection on AliCloud

Enter the connection name, Choose the vpn gateway and customer gateway created before.

Enter the same pre share key


the advanced configuration as bellow



the connection  works!

tips: tunnel2 configuration is the same. do step5-step7 again.



Ping each side ecs

Step1 Add route entry on AliCloud VPN GateWay

Step2 Add route entry on AliCloud VPC

Step3 Add static route entry on AWS VPN GateWay


Step4 Add route entry on AWS VPC


ping testing works!

aws ecs ping alicloud ecs


alicloud ecs ping aws ecs

相关文章
|
Prometheus 负载均衡 监控
详解Gateway
详解Gateway
1210 0
|
2月前
|
负载均衡 Java 应用服务中间件
Gateway服务网关
Gateway服务网关
67 1
Gateway服务网关
|
5月前
|
Java API 微服务
服务网关Gateway
该博客文章详细介绍了Spring Cloud Gateway的使用方法和概念。文章首先阐述了API网关在微服务架构中的重要性,解释了客户端直接与微服务通信可能带来的问题。接着,文章通过具体的示例代码,展示了如何在Spring Cloud Gateway中添加依赖、编写路由规则,并对路由规则中的基本概念如Route、Predicate和Filter进行了详细解释。最后,文章还提供了路由规则的测试方法。
服务网关Gateway
|
6月前
|
缓存 监控 负载均衡
Gateway
【7月更文挑战第3天】
88 12
|
8月前
|
负载均衡 前端开发 Java
gateway
gateway
57 1
|
8月前
|
Java API 网络架构
Gateway的配置与使用
通过以上步骤,你可以配置和使用Spring Cloud Gateway来实现微服务架构中的请求路由和过滤功能。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
85 5
|
负载均衡 Java Nacos
Nacos和GateWay路由转发NotFoundException: 503 SERVICE_UNAVAILABLE “Unable to find
Nacos和GateWay路由转发NotFoundException: 503 SERVICE_UNAVAILABLE “Unable to find
442 0
|
负载均衡 Java Nacos
Gateway 网关服务
Gateway 网关服务
147 0
|
监控 前端开发 安全
Gateway服务网关(一)
Gateway服务网关
202 0