Skip to content

Instantly share code, notes, and snippets.

@prysmakou
Last active April 29, 2016 12:56
Show Gist options
  • Save prysmakou/7c573a1f0126817ec7309135cf3dde7b to your computer and use it in GitHub Desktop.
Save prysmakou/7c573a1f0126817ec7309135cf3dde7b to your computer and use it in GitHub Desktop.
ipsec tunnel example
# /etc/ipsec.conf - strongSwan IPsec configuration file
conn customer
# Key info
ikelifetime=480m
keylife=480m
rekeymargin=3m
keyingtries=1
keyexchange=ike
authby=secret
ike=aes256-sha1-modp1024!
esp=aes256-sha1!
mobike=no
reauth=no
# Connection info
auto=start
type=tunnel
# Left side (us)
left=10.253.0.202
leftid=192.168.0.1
leftsubnet=10.253.0.0/24
leftfirewall=yes
# Right side (them)
right=10.0.0.1
rightid=10.0.0.1
rightsubnet=10.238.0.0/16
10.253.0.202 10.0.0.1 : PSK [key goes here]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment