Advertisement
Guest User

Untitled

a guest
Mar 14th, 2016
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. client.conf
  2.  
  3. # Custom user conf file for OpenVPN client
  4. # Please add needed params only!
  5.  
  6. ### If your server certificates with the nsCertType field set to "server"
  7. ns-cert-type server
  8.  
  9. ### Process priority level (0..19)
  10. nice 0
  11.  
  12. ### Syslog verbose level
  13. verb 0
  14. mute 10
  15.  
  16.  
  17.  
  18. =================
  19.  
  20. server.conf
  21.  
  22.  
  23. # Custom user conf file for OpenVPN server
  24. # Please add needed params only!
  25.  
  26. ### Authenticate packets with HMAC using message digest algorithm
  27. auth SHA1 # SHA1 160 bit (default)
  28. ;auth SHA256 # SHA256 256 bit
  29. ;auth SHA512 # SHA512 512 bit
  30.  
  31. ### Encrypt packets with cipher algorithm
  32. cipher BF-CBC # Blowfish 128 bit (default)
  33. ;cipher AES-128-CBC # AES 128 bit
  34. ;cipher AES-256-CBC # AES 256 bit
  35. ;cipher DES-EDE3-CBC # Triple-DES 192 bit
  36. ;cipher none # No encryption
  37.  
  38. ### Enable LZO compression on the VPN link
  39. comp-lzo
  40.  
  41. ### Max clients limit
  42. max-clients 10
  43.  
  44. ### Internally route client-to-client traffic
  45. client-to-client
  46.  
  47. ### Allow clients with duplicate "Common Name"
  48. ;duplicate-cn
  49.  
  50. ### Keepalive and timeout
  51. keepalive 10 60
  52.  
  53. ### Process priority level (0..19)
  54. nice 3
  55.  
  56. ### Syslog verbose level
  57. verb 0
  58. mute 10
  59.  
  60. ==============================
  61.  
  62. OVPN file
  63.  
  64. ##############################################
  65. # Sample client-side OpenVPN 2.0 config file #
  66. # for connecting to multi-client server. #
  67. # #
  68. # This configuration can be used by multiple #
  69. # clients, however each client should have #
  70. # its own cert and key files. #
  71. # #
  72. # On Windows, you might want to rename this #
  73. # file so it has a .ovpn extension #
  74. ##############################################
  75.  
  76. # Specify that we are a client and that we
  77. # will be pulling certain config file directives
  78. # from the server.
  79. client
  80.  
  81. # Use the same setting as you are using on
  82. # the server.
  83. # On most systems, the VPN will not function
  84. # unless you partially or fully disable
  85. # the firewall for the TUN/TAP interface.
  86. dev tap
  87. #dev tun
  88.  
  89. # Windows needs the TAP-Win32 adapter name
  90. # from the Network Connections panel
  91. # if you have more than one. On XP SP2,
  92. # you may need to disable the firewall
  93. # for the TAP adapter.
  94. dev-node TAP
  95.  
  96. # Are we connecting to a TCP or
  97. # UDP server? Use the same setting as
  98. # on the server.
  99. proto tcp
  100. #proto udp
  101.  
  102. # The hostname/IP and port of the server.
  103. # You can have multiple remote entries
  104. # to load balance between the servers.
  105. remote X.X.X.X 1194
  106. #;remote my-server-2 1194
  107.  
  108. # Choose a random host from the remote
  109. # list for load-balancing. Otherwise
  110. # try hosts in the order specified.
  111. ;remote-random
  112.  
  113. # Keep trying indefinitely to resolve the
  114. # host name of the OpenVPN server. Very useful
  115. # on machines which are not permanently connected
  116. # to the internet such as laptops.
  117. resolv-retry infinite
  118.  
  119. # Most clients don't need to bind to
  120. # a specific local port number.
  121. nobind
  122.  
  123. # Downgrade privileges after initialization (non-Windows only)
  124. ;user nobody
  125. ;group nobody
  126.  
  127. # Try to preserve some state across restarts.
  128. persist-key
  129. persist-tun
  130.  
  131. # If you are connecting through an
  132. # HTTP proxy to reach the actual OpenVPN
  133. # server, put the proxy server/IP and
  134. # port number here. See the man page
  135. # if your proxy server requires
  136. # authentication.
  137. ;http-proxy-retry # retry on connection failures
  138. ;http-proxy [proxy server] [proxy port #]
  139.  
  140. # Wireless networks often produce a lot
  141. # of duplicate packets. Set this flag
  142. # to silence duplicate packet warnings.
  143. ;mute-replay-warnings
  144.  
  145. # SSL/TLS parms.
  146. # See the server config file for more
  147. # description. It's best to use
  148. # a separate .crt/.key file pair
  149. # for each client. A single ca
  150. # file can be used for all clients.
  151. ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
  152. cert "C:\\Program Files\\OpenVPN\\config\\client.crt"
  153. key "C:\\Program Files\\OpenVPN\\config\\client.key"
  154.  
  155. # Verify server certificate by checking that the
  156. # certicate has the correct key usage set.
  157. # This is an important precaution to protect against
  158. # a potential attack discussed here:
  159. # http://openvpn.net/howto.html#mitm
  160. #
  161. # To use this feature, you will need to generate
  162. # your server certificates with the keyUsage set to
  163. # digitalSignature, keyEncipherment
  164. # and the extendedKeyUsage to
  165. # serverAuth
  166. # EasyRSA can do this for you.
  167. remote-cert-tls server
  168.  
  169. # If a tls-auth key is used on the server
  170. # then every client must also have the key.
  171. tls-auth ta.key 1
  172.  
  173. # Select a cryptographic cipher.
  174. # If the cipher option is used on the server
  175. # then you must also specify it here.
  176. ;cipher x
  177.  
  178. # Enable compression on the VPN link.
  179. # Don't enable this unless it is also
  180. # enabled in the server config file.
  181. comp-lzo
  182.  
  183. # Set log file verbosity.
  184. verb 3
  185.  
  186. # Silence repeating messages
  187. ;mute 20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement