Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2013 17:06
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 anonymous/8cbba22cef2fda010c9f to your computer and use it in GitHub Desktop.
Save anonymous/8cbba22cef2fda010c9f to your computer and use it in GitHub Desktop.
# cat /etc/ipsec.conf
version 2.0
config setup
nat_traversal=yes
virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
oe=off
protostack=netkey
conn L2TP-PSK-NAT
rightsubnet=vhost:%priv
also=L2TP-PSK-noNAT
conn L2TP-PSK-noNAT
authby=secret
pfs=no
auto=add
keyingtries=3
rekey=no
ikelifetime=8h
keylife=1h
type=transport
left=my.server's.ip
leftprotoport=17/1701
right=%any
rightprotoport=17/%any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment