Save $460 + get an OVPN-tshirt when purchasing the 3-year subscription

Install OpenVPN on Ubuntu via CLI

This guide is also available in Svenska, Deutsch and Norsk

Supported versions: Ubuntu 16.04, 18.04, 20.04

Last updated: February 10, 2020

1. Run as superuser

sudo su

2. Download components

apt-get install openvpn unzip


OVPN is a court-proven VPN service that offers secure internet without country or streaming restrictions, and where ads no longer track your every move.

Learn more

3. Download the configuration you want

4. Enter your login credentials

echo  "CHANGE TO YOUR USERNAME"  >> /etc/openvpn/credentials
echo "CHANGE TO YOUR PASSWORD" >> /etc/openvpn/credentials

5. Start OpenVPN and see that everything works

openvpn --config /etc/openvpn/ovpn.conf --daemon

6. Verify that the connection was successful

Wait about 30 seconds and then run:


You should see something like:

{ "status": true, "ip": "the external ip", "ptr": "PTR for the IP address" }

7. Done

Congratulations! Your device is now protected behind OVPN and will automatically connect on reboots. If you encountered any issues, please send the log file (/tmp/openvpn.log) to our support.