Skip to content

Instantly share code, notes, and snippets.

@komuw
Last active December 14, 2016 13:51
Show Gist options
  • Save komuw/7e7fc8303da8c3273bf5fa654b93a1a4 to your computer and use it in GitHub Desktop.
Save komuw/7e7fc8303da8c3273bf5fa654b93a1a4 to your computer and use it in GitHub Desktop.
client config for openvpn
$ sudo apt -y install openvpn
## cat /etc/openvpn/client.conf
remote <PUBLI_IP> 1194
proto udp
ns-cert-type server
client
dev tun
resolv-retry infinite
keepalive 10 120
nobind
comp-lzo
verb 3
;user nobody
;group nogroup
key-direction 1
tls-auth ta.key 1
ca ca.crt
cert client.crt
key client.key
## cat /etc/openvpn/client.crt
-----BEGIN CERTIFICATE-----
some-stuff
-----END CERTIFICATE-----
## cat /etc/openvpn/client.key
-----BEGIN PRIVATE KEY-----
stuff
-----END PRIVATE KEY-----
## cat /etc/openvpn/ta.key
-----BEGIN OpenVPN Static key V1-----
yoh
-----END OpenVPN Static key V1-----
$ sudo service openvpn@client start
$ sudo service openvpn@client status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment