Advertisement
Guest User

openvpn-client.conf

a guest
Sep 5th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1.  
  2. ##############################################
  3. # Openvpn client configuration generated by #
  4. # router Turris based on Sample client-side #
  5. # OpenVPN 2.0 config file #
  6. # #
  7. # This configuration can be used only on #
  8. # a single client. #
  9. # #
  10. # #
  11. # On Windows, you might want to rename this #
  12. # file so it has a .ovpn extension #
  13. ##############################################
  14.  
  15. client
  16.  
  17. # Use the same setting as you are using on
  18. # the server.
  19. # On most systems, the VPN will not function
  20. # unless you partially or fully disable
  21. # the firewall for the TUN/TAP interface.
  22. dev tun_turris
  23.  
  24. # Windows needs the TAP-Win32 adapter name
  25. # from the Network Connections panel
  26. # if you have more than one. On XP SP2,
  27. # you may need to disable the firewall
  28. # for the TAP adapter.
  29. ;dev-node MyTap
  30.  
  31. proto udp
  32.  
  33. # The hostname/IP and port of the server.
  34. # You can have multiple remote entries
  35. # to load balance between the servers.
  36. ;remote my-server-1 1194
  37. ;remote my-server-2 1194
  38. remote [redacted IP] 1194
  39.  
  40. # Choose a random host from the remote
  41. # list for load-balancing. Otherwise
  42. # try hosts in the order specified.
  43. ;remote-random
  44.  
  45. # Keep trying indefinitely to resolve the
  46. # host name of the OpenVPN server. Very useful
  47. # on machines which are not permanently connected
  48. # to the internet such as laptops.
  49. resolv-retry infinite
  50.  
  51. # Most clients don't need to bind to
  52. # a specific local port number.
  53. nobind
  54.  
  55. # Downgrade privileges after initialization (non-Windows only)
  56. ;user nobody
  57. ;group nobody
  58.  
  59. # Try to preserve some state across restarts.
  60. persist-key
  61. persist-tun
  62.  
  63. # If you are connecting through an
  64. # HTTP proxy to reach the actual OpenVPN
  65. # server, put the proxy server/IP and
  66. # port number here. See the man page
  67. # if your proxy server requires
  68. # authentication.
  69. ;http-proxy-retry # retry on connection failures
  70. ;http-proxy [proxy server] [proxy port #]
  71.  
  72. # Wireless networks often produce a lot
  73. # of duplicate packets. Set this flag
  74. # to silence duplicate packet warnings.
  75. mute-replay-warnings
  76.  
  77. [redacted cert/key]
  78.  
  79. remote-cert-tls server
  80.  
  81.  
  82.  
  83.  
  84.  
  85. compress lzo
  86.  
  87. # Set log file verbosity.
  88. verb 3
  89.  
  90. # Silence repeating messages
  91. ;mute 20
  92.  
  93. # To enable to process DNS push request from the server on linux machines (non systemd-resolved)
  94. # note that you might need to have resolvconf program installed
  95. ;script-security 2
  96. ;up /etc/openvpn/update-resolv-conf
  97. ;down /etc/openvpn/update-resolv-conf
  98.  
  99. # To enable to process DNS push request from the server on linux machines (systemd-resolved)
  100. # see https://github.com/jonathanio/update-systemd-resolved
  101. ;script-security 2
  102. ;setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  103. ;up /etc/openvpn/update-systemd-resolved
  104. ;down /etc/openvpn/update-systemd-resolved
  105. ;down-pre
  106.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement