Your location: Your IP: Your status:ProtectedUnprotected · To the tests »

OpenVPN on Linux Terminal

Download Perfect Privacy OpenVPN configurations | OpenVPN on Linux Terminal

Next change into the OpenVPN directory:

cd /etc/openvpn/

and get the Perfect Privacy configuration with the following line.

wget --content-disposition https://www.perfect-privacy.com/downloads/openvpn/get?system=linux

If you have special requirements, you can download OpenVPN configurations with advanced options in the download area.

Unpack OpenVPN configurations archive | OpenVPN on Linux Terminal

Now unzip the downloaded file. Use -j to to put the content directly into /etc/openvpn/.

sudo unzip -j linux_op24_udp_v4_AES256GCM_AU_in_ci.zip

Create /etc/openvpn/password.txt | OpenVPN on Linux Terminal

If you do not want to enter your credentials every time you establish a connection, you can create a text file in which user name and password are stored.

sudo vim password.txt

In the text file, enter your username and password, each in a single line, like shown on the screenshot to the left.

Edit configuration file of desired server | OpenVPN on Linux Terminal

Now you will need to edit the server configuration file so it instructs OpenVPN to use the password.txt file for the credentials. The server configurations always have the extension .conf and are named after the Location. If you want to connect to amsterdam.perfect-privacy.com, open Amsterdam.conf in your editor and in the line auth-user-pass add password.txt so the line reads like in the screenshot.

OpenVPN connection established | OpenVPN on Linux Terminal

OpenVPN is now configured and you can start a connection with the following command:

sudo openvpn /etc/openvpn/Amsterdam.conf

If everything went correctly, it should say “Initialization Sequence Completed” at the end. You can terminate the connection by using CTRL-C. For productive usage you will probably want to run this in a screen so you can detach after the connection was established.

You can use our check IP site to verify that the OpenVPN connection was established and is working correctly:

wget -q -O - https://checkip.perfect-privacy.com/csv

VPN
?!
This website uses cookies to analyze the traffic and to control our advertising. By using this site, you agree to the use of cookies. More information can be found in our privacy policy.