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

相关文章
|
1月前
|
Java API 微服务
服务网关Gateway
该博客文章详细介绍了Spring Cloud Gateway的使用方法和概念。文章首先阐述了API网关在微服务架构中的重要性,解释了客户端直接与微服务通信可能带来的问题。接着,文章通过具体的示例代码,展示了如何在Spring Cloud Gateway中添加依赖、编写路由规则,并对路由规则中的基本概念如Route、Predicate和Filter进行了详细解释。最后,文章还提供了路由规则的测试方法。
服务网关Gateway
|
1月前
|
负载均衡 Java 应用服务中间件
Gateway服务网关
本节针对微服务中另一重要组件:网关 进行了实战性演练,网关作为分布式架构中的重要中间件,不仅承担着路由分发(重点关注Path规则配置),同时可根据自身负载均衡策略,对多个注册服务实例进行均衡调用。本节我们借助GateWay实现的网关只是技术实现的方案之一,后续大家可能会接触像:Zuul、Kong等,其实现细节或有差异,但整体目标是一致的。
|
4月前
|
Java API 网络架构
Gateway的配置与使用
通过以上步骤,你可以配置和使用Spring Cloud Gateway来实现微服务架构中的请求路由和过滤功能。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
48 5
|
11月前
|
Java API Spring
springcloud gateway 网关
springcloud gateway 网关
71 0
|
10月前
gateway简单配置
gateway简单配置
59 0
|
11月前
|
负载均衡 前端开发 网络协议
使用 Azure SNAT 为 SAP Commerce Cloud 的 outbound connection 进行端口映射
使用 Azure SNAT 为 SAP Commerce Cloud 的 outbound connection 进行端口映射
|
负载均衡 前端开发 Java
SpringCloud 之 Gateway 服务网关 04
Gateway网关是我们服务的守门神,所有微服务的统一入口。
|
监控 Java API
SpringCloud Gateway网关
SpringCloud Gateway网关
111 0
|
负载均衡 Java Nacos
Gateway 网关服务
Gateway 网关服务
131 0
|
监控 前端开发 安全
Gateway服务网关(一)
Gateway服务网关
188 0