OVPN configuration files with Linux Mint 17 the easy way

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

OVPN configuration files with Linux Mint 17 the easy way

Postby CarlPH on Sat Jun 28, 2014 9:17 pm

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!
CarlPH
Level 1
Level 1
 
Posts: 7
Joined: Sat Jun 28, 2014 7:36 pm

Linux Mint is funded by ads and donations.
 

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

Postby jhehe on Tue Jul 29, 2014 9:44 am

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.
jhehe
Level 1
Level 1
 
Posts: 13
Joined: Sat Feb 16, 2013 6:45 pm

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

Postby robbe-hb on Sat Aug 16, 2014 10:42 am

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!
robbe-hb
Level 1
Level 1
 
Posts: 1
Joined: Sat Aug 16, 2014 10:28 am


Return to Tutorials / Howtos

Who is online

Users browsing this forum: Chriskmint and 9 guests