Support schedule

Monday to Friday 08:00 AM to 05:00 PM. (MET)
Our current response time is *48h but we usually manage to get a faster response.
*esclated tickets might require more time

 Most Popular
Help & FAQ: Linux Installation
Configure OpenVPN for Linux Mint
Posted by Uli Brügmann on 25 February 2013 11:53 AM

On Linux, CyberGhost VPN can be used with a native OpenVPN installation, if the following requirements are met:

Step 1

Visit your CyberGhost VPN online account.

Log in ...

Log-in with your user data and click in the upper menu on the entry 'My Devices'. 

Click on 'My Devices'

Specify the device type, in this case it's 'Other devices'.

Click on 'Other Devices'

Specify the wanted OpenVPN protocol and make sure you have chosen 'Linux' as the 'Operating System' in the drop down list right below the protocol list.

  • OpenVPN (UDP): UDP allows higher speeds with VPN connections, but can lead to broken downloads in certain cases.
  • OpenVPN (TCP): TCP allows more stable connections, but is a bit slower than UDP. Choose this option, if UDP produces connection losses.

Choose OpenVPN protocol type and operating system 

Since native protocol connections may only be used with exactly one server you now have to choose the country you want to surf from (the server to be used in this country will be chosen by CyberGhost automatically). 

Specify location

Once done, note the following data shown beneath the drop down lists. You will need this data to configure your OpenVPN connection:

  • Server: This is the address of the country you want to surf from, e.g. 'us-openvpn.cyberghostvpn.com'*.
  • Username: This is your CyberGhost user name (account name).
  • Password: This is your CyberGhost password you use for your account (it will not be shown here).

Note your configuration data and download the config file

The next step is to download the configuration file. For that please click on 'Download Configuration'.

Step 2

There are several OpenVPN software packages for different Linux platforms like RedHat, Fedora, CentOS and Ubuntu. If your Linux distribution has no OpenVPN built in and does not provide you with the appropriate package, you'll find various setup files or packages for a manual install on the OpenVPN project Website.

Note: As we all know there are seldom two Linux distribution built the same way; therefore the following instructions might be of no help for you. If that's the case, please consult the help documentation of your distribution. Furthermore the following links might also help you out:

Don't forget: You will also need to install the 'network-manager-openvpn' using Synaptic, which will help you adding and managing your various VPN connections. You may also be in need to install more and different software and consider dependencies, e.g. OpenSSL, so an open documentation on the side might come in handy.

To install OpenVPN for example with Linux Mint, open a terminal and enter the following commands:

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

Alternatively consult the respective repository of your distribution and search for OpenVPN.

If you use a RPM based distribution, go to goo.gl/MI3ndm, download the latest Tarball and type this command in a terminal: 

rpmbuild -tb openvpn-2.3.2.tar.gz (or whichever version you downloaded)

Now decompress the downloaded CyberGhost configuration file and copy it into a subfolder inside the OpenVPN 'config' folder. Call it whatever you like, 'CyberGhost' for example.

Step 3

Now use the network manager to configure your new connection - but before that, please open the downloaded 'CyberGhost.ovpn' file with a text editor, extract the following passages and copy the respective content into three new different files:

  1. Copy the section <ca> (all between <ca> and </ca>) into an empty text file and safe this file as 'ca.crt'.
  2. Copy the section <cert> (all between <cert> and </cert) into an empty text file and safe the file as 'cert.crt'.
  3. Copy the section <key> (all between <key> and </key>) into an empty text file and safe the file as 'key.key'.

Following is an example of how to configure OpenVPN with Debian 7: First, click on the network manager in the menu bar. Choose 'VPN connections > Configure VPN'.

In the tab ‘VPN’ click on 'Add'.

Choose 'OpenVPN' as the 'Connection type' and click on 'Create'.

In the next window type in a 'Connection Name', enter the server address you noted before, e.g. 'us-openvpn.cyberghostvpn.com'*, in the field 'Gateway' and take care of the section 'Authentication'.

  • Type: Choose 'Password with certificates (TLS)'
  • User name: Your CyberGhost user name.
  • Password: Your CyberGhost password.
  • User certificate: Enter here the path to the user certification file (the above mentioned file called 'cert.crt')
  • CA certificate: Enter here the path to the CA certification file (the above mentioned file called 'ca.crt')
  • Private Key: Enter here the path to the key file (the above mentioned file called 'key.key')

 

Now click on 'Advanced' on the right bottom of the window and check all of these options (and uncheck the rest), resp. change settings:

  • Tab 'general':
    • Use custom gateway port: 9081
    • Use LZO data compression
    • Use a TAP device
    • Use custome tunnel MTU: 1500
    • Use custom UDP fragment size: 1300
  • Tab 'Security'
    • Cipher: AES-256-CBC
    • HMAC Authentification: MD-5

Back in the network manager you now should have an entry with your new OpenVPN connection.

Choose the entry via your menu ('VPN connections > Connection Name') and you're in:

 

Update

On some systems things don't work out like they should, mostly because of the network manager. If that's the case with your configuration, please try the following:

  • First of all: DON'T add a new OpenVPN connection in the network manager, but instead click on 'Import'.
  • Import the downloaded CyberGhost file
  • Proceed as described above ... 

Variant 2

Completely without network manager, therefore with OpenVPN directly, is another alternative to get stubborn configurations to work:

  • Type in 'apt-get install openvpn' in a console window
  • Copy the config file manually to '/etc/openvpn/openvpn.ovpn'
  • Type 'service openvpn start'

 

For each country, you want to surf from, you need to download its own OVPN file from your account management and rename it before copying it to your computer, e.g. to 'CG_xxx.ovpn', where 'xxx' will be replaced by the respective country name. For two different countries you need for example do the following steps:
  1. Specify device, protocol and operating system
  2. Choose a country, e.g. USA
  3. Download the configuration file
  4. Rename it from ‘CyberGhost.ovpn’ to ‘CG_USA.ovpn’.
  5. Choose the next country, e.g. Romania
  6. Download the configuration file
  7. Rename it to ‘CG_RO.ovpn’.
  8. etc. ...

 

 


* In all Premium or Premium Plus plans it's necessary to enter the address in the shape of 'country-protocol.cyberghostvpn.com', e.g us-openvpn.cyberghostvpn.com'. With other subscription types such as Special Editons or promotions a slightly changed variation of this address takes place:

Plan name

Customized URL

Classic

us-cls-openvpn.cyberghostvpn.com

COMPUTER BILD-Edition

us-cbe-openvpn.cyberghostvpn.com

 

German/Romanian package

us-cbbe-openvpn.cyberghostvpn.com

Promo Special Edition 2

us-pse2-openvpn.cyberghostvpn.com

Promo Special Edition 3

us-pse3-openvpn.cyberghostvpn.com

Promo Special Edition 4

us-pse4-openvpn.cyberghostvpn.com

Special Edition 2

us-se2-openvpn.cyberghostvpn.com

Special Edition 3

us-se3-openvpn.cyberghostvpn.com

WorthOfPrivacy Edition

us-wop-openvpn.cyberghostvpn.com

 

 

(126 vote(s))
This article was helpful
This article was not helpful

© CyberGhost VPN