sample.ovpn 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Edit this file, and save to a .ovpn extension
  2. # so that OpenVPN will activate it when run
  3. # as a service.
  4. # Change 'myremote' to be your remote host,
  5. # or comment out to enter a listening
  6. # server mode.
  7. remote myremote
  8. # Uncomment this line to use a different
  9. # port number than the default of 1194.
  10. ; port 1194
  11. # Choose one of three protocols supported by
  12. # OpenVPN. If left commented out, defaults
  13. # to udp.
  14. ; proto [tcp-server | tcp-client | udp]
  15. # You must specify one of two possible network
  16. # protocols, 'dev tap' or 'dev tun' to be used
  17. # on both sides of the connection. 'tap' creates
  18. # a VPN using the ethernet protocol while 'tun'
  19. # uses the IP protocol. You must use 'tap'
  20. # if you are ethernet bridging or want to route
  21. # broadcasts. 'tun' is somewhat more efficient
  22. # but requires configuration of client software
  23. # to not depend on broadcasts. Some platforms
  24. # such as Solaris, OpenBSD, and Mac OS X only
  25. # support 'tun' interfaces, so if you are
  26. # connecting to such a platform, you must also
  27. # use a 'tun' interface on the Windows side.
  28. # Enable 'dev tap' or 'dev tun' but not both!
  29. dev tap
  30. # This is a 'dev tap' ifconfig that creates
  31. # a virtual ethernet subnet.
  32. # 10.3.0.1 is the local VPN IP address
  33. # and 255.255.255.0 is the VPN subnet.
  34. # Only define this option for 'dev tap'.
  35. ifconfig 10.3.0.1 255.255.255.0
  36. # This is a 'dev tun' ifconfig that creates
  37. # a point-to-point IP link.
  38. # 10.3.0.1 is the local VPN IP address and
  39. # 10.3.0.2 is the remote VPN IP address.
  40. # Only define this option for 'dev tun'.
  41. # Make sure to include the "tun-mtu" option
  42. # on the remote machine, but swap the order
  43. # of the ifconfig addresses.
  44. ;tun-mtu 1500
  45. ;ifconfig 10.3.0.1 10.3.0.2
  46. # If you have fragmentation issues or misconfigured
  47. # routers in the path which block Path MTU discovery,
  48. # lower the TCP MSS and internally fragment non-TCP
  49. # protocols.
  50. ;fragment 1300
  51. ;mssfix
  52. # If you have set up more than one TAP-Win32 adapter
  53. # on your system, you must refer to it by name.
  54. ;dev-node my-tap
  55. # You can generate a static OpenVPN key
  56. # by selecting the Generate Key option
  57. # in the start menu.
  58. #
  59. # You can also generate key.txt manually
  60. # with the following command:
  61. # openvpn --genkey --secret key.txt
  62. #
  63. # key must match on both ends of the connection,
  64. # so you should generate it on one machine and
  65. # copy it to the other over a secure medium.
  66. # Place key.txt in the same directory as this
  67. # config file.
  68. secret key.txt
  69. # Uncomment this section for a more reliable
  70. # detection when a system loses its connection.
  71. # For example, dial-ups or laptops that travel
  72. # to other locations.
  73. #
  74. # If this section is enabled and "myremote"
  75. # above is a dynamic DNS name (i.e. dyndns.org),
  76. # OpenVPN will dynamically "follow" the IP
  77. # address of "myremote" if it changes.
  78. ; ping-restart 60
  79. ; ping-timer-rem
  80. ; persist-tun
  81. ; persist-key
  82. ; resolv-retry 86400
  83. # keep-alive ping
  84. ping 10
  85. # enable LZO compression
  86. comp-lzo
  87. # moderate verbosity
  88. verb 4
  89. mute 10