Advertisement
mafet

Untitled

May 24th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. Linux strongSwan U5.5.1/K4.9.0-6-amd64
  2. ------------------------------------------
  3. conn hetzner
  4. left=2a02:...::2
  5. leftid=2a02:...::2
  6. right=2a01:...::1
  7. rightid=2a01:...::1
  8. rightsubnet=100.100.101.0/24
  9. fragmentation = yes
  10. keyexchange = ikev2
  11. reauth = yes
  12. forceencaps = no
  13. mobike = no
  14. rekey = yes
  15. installpolicy = yes
  16. type = tunnel
  17. dpdaction = restart
  18. dpddelay = 10s
  19. dpdtimeout = 60s
  20. auto = route
  21. ikelifetime = 5400s
  22. lifetime = 3600s
  23. ike = aes256-sha256-modp1024!
  24. esp = aes256-sha256-modp4096,aes256-sha256-modp4096,aes256-sha256-modp4096,aes256-sha256-modp4096!
  25. leftauth = psk
  26. rightauth = psk
  27.  
  28. conn hetzner-1
  29. also=hetzner
  30. leftsubnet=100.100.100.0/24
  31.  
  32. conn hetzner-2
  33. also=hetzner
  34. leftsubnet=10.163.0.0/16
  35. ------------------------------------------
  36. /ip ipsec policy group
  37. add name=group1
  38. /ip ipsec profile
  39. add dh-group=modp1024 dpd-interval=disable-dpd enc-algorithm=aes-256 hash-algorithm=sha256 lifetime=1h30m name=profile1 nat-traversal=no
  40. /ip ipsec peer
  41. add address=2a02:...::2/128 exchange-mode=ike2 name=peer1 profile=profile1
  42. /ip ipsec proposal
  43. add auth-algorithms=sha256 enc-algorithms=aes-256-cbc lifetime=1h name=proposal1 pfs-group=modp4096
  44. /ip ipsec identity
  45. add peer=peer1 policy-template-group=group1 secret=...
  46. /ip ipsec policy
  47. add dst-address=100.100.100.0/24 level=unique proposal=proposal1 sa-dst-address=2a02:...::2 sa-src-address=2a01:...::1 src-address=100.100.101.0/24 tunnel=yes
  48. add dst-address=10.163.0.0/16 level=unique proposal=proposal1 sa-dst-address=2a02:...::2 sa-src-address=2a01:...::1 src-address=100.100.101.0/24 tunnel=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement