OpenVPN on Linux via CLI Print

  • openvpn, linux, command line, how to, ubuntu, centos, fedora, mint
  • 3


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

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 from HERE
3.
Extract the .ZIP file

3. 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 from the vpn press ctrl + c 

NOTE: YOU MUST leave your terminal running otherwise you will get disconnected

It is good idea to visit DNSLEAKTEST to check weather your computer has DNS leaks.  If you do, please read THIS
 
 

Was this answer helpful?

« Back