2015-01-25 14:44:57 +00:00
|
|
|
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
|
|
|
#
|
|
|
|
# Based on http://www.strongswan.org/uml/testresults/ikev2/rw-psk-ipv4/
|
|
|
|
|
|
|
|
config setup
|
|
|
|
|
|
|
|
conn %default
|
|
|
|
left=%defaultroute
|
|
|
|
ikelifetime=60m
|
|
|
|
keylife=20m
|
|
|
|
rekeymargin=3m
|
|
|
|
keyingtries=1
|
|
|
|
keyexchange=ikev2
|
|
|
|
authby=secret
|
|
|
|
|
|
|
|
conn rw
|
|
|
|
# http://wiki.loopop.net/doku.php?id=server:vpn:strongswanonopenvz
|
|
|
|
# https://wiki.strongswan.org/projects/strongswan/wiki/ForwardingAndSplitTunneling
|
2016-07-31 15:47:35 +00:00
|
|
|
leftsubnet=0.0.0.0/0,::/0
|
2015-01-25 14:44:57 +00:00
|
|
|
# end ref
|
|
|
|
leftfirewall=yes
|
|
|
|
right=%any
|
2016-07-31 15:47:35 +00:00
|
|
|
rightsourceip=10.8.0.0/16,fd6a:6ce3:c8d8:7caa::/64
|
2015-01-25 14:44:57 +00:00
|
|
|
auto=add
|