tunnels between AWS EC2 regions
Posted: 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.