How to setup vpn on Linux

Linux systems can run with or without GUI (Graphical Users Interface). In this guide, we're going to address both methods on a Ubuntu system and walk you through all the steps for connecting to our VPN servie. Regardless of your linux distribution, the steps are the same, with the exception of the program install syntax (apt-get/yum)

Ubuntu with GUI

1. Log into at
2. Go to Downloads\Config & Certs
3. Download Certificates and unzip them.
4. Download the config files you want to use.
5. On your linux machine, open a terminal by pressing CTRL+ALT+T

sudo apt-get install network-manager-openvpn openvpn

6. Go Network connections > VPN Connections > Configure VPN

VPNBaron OpenVPN Linux

7. Select Import and add one of the downloaded config files

VPNBaron OpenVPN Linux VPNBaron OpenVPN Linux

8. Select Authentication Type : Password
9. Insert your VPNBaron username and password. You can see them in the VPN Credentials Email that was sent once you joined.
10. Add the CA certificate 

VPNBaron OpenVPN Linux

11. Click Advanced and browse to TLS Authentication
12. Check Use additional TLS authentication, and your TA.key file and set key direction to 1. Click OK

VPNBaron OpenVPN Linux

13. Click Save
14. To connect , go to VPN Connections and select your newly added connection. 

VPNBaron OpenVPN Linux

15. For good measure, open a browser and test your ip at

Headless Ubuntu system (no GUI)

1. First, we need to install the OpenVPN clinet 

sudo apt-get install openvpn

2. Now, we need to download the config files. You can replace the domain with any domain from our public list

wget -O "FR2.VPNBARON.ovpn" 

3. Connect to the VPN server. make sure to include the path of the config. Please note that if you're connected via ssh to the server, your session will be closed and you will be unable to connect until the vpn session is closed. 

sudo openvpn --config "FR2.VPNBARON.ovpn"  

4. Insert your VPNBaron user and password.
5. Done! You're connected!

Was this answer helpful?

 Print this Article

Also Read

iPhone and iPad VPN Guide

This is a step-by-step, image tutorial for installing VPN on your iOS device.1. Open the AppStore...

DD-WRT Router VPN Setup tutorial

Access your router by opening  After login in with your router user and...

How to connect to VPN on mac

Installing VPN Baron on OSX can be done in two ways. Automatic VPN install We've created a...

Setup VPN on Android

Public wifi is risky business! Every time we connect to the network from the Starbucks,...

Powered by WHMCompleteSolution