OpenVPN via CLI Linux

To connect to an OpenVPN Server from a Linux client computer, you need to follow these steps
OpenVPN Server Profiles

Download Here

  1. Install OpenVPN client for Linux. The easiest way to install an OpenVPN client is to use the package management system for your particular Linux distribution.
    Run one of the following commands (as root):
     
    Fedora/CentOS/RedHat:

    yum install openvpn

    Ubuntu/Debian:

    sudo apt-get install openvpn
  2. Download the linux openvpn server profiles
  3. Extract the .ZIP file
  4. Open up Terminal > Type in sudo openvpn –config /config/file/location/path (openvpn command needs to be run as root/su)
    For example:

    sudo openvpn --config /home/username/Downloads/serverprofile.opvn

    linux-openvpn-terminal 

  5. Enter in the local root/su account password
  6. Enter in your VPN username (not your email) and password
    linux-terminal-openvpn-username-and-password 

If connected sucessfully you should see in your terminal window on the last line “Initialization Sequence Complete”. If you see any warnings/messages about “PUSH” please ignore.
 
linux-openvpn-Initialization-Sequence-Complete

To Disconnect

Press CTRL + C

Important

YOU MUST leave your terminal running otherwise you will get disconnected

Updated on November 6, 2018

Was this article helpful?

Related Articles