Skip to content

Example OpenVPN Client Config

sc250024 edited this page Jul 16, 2016 · 1 revision

Client Config

Here's an example OpenVPN client configuration to use with this set of PHP scripts.

auth SHA512
auth-nocache
auth-user-pass
cipher AES-256-CBC
client
comp-lzo yes
dev tun
keepalive 15 60
key-direction 1
nobind
persist-key
persist-tun
proto udp
remote <remote ip> <remote port>
remote-cert-eku "TLS Web Server Authentication"
remote-cert-tls server
reneg-sec 0
resolv-retry infinite
tls-version-min 1.2
verb 3
explicit-exit-notify 3

<ca>
-----BEGIN CERTIFICATE-----
<put CA public key here>
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
<put cert public key here>
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
<put cert private key here>
-----END RSA PRIVATE KEY-----
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
<put static key here>
-----END OpenVPN Static key V1-----
</tls-auth>
Clone this wiki locally