CyberGhost is one of the best VPNs for protecting privacy and offering anonymity when out and about online. The services is second to none, while its connectivity speeds and very secure servers are more than enough for even the most critical of internet speedsters. Its services and installer are mainly geared toward Windows users, though, so what can the Linux user do? Well, CyberGhost can also be used within the naturally more secure environment of Linux, it just needs a helping hand.

To Begin With...

First off, we'll assume you have a CyberGhost account, and that the version of Linux you're using is up to date and has all the latest patches and whatnots installed. If a11'swell, then login to your CyberGhost account through the CyberGhost web pages. Once you've logged in, click on the entry on the left-hand side menu titled Smart Phones& Other Devices, and then select the Other Devices computer icon. When the view changes, click on the Select Protocol drop down menu and choose OpenVPN from the list of available protocols. Next, choose the country you want to mask your IP address as, such as the UK or USA, and the OS (obviously Linux in this case) from the options.
Name:  Installing openvpn in MINT is really easy.jpg
Views: 3670
Size:  46.4 KB

Now enter your CyberGhost username and password in the boxes provided, and make a note (although it's not always necessary) of the server address as it's displayed in the area above the username. Finally, click on the 'Download Configuration' button to get hold of the configuration file used when you'll come to create the OpenVPN session under Linux.

Installing OpenVPN in Linux
The next stage is to get hold of OpenVPN and install it onto your Linux system. In this case we're going to be using our trusty Linux Mint machine for the job. To install the latest version of OpenVPN, open up the Terminal and enter:
sudo apt-get install openvpn
sudo apt-get install openvpn bridge-utils
sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome
sudo restart network-manager
This will install the latest version (2.3.2), with all the necessary dependencies. If you're using an RPM based Linux distro, then go to and download the latest Tarball, and enter the following into the Terminal:
rpmbuild -tb openvpn-2.3.2.tar.gz
Once you have the .rpm file unpacked, you can install it with the following command:
rpm -ivh openvpn-2.3.2.rpm
Of course, not all Linux distros are created equally so consult the usual wealth of documentation that comes with your distro on how to install OpenVPN. You may also be required to install some extras and dependencies, such as Open SSL, but you're best looking into the OpenVPN help pages for particular information.
Name:  After installation, just click on a new network connection, and choose open VPN.jpg
Views: 3429
Size:  22.1 KB

Running With CyberGhost in OpenVPN

With OpenVPN now installed, we can get back to the act of running our connection through the CyberGhost account and servers. However, before we do this we'll need to open up the file we downloaded from the CyberGhost login page at the start of this How To. What we're doing here is creating a set of certificates and a private key; and to do that we need to:

  • Copy the section between <ca> and </ca> into an empty text file and save this file as 'ca.crt'.
  • Copy the section between <cert> and </cert into an empty text file and save the file as 'cert. crt'.
  • Copy the section between <key> and </key> into an empty text file and save the file as 'key.key'.

With these new files copied, and placed in a directory you'll remember, you can now continue.
First, we'll need to create a new VPN network connection. In Linux Mint we can do this by clicking on the network icon in the Panel along the bottom of the screen, and choosing 'Network Settings' from the menu. Or by clicking on 'Menu' and typing in Network and clicking on the Networking entry that appears.

With the Networking properties window open, click on the Plus sign in the box with the available networks present, and select VPN from the Interface option. Now click the 'Create' button and choose OpenVPN from the available options in the menu.

Name:  Enter the right settings and save the connection.jpg
Views: 3371
Size:  17.6 KB

In the next window type in a 'Connection Name', enter the server address you noted before in the field 'Gateway' and in the 'Authentication' section, complete the information as follows:

Type: Choose 'Password with certificates (TLS)'
User name: Your CyberGhost user name
Password: Your CyberGhost password
User certificate: Locate the Cert.crt created from the CyberGhost file in the section above
CA certificate: Locate the Ca.crt created from the CyberGhost file in the section above
Private Key: Locate the Key.key created from the CyberGhost file in the section above

Next. Click on the 'Advanced' button, located in the right bottom of the window and tick the following options with these settings:
Use custom gateway port: 9081
Use LZO data compression
Use a TAP device
Use custom tunnel Maximum Transmission Unit (MTU): 1500
Use custom UDP fragment size: 1300
In the Security tab, enter:
Cipher: AES-256-CBC
HMAC Authentication: MD-5
Click the OK button when you're done, followed by the Save button, and don't forget to name the VPN Connection in the top most box.
Name:  Do not forgot the Cipher and HMAC authentication.jpg
Views: 3358
Size:  9.1 KB

Browse with Anonymity

That should do the trick. Providing you've entered the username, password and the relevant settings of the various options correctly, and you've used the right certificates and key according to the sections from the downloaded CyberGhost file, then you should now be anonymous while surfing.

All you need to do is activate the CyberGhost entry whenever you want to be anonymous, and if you want to use a different country other than the UK, simply start at the beginning again and choose a US server (or wherever) for the connection information and keys.