Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #Host 1 /etc/ipsec-tools.conf
  2. # Flush the SAD(security association db) and SPD(security policy db) to remove previous entries
  3. flush;
  4. spdflush;
  5.  
  6. # ESP SAs
  7. add 10.1.0.1 10.1.0.2 esp 0x201 -E 3des-cbc
  8. 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831;
  9. add 10.1.0.2 10.1.0.1 esp 0x301 -E 3des-cbc
  10. 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df;
  11.  
  12. # Security policies
  13. spdadd 10.1.0.1 10.1.0.2 any -P out ipsec
  14. esp/transport//require;
  15.  
  16. spdadd 10.1.0.2 10.1.0.1 any -P in ipsec
  17. esp/transport//require;
  18.  
  19. #Host 2 /etc/ipsec-tools.conf
  20. # Flush the SAD(security association db) and SPD(security policy db) to remove previous entries
  21. flush;
  22. spdflush;
  23.  
  24. # ESP SAs
  25. add 10.1.0.1 10.1.0.2 esp 0x201 -E 3des-cbc
  26. 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831;
  27. add 10.1.0.2 10.1.0.1 esp 0x301 -E 3des-cbc
  28. 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df;
  29.  
  30. # Security policies
  31. spdadd 10.1.0.2 10.1.0.1 any -P in ipsec
  32. esp/transport//require;
  33.  
  34. spdadd 10.1.0.1 10.1.0.2 any -P out ipsec
  35. esp/transport//require;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement