How-to connect a Linux server to another Linux server via OpenVPN, command line style.
apt-get install openvpn
Copy the example client.conf file
I then edited the client.conf file down as listed below for my initial testing. Please be sure to adjust according to your own Server configuration as well as proper names for the ca, key and crt files.
#---- OpenVPN Client.conf --------------
dev tap0proto tcpresolv-retry infinitenobindpersist-key
persist-tun
remote hostname.com 1194
ca ca.crt cert hostname.crt
key hostname.keyverb 3 Restart OpenVPN/etc/init.d/openvpn startTest by pinging or logging into the remote server
No comments:
Post a Comment