tunnels between AWS EC2 regions

Use this forum to share your network setup and what's been working for you.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Skaperen
OpenVPN Power User
Posts: 89
Joined: Fri Aug 05, 2011 3:02 pm
Contact:

tunnels between AWS EC2 regions

Post by Skaperen » Fri Aug 26, 2016 3:41 am

I have written a set of Python scripts that run in one AWS EC2 instance per region that sets up an OpenVPN tunnel between every region it is run in. At this moment I have it running in 11 regions so there are a total of 55 tunnels. The design is that all I need to do is start it in each region I want tunnels to/from. Each instance looks for the others in the same AWS account and figures out the configuration from the information it gets about each of the instances. Address translation is part of the configuration so it can work with VPCs having the same IP addresses. I can terminate these instances when I don't need the tunnels and launch them back later and they will find each other at their new IP addresses. They use botocore.

BenHar
OpenVPN User
Posts: 24
Joined: Wed Feb 22, 2017 10:37 am

Re: tunnels between AWS EC2 regions

Post by BenHar » Thu Jun 29, 2017 12:47 pm

That is nice. Can we have a display of your python script?

Skaperen
OpenVPN Power User
Posts: 89
Joined: Fri Aug 05, 2011 3:02 pm
Contact:

Re: tunnels between AWS EC2 regions

Post by Skaperen » Sun Jul 09, 2017 6:28 am

i'm not letting out the script at this time. but i can let you try the AMI.

Post Reply