Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. # cat /etc/sysctl.conf | grep forward
  2. # Controls IP packet forwarding
  3. net.ipv4.ip_forward = 1
  4.  
  5. config setup
  6. # strictcrlpolicy=yes
  7. # uniqueids = no
  8.  
  9. conn %default
  10. ikelifetime=1440m
  11. keylife=60m
  12. rekeymargin=3m
  13. keyingtries=1
  14. keyexchange=ikev1
  15. authby=secret
  16.  
  17. conn vendor
  18. left=1.1.1.1 #strongswan outside address
  19. leftsubnet=1.1.1.2/32 #network behind strongswan
  20. leftid=1.1.1.1 #IKEID sent by strongswan
  21. right=5.5.5.5 #IOS outside address
  22. rightsubnet=5.5.5.5/27 #network behind IOS
  23. rightid=5.5.5.5 #IKEID sent by IOS
  24. auto=add
  25. ike=3des-sha1-modp1024 #P1
  26. esp=3des-sha1 #P2
  27.  
  28. # netstat -rn
  29. Kernel IP routing table
  30. Destination Gateway Genmask Flags MSS Window irtt Iface
  31. 5.5.5.5 1.1.1.1 255.255.255.224 UG 0 0 0 eth0
  32.  
  33. # ip xfrm policy
  34. src 5.5.5.5/27 dst 1.1.1.2/32
  35. dir fwd priority 2839 ptype main
  36. tmpl src 5.5.5.5 dst 1.1.1.1
  37. proto esp reqid 1 mode tunnel
  38. src 5.5.5.5/27 dst 1.1.1.2/32
  39. dir in priority 2839 ptype main
  40. tmpl src 5.5.5.5 dst 1.1.1.1
  41. proto esp reqid 1 mode tunnel
  42. src 1.1.1.2/32 dst 5.5.5.5/27
  43. dir out priority 2839 ptype main
  44. tmpl src 1.1.1.1 dst 5.5.5.5
  45. proto esp reqid 1 mode tunnel
  46. src 0.0.0.0/0 dst 0.0.0.0/0
  47. dir 3 priority 0 ptype main
  48. src 0.0.0.0/0 dst 0.0.0.0/0
  49. dir 4 priority 0 ptype main
  50. src 0.0.0.0/0 dst 0.0.0.0/0
  51. dir 3 priority 0 ptype main
  52. src 0.0.0.0/0 dst 0.0.0.0/0
  53. dir 4 priority 0 ptype main
  54. src ::/0 dst ::/0
  55. dir 3 priority 0 ptype main
  56. src ::/0 dst ::/0
  57. dir 4 priority 0 ptype main
  58. src ::/0 dst ::/0
  59. dir 3 priority 0 ptype main
  60. src ::/0 dst ::/0
  61. dir 4 priority 0 ptype main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement