大网数据广告活动
服务器运维问答

How to configure OpenVPN with Multiple VPCs in different region?

· 52CE 我爱测

I have different VPCs in different regions in AWS: 10.1.0.0/16(A) 10.2.0.0/16(B) 10.3.0.0/16(C) I followed this article( http://cloudacademy.com/blog/openvpn-aws-vpc/ ) to open a vpn connection in order to let server instances in…

问题原文

原帖链接 · Inacio · CC BY-SA 3.0

I have different VPCs in different regions in AWS:

  1. 10.1.0.0/16(A)
  2. 10.2.0.0/16(B)
  3. 10.3.0.0/16(C)

I followed this article(http://cloudacademy.com/blog/openvpn-aws-vpc/) to open a vpn connection in order to let server instances in B to communicate RDS instance in private subnet of VPC A.

I did the following in ipsec.conf:

rightsubnet=10.2.0.0/16

Everything works fine but how am I supposed to connect C to A? Do I need to open an another OpenVPN instance? I am pretty sure there is a way to accomplish this.

已采纳解答

原帖链接 · strongjz · CC BY-SA 3.0

For VPC in the Same region:

VPC peering, Set up a VPC Peer connection to the other VPC's. So if the vpn server is in A, creating a VPC peer connection from A to B and A to C.

http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/Welcome.html

For VPC Peering in Different Regions:

You can Use a software VPN like Openvpn or Strongswan

Leverages AWS networking equipment in-region and Internet pipes between regions

Layer 3 setup with OpenVPN

Layer 2 setup with OpenVPN

https://docs.openvpn.net/how-to-tutorialsguides/administration/extending-vpn-connectivity-to-amazon-aws-vpc-using-aws-vpc-vpn-gateway-service/

https://s3.amazonaws.com/awsmedia/AWS_Amazon_VPC_Connectivity_Options.pdf

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。