Debian/Ubuntu - Start OpenVPN Connection
I have quite a few posts on how to configure an OpenVPN server, but once you have one set up and have been provided all the certificate/configuration files, one needs to know how to launch a connection to the server with it. Here's how (on Ubuntu/Debian):
Install OpenVPN if you haven't already.
sudo apt-get install openvpn -y
Navigate to where your client configuration file is, and start the VPN connection by referencing it.
cd /path/to/client.conf/directory sudo openvpn --config client.conf --script-security 2
First published: 7th May 2022