Advertisement
thevals

VYos ipsec conf

Dec 2nd, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. esp-group ESP {
  2. lifetime 3600
  3. pfs dh-group2
  4. proposal 1 {
  5. encryption aes128
  6. hash sha1
  7. }
  8. }
  9. ike-group IKEv2 {
  10. key-exchange ikev2
  11. lifetime 3600
  12. proposal 1 {
  13. dh-group 2
  14. encryption aes256
  15. hash sha256
  16. }
  17. }
  18. ipsec-interfaces {
  19. interface eth0
  20. }
  21. nat-networks {
  22. allowed-network 0.0.0.0/0 {
  23. }
  24. }
  25. site-to-site {
  26. peer 10.1.2.1 {
  27. authentication {
  28. mode pre-shared-secret
  29. pre-shared-secret sussybaka1337
  30. }
  31. default-esp-group ESP
  32. ike-group IKEv2
  33. local-address 192.168.16.1
  34. tunnel 1 {
  35. esp-group ESP
  36. local {
  37. prefix 192.168.15.0/24
  38. }
  39. remote {
  40. prefix 10.1.1.0/24
  41. }
  42. }
  43. }
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement