OpenVPN for Linux

This short guide will walk you through on how to setup your OpenVPN Client in Linux. This guide will be using OpenVPN on Debian but should be similar on distributions such as Ubuntu, Linux Mint and elementary OS. It's best to refer to your distributions' manuals for specific instructions.


Installing OpenVPN Client

  • Open up your terminal and run the following command
sudo apt install openvpn ca-certificates
  • Navigate to where you saved your file (Assuming that you saved the zip file in ~/Downloads) and unzip it to /etc/openvpn
cd ~/Downloads
sudo unzip {username}-x.zip -d /etc/openvpn/
  • Then run openvpn using the following command
sudo openvpn {username}-x.ovpn
  • It'll show you the logs of the connection. Wait for a few minutes for it to successtully connect. You can also run above command under screen or tmux.

  • To stop the connection, do CTRL + C to stop the OVPN client.

  • You can also confirm that you've successfully connected by visiting What Is My Ip Address. You'll see the server's IP address listed.