ipsec.conf 527 B

1234567891011121314151617181920212223242526272829303132
  1. # /etc/ipsec.conf - strongSwan IPsec configuration file
  2. config setup
  3. conn %default
  4. ikelifetime=60m
  5. keylife=20m
  6. rekeymargin=3m
  7. keyingtries=1
  8. keyexchange=ikev2
  9. left=PH_IP_SUN
  10. leftcert=sunCert.pem
  11. leftid=@sun.strongswan.org
  12. leftfirewall=yes
  13. conn net-net
  14. leftsubnet=10.2.0.0/16
  15. right=PH_IP_MOON
  16. rightsubnet=10.1.0.0/16
  17. rightid=@moon.strongswan.org
  18. auto=add
  19. conn host-host
  20. right=PH_IP_MOON
  21. rightid=@moon.strongswan.org
  22. auto=add
  23. conn nat-t
  24. leftsubnet=10.2.0.0/16
  25. right=%any
  26. rightsubnet=10.1.0.0/16
  27. auto=add