Install and Configure OpenVPN Client

Install OpenVPN client

apt install openvpn -y

Manually connect to OpenVPN server

openvpn --config client.ovpn

Automatically connect to OpenVPN server

cp my-server.ovpn /etc/openvpn/my-server.conf
vi /etc/openvpn/my-server-creds.txt
openvpn_username
somepassword
vi /etc/openvpn/my-server.conf
...
auth-user-pass my-server-creds.txt
...
vi /etc/default/openvpn
AUTOSTART="all"
systemctl restart openvpn

Revision #1
Created 2020-11-17 18:51:03 UTC by Dino Edwards
Updated 2020-11-17 18:52:14 UTC by Dino Edwards