1. Home
  2. Knowledge Base
  3. VPN Service
  4. Installing OpenVPN via CLI for Ubuntu

Installing OpenVPN via CLI for Ubuntu

Step 1

For the installation to work, you should have OpenVPN and curl installed. Open a terminal and type:

sudo apt-get install openvpn curl

Step 2

Download the installation file instal.sh

Step 3

To start the installation, run the file ./install.sh and follow the instructions. For the installation to work, you must run it as root, you must also be root to run OpenVPN, this is because OpenVPN will create a tunnel interface when connecting.

Step 4

Edit /etc/openvpn/privatvpn.conf and change the server you want to connect to.

You’ll find the server list here: Server list

Was this article helpful?

Related Articles