Changes between Initial Version and Version 2 of Ticket #1069
- Timestamp:
- 06/08/18 14:53:30 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1069 – Description
initial v2 47 47 48 48 {{{ 49 ##############################################50 # client-side OpenVPN config file51 # for connecting to multi-client server.52 #53 # This configuration can be used by multiple54 # clients, however each client should have55 # its own cert and key files.56 ##############################################57 58 # Specify that we are a client and that we59 # will be pulling certain config file directives60 # from the server.61 49 client 62 63 # CLIENT ACCEPTS SERVER OPTIONS64 # The client should accept options pushed65 # by the server66 50 pull 67 68 # The hostname/IP and port of the server.69 # You can have multiple remote entries70 # to load balance between the servers.71 51 remote siuhsudf.sdfiuhsdfui.com 4000 72 52 remote 11.11.11.11 4000 73 74 75 # Are we connecting to a TCP or76 # UDP server? Use the same setting as77 # on the server.78 53 proto tcp-client 79 80 # Keep trying indefinitely to resolve the81 # host name of the OpenVPN server. Very useful82 # on machines which are not permanently connected83 # to the internet such as laptops.84 54 resolv-retry infinite 85 86 # Most clients don't need to bind to87 # a specific local port number.88 # nobind => do not bind89 # #nobind => bind90 #nobind91 92 # It's a good idea to reduce the OpenVPN93 # daemon's privileges after initialization.94 55 user nobody 95 56 group nogroup 96 97 # After initialization, OpenVPN can only98 # access a directory99 # The directory can be empty100 # OpenVPN process limitation101 57 chroot /etc/openvpn/ 102 # The persist options will try to avoid103 # accessing certain resources on restart104 # that may no longer be accessible because105 # of the privilege downgrade.106 58 persist-tun 107 108 #################################################109 # Encryption110 #################################################111 # SSL/TLS root certificate (ca), certificate112 # (cert), and private key (key). Each client113 # and the server must have their own cert and114 # key file. The server and all clients will115 # use the same ca file.116 #117 # See the "easy-rsa" directory for a series118 # of scripts for generating RSA certificates119 # and private keys. Remember to use120 # a unique Common Name for the server121 # and each of the client certificates.122 #123 # Any X509 key management system can be used.124 # OpenVPN can also use a PKCS #12 formatted key file125 # (see "pkcs12" directive in man page).126 # CA Public Key127 59 ca /root/ca.crt 128 # Local certificate129 60 cert /root/cert.crt 130 # Local key131 61 key /root/cert.key 132 62 tls-client 133 134 # Select a cryptographic cipher.135 # This config item must be copied to136 # the client config file as well.137 # Note that 2.4 client/server will automatically138 # negotiate AES-256-GCM in TLS mode.139 # See also the ncp-cipher option in the manpage140 63 cipher AES-256-CBC 141 142 # For compression compatible with older clients use comp-lzo143 # If you enable it here, you must also144 # enable it in the client config file.145 #comp-lzo146 147 #################################################148 # Network149 #################################################150 # Use the same setting as you are using on151 # the server.152 # On most systems, the VPN will not function153 # unless you partially or fully disable154 # the firewall for the TUN/TAP interface.155 64 dev myvpn 156 65 dev-type tun 157 158 #################################################159 # Logging160 #################################################161 # Output a short status file showing162 # current connections, truncated163 # and rewritten every minute.164 66 status /var/logs//openvpn//myvpn-status.log 20 165 166 # By default, log messages will go to the syslog (or167 # on Windows, if running as a service, they will go to168 # the "\Program Files\OpenVPN\log" directory).169 # Use log or log-append to override this default.170 # "log" will truncate the log file on OpenVPN startup,171 # while "log-append" will append to it. Use one172 # or the other (but not both).173 67 log /var/logs//openvpn//myvpn.log 174 175 # Set the appropriate level of log176 # file verbosity.177 #178 # 0 is silent, except for fatal errors179 # 4 is reasonable for general usage180 # 5 and 6 can help to debug connection problems181 # 9 is extremely verbose182 68 verb 3 183 184 69 185 70 remap-usr1 SIGTERM