2
0

openvpn_recipes 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #
  2. # Routed point-to-point server
  3. #
  4. config openvpn_recipe server_tun_ptp
  5. option _description 'Simple server configuration for a routed point-to-point VPN'
  6. option _role 'server'
  7. option dev 'tun'
  8. option ifconfig '10.0.0.1 10.0.0.2'
  9. option secret 'shared-secret.key'
  10. option keepalive '10 60'
  11. option comp_lzo 'yes'
  12. option verb '3'
  13. option mssfix '1420'
  14. #
  15. # Routed point-to-point client
  16. #
  17. config openvpn_recipe client_tun_ptp
  18. option _description 'Simple client configuration for a routed point-to-point VPN'
  19. option _role 'client'
  20. option dev 'tun'
  21. list remote 'vpnserver.example.org'
  22. option ifconfig '10.0.0.2 10.0.0.1'
  23. option secret 'shared-secret.key'
  24. option nobind '1'
  25. option comp_lzo 'yes'
  26. option verb '3'
  27. #
  28. # Routed multi-client server
  29. #
  30. config openvpn_recipe server_tun
  31. option _description 'Server configuration for a routed multi-client VPN'
  32. option _role 'server'
  33. option dev 'tun'
  34. option server '10.0.100.0 255.255.255.0'
  35. option ca 'ca.crt'
  36. option cert 'server.crt'
  37. option key 'server.key'
  38. option dh 'dh1024.pem'
  39. option keepalive '10 60'
  40. option comp_lzo 'yes'
  41. option verb '3'
  42. option mssfix '1420'
  43. #
  44. # Routed client
  45. #
  46. config openvpn_recipe client_tun
  47. option _description 'Client configuration for a routed multi-client VPN'
  48. option _role 'client'
  49. option client '1'
  50. option dev 'tun'
  51. list remote 'vpnserver.example.org'
  52. option pkcs12 'my_client.p12'
  53. option remote_cert_tls 'server'
  54. option comp_lzo 'yes'
  55. option nobind '1'
  56. option persist_key '1'
  57. option persist_tun '1'
  58. option verb '3'
  59. option reneg_sec '0'
  60. option float '1'
  61. #
  62. # Multi-client ethernet bridge server
  63. #
  64. config openvpn_recipe server_tap_bridge
  65. option _description 'Server configuration for an ethernet bridge VPN'
  66. option _role 'server'
  67. option dev 'tap'
  68. option server_bridge '192.168.1.1 255.255.255.0 192.168.1.128 192.168.1.254'
  69. option ca 'ca.crt'
  70. option cert 'server.crt'
  71. option key 'server.key'
  72. option dh 'dh1024.pem'
  73. option keepalive '10 60'
  74. option comp_lzo 'yes'
  75. option verb '3'
  76. option mssfix '1420'
  77. #
  78. # Ethernet bridge client
  79. #
  80. config openvpn_recipe client_tap_bridge
  81. option _description 'Client configuration for an ethernet bridge VPN'
  82. option _role 'client'
  83. option client '1'
  84. option dev 'tap'
  85. list remote 'vpnserver.example.org'
  86. option ca 'ca.crt'
  87. option cert 'my_client.crt'
  88. option key 'my_client.key'
  89. option dh 'dh1024.pem'
  90. option remote_cert_tls 'server'
  91. option comp_lzo 'yes'
  92. option nobind '1'
  93. option persist_key '1'
  94. option verb '3'
  95. option reneg_sec '0'
  96. option float '1'