Advertisement
Guest User

Untitled

a guest
Apr 10th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. router:/etc# cat /etc/ipsec.conf
  2. # /etc/ipsec.conf - Openswan IPsec configuration file
  3.  
  4. # This file: /usr/share/doc/openswan/ipsec.conf-sample
  5. #
  6. # Manual: ipsec.conf.5
  7.  
  8.  
  9. version 2.0 # conforms to second version of ipsec.conf specification
  10.  
  11. # basic configuration
  12. config setup
  13. # Do not set debug options to debug configuration issues!
  14. # plutodebug / klipsdebug = "all", "none" or a combation from below:
  15. # "raw crypt parsing emitting control klips pfkey natt x509 dpd private"
  16. # eg:
  17. # plutodebug="control parsing"
  18. #
  19. # enable to get logs per-peer
  20. # plutoopts="--perpeerlog"
  21. #
  22. # Again: only enable plutodebug or klipsdebug when asked by a developer
  23. #
  24. # NAT-TRAVERSAL support, see README.NAT-Traversal
  25. nat_traversal=yes
  26. # exclude networks used on server side by adding %v4:!a.b.c.0/24
  27. virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
  28. # OE is now off by default. Uncomment and change to on, to enable.
  29. oe=off
  30. # which IPsec stack to use. auto will try netkey, then klips then mast
  31. # protostack=auto
  32. protostack=netkey
  33.  
  34.  
  35. # Add connections here
  36.  
  37. # sample VPN connection
  38. # for more examples, see /etc/ipsec.d/examples/
  39. #conn sample
  40. # # Left security gateway, subnet behind it, nexthop toward right.
  41. # left=10.0.0.1
  42. # leftsubnet=172.16.0.0/24
  43. # leftnexthop=10.22.33.44
  44. # # Right security gateway, subnet behind it, nexthop toward left.
  45. # right=10.12.12.1
  46. # rightsubnet=192.168.0.0/24
  47. # rightnexthop=10.101.102.103
  48. # # To authorize this connection, but not actually start it,
  49. # # at startup, uncomment this.
  50. # #auto=add
  51.  
  52.  
  53. conn testvpn
  54. authby=secret
  55. # auto=add
  56. left=62.26.19.28
  57. leftsubnet=10.0.0.0/22
  58. right=85.25.28.81
  59. rightsubnet=10.25.28.0/24
  60. #ike=3des-sha1-modp1024
  61. ike=3des
  62. esp=3des-sha1
  63. auto=start
  64. type=tunnel
  65. router:/etc#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement