I have different VPCs in different regions in AWS:


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:


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.

2 Answers 2


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.


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



  • 2
    This will not work. To use peering the VPCs must be in the same region. Aug 26, 2017 at 23:17
  • I downvoted this because, while it is the accepted answer, it is incorrect. :( Sep 18, 2017 at 21:38
  • Updated for cross region.
    – strongjz
    Sep 19, 2017 at 13:35

AFAIK you do not need multiple VPNs to connect multiple VPCs. One VPN in each VPC, configured to route accordingly should work. Here is an article with details. See the section "Connecting Additional VPCs"


Unfortunately in order to peer, the VPCs must be in the same region, so peering will not work. Connecting VPCs in different regions is a little more compacted. Here is a link to an article that talks about the different options. The best solutions require some kind of VPN through a corporate network.


Here is the software solution from the article. Of interest, "Ocedo AutoVPN currently provides advanced network automation for launching, managing, and configuring software-based VPN appliances to connect multiple VPCs and full-mesh VPN networks."

Software VPN Appliances

This approach leverages the Amazon VPC capability to create VPN tunnels between EC2 instances in order to route traffic between VPCs in different regions. This option uses customer- or AWS Partner Network (APN) member-managed, EC2-based software VPN appliances and is best suited to customers who want to manage both ends of VPN connections using their preferred VPN software provider.

This design optimizes cross-region network transfer costs, however it requires customers to design and manage their own HA configuration for EC2 network instances.

Configuration Details

This design uses Elastic IP addresses and VPC Internet gateways to facilitate communication between the software VPN appliances. Although EC2 instances are configured with public IP addresses, network traffic between AWS Regions traverse the AWS global network backbone by default, which typically provide more consistent, lower latency network connectivity than equivalent Internet-based connections. AWS Marketplace provides multiple third-party and open source options (including products from Cisco, Fortinet, Ocedo, OpenSWAN, OpenVPN, Palo Alto Networks, Sophos, and Vyatta) for implementing software VPN appliances. Ocedo AutoVPN currently provides advanced network automation for launching, managing, and configuring software-based VPN appliances to connect multiple VPCs and full-mesh VPN networks.


Products available in the AWS Marketplace provide additional network control features for monitoring and controlling traffic between VPCs. These include additional security features such as enhanced monitoring, network-protocol-aware firewall rules, or universal threat management capabilities. Note that customers must run network appliances in each VPC, which results in additional EC2 and, potentially, third-party license charges. These EC2 instances can also introduce a single point of failure into the network architecture, and a potential network bottleneck, so be sure to choose a VPN appliance instance size that will meet cross-region network routing requirements. Finally, leverage Auto Recovery for EC2 or other network monitoring and recovery options to decrease the time to recover failed VPN appliances.

  • By the way. This is the approach I have settled on. If successful, I'll post back here with implementation details and templates. Aug 26, 2017 at 23:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.