Skip to content

venkatesh5-S/multi_region_vpn_connection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multi Region VPN Connection Using Strongswan

Connecting multiple regions together via a vpn connection using Strongswan.

You only need to run these commands on the right side of the VPN. This is the VPN you want your connection to go to.

  • Note: Make sure that the internal IP blocks are different on both regions. For example in this tutorial my us-east is running on 172.30.0.0/16 and my us-west is running on 172.31.0.0/16

  • Installing OpenVPN in AWS https://www.youtube.com/watch?v=VWqRrMGHJQg

sudo su
apt-get update
apt-get install strongswan git -y
cd /root
git clone https://github.com/andrewpuch/multi_region_vpn_connection.git
cp multi_region_vpn_connection/ipsec.sh /sbin
cp multi_region_vpn_connection/ipsec.secrets /etc
cp multi_region_vpn_connection/ipsec.conf /etc
chmod 744 /sbin/ipsec.sh
chmod 744 /etc/ipsec.secrets
chmod 744 /etc/ipsec.conf

Edit the files according to the tutorial.

ipsec restart
ipsec status

About

Connecting multiple regions together via a vpn connection using strongswan.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%