ipsec.conf 512 B

12345678910111213141516171819202122232425262728293031
  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. left=192.168.0.2
  9. leftcert=sunCert.pem
  10. leftid=@sun.strongswan.org
  11. leftfirewall=yes
  12. conn net-net
  13. leftsubnet=10.2.0.0/16
  14. right=192.168.0.1
  15. rightsubnet=10.1.0.0/16
  16. rightid=@moon.strongswan.org
  17. auto=add
  18. conn host-host
  19. right=192.168.0.1
  20. rightid=@moon.strongswan.org
  21. auto=add
  22. conn nat-t
  23. leftsubnet=10.2.0.0/16
  24. right=%any
  25. rightsubnet=10.1.0.0/16
  26. auto=add