static-office.conf 1.7 KB

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