Skip to content

Instantly share code, notes, and snippets.

@mfischer-zd
Created February 21, 2016 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfischer-zd/050965106f8b12a01b20 to your computer and use it in GitHub Desktop.
Save mfischer-zd/050965106f8b12a01b20 to your computer and use it in GitHub Desktop.
libreswan configurations for AWS VPC endpoints
# /etc/ipsec.d/eastwest.conf - left-hand configuration (endpoint to 10.0.0.0/16)
conn eastwest
# we use %defaultroute below so we don't need to specify the instance's internal IP address,
# which may change if the instance is stopped/started
left=%defaultroute
# This host's Elastic IP address (what we advertise ourselves to "right" as)
leftid=52.27.234.11
leftsubnet=10.0.0.0/16
leftrsasigkey=...
# gateway address for 10.1.0.0/16 ("right's" Elastic IP address)
right=52.87.208.247
rightsubnet=10.1.0.0/16
rightrsasigkey=...
authby=rsasig
ike=aes256-sha256-modp2048
esp=aes256-sha256
# load and initiate automatically
auto=start
# /etc/ipsec.d/eastwest.conf - right-hand configuration (endpoint to 10.1.0.0/16)
conn eastwest
# gateway address for 10.0.0.0/16 ("left's" Elastic IP address)
left=52.27.234.11
leftsubnet=10.0.0.0/16
leftrsasigkey=...
# we use %defaultroute below so we don't need to specify the instance's internal IP address,
# which may change if the instance is stopped/started
right=%defaultroute
# This host's Elastic IP address (what we advertise ourselves to "left" as)
rightid=52.87.208.247
rightsubnet=10.1.0.0/16
rightrsasigkey=...
authby=rsasig
ike=aes256-sha256-modp2048
esp=aes256-sha256
# load and initiate automatically
auto=start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment