OVPN configuration files with Linux Mint 17 the easy way

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
CarlPH

OVPN configuration files with Linux Mint 17 the easy way

Post by CarlPH »

There was a method where you have to copy and paste certain parts of ovpn config files so that the linux network manager
will be able to use them. But is such a pain for linux noobs such as myself. Good thing someone made a openvpn-config-splitter (by Espen Hovlandsdal)
which does most of the work for you. I only tested it with VPN book configuration files so feel free to test it with other config files.

1. Go to http://www.vpnbook.com/ and download http://www.vpnbook.com/free-openvpn-acc ... PN-US1.zip

2. Extract the files

Follow these steps to split the OVPN file (taken from his blog: http://tech.vg.no/2014/02/28/openvpn-co ... k-manager/)

a.) Install OpenVPN along with the OpenVPN extensions:

sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome

b.)Make sure you’ve got node.js installed
(apt-get install nodejs), and run npm install -g openvpn-config-splitter (you might have to use sudo to install globally).

c.) Run ovpnsplit ~/openvpn/vpnbook-us1-udp53.ovpn

openvpn is the path to your configuration file just replace it as necessary
I used udp53 file because its the one that connected when I tested it.
I also got this warning message which is just ignored: Warning: could not find tlsAuth - configuration might not work as expected

If done right you should be able to see four separate files "ca.crt", "client.key", "user.crt" and a "vpnbook-us1-udp53.split.ovpn"

3. Open network connections, click add

4. select "import a saved vpn configuration"

5. select the altered configuration file with split in its name "vpnbook-us1-udp53.split.ovpn"

6. at the VPN subtab follow these settings:

type: Password with certificate TLS
username: vpnbook
password: get it from vpnbook website
User certificate: user.crt
CA certificate: ca.crt
Private key: client.key
Private key password: leave it blank

Click save and try to connect!
jhehe

Re: OVPN configuration files with Linux Mint 17 the easy way

Post by jhehe »

My VPN provided uses conf files, what do I enter into 'gateway'? I pretty much go into Network Manager and go to the VPN option. It asks for Ovpn or PPTP, I select Ovpn. The window pops up for finding my cert file, credentials, and so on. However, I do not quite understand what to put for the 'gateway' field.
robbe-hb

Re: OVPN configuration files with Linux Mint 17 the easy way

Post by robbe-hb »

CarlPH wrote: b.)Make sure you’ve got node.js installed
(apt-get install nodejs), and run npm install -g openvpn-config-splitter (you might have to use sudo to install globally).
The package npm is also needed so execute "sudo apt-get install npm" too before trying to run the npm-command listed above!
satif04

Re: OVPN configuration files with Linux Mint 17 the easy way

Post by satif04 »

Thanks a lot for this informative article.In my opinion it is the Best VPN Solution available on internet for Linux Mint !!!
Post Reply

Return to “Tutorials”