static-home.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #
  2. # Sample OpenVPN configuration file for
  3. # home using a pre-shared static key.
  4. #
  5. # '#' or ';' may be used to delimit comments.
  6. # Use a dynamic tun device.
  7. # For Linux 2.2 or non-Linux OSes,
  8. # you may want to use an explicit
  9. # unit number such as "tun1".
  10. # OpenVPN also supports virtual
  11. # ethernet "tap" devices.
  12. dev tun
  13. # Our OpenVPN peer is the office gateway.
  14. remote 1.2.3.4
  15. # 10.1.0.2 is our local VPN endpoint (home).
  16. # 10.1.0.1 is our remote VPN endpoint (office).
  17. ifconfig 10.1.0.2 10.1.0.1
  18. # Our up script will establish routes
  19. # once the VPN is alive.
  20. up ./home.up
  21. # Our pre-shared static key
  22. secret static.key
  23. # Cipher to use
  24. cipher AES-256-CBC
  25. # OpenVPN 2.0 uses UDP port 1194 by default
  26. # (official port assignment by iana.org 11/04).
  27. # OpenVPN 1.x uses UDP port 5000 by default.
  28. # Each OpenVPN tunnel must use
  29. # a different port number.
  30. # lport or rport can be used
  31. # to denote different ports
  32. # for local and remote.
  33. ; port 1194
  34. # Downgrade UID and GID to
  35. # "nobody" after initialization
  36. # for extra security.
  37. ; user nobody
  38. ; group nobody
  39. # If you built OpenVPN with
  40. # LZO compression, uncomment
  41. # out the following line.
  42. ; comp-lzo
  43. # Send a UDP ping to remote once
  44. # every 15 seconds to keep
  45. # stateful firewall connection
  46. # alive. Uncomment this
  47. # out if you are using a stateful
  48. # firewall.
  49. ; ping 15
  50. # Uncomment this section for a more reliable detection when a system
  51. # loses its connection. For example, dial-ups or laptops that
  52. # travel to other locations.
  53. ; ping 15
  54. ; ping-restart 45
  55. ; ping-timer-rem
  56. ; persist-tun
  57. ; persist-key
  58. # Verbosity level.
  59. # 0 -- quiet except for fatal errors.
  60. # 1 -- mostly quiet, but display non-fatal network errors.
  61. # 3 -- medium output, good for normal operation.
  62. # 9 -- verbose, good for troubleshooting
  63. verb 3