Last active
December 14, 2016 13:51
-
-
Save komuw/7e7fc8303da8c3273bf5fa654b93a1a4 to your computer and use it in GitHub Desktop.
client config for openvpn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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