Ubuntu - OpenVPN

connecting to an OpenVPN from Ubuntu client

Recently my employer changed it's VPN from being a Windows PPTP connection to an OpenVPN configuration.   For Windows users it was no problem, they supplied a preconfigured installation of the OpenVPN client for Windows which worked out of the box.

However, when i came to trying to get up and running on a Ubuntu machine i had a few problems.   My employer had supplied me with a .ovpn config file that i was supposedly going to be able to just give to Ubuntu and it would work - it didn't.

The is what i had to do :-

1) first of all i had to make sure that the network manager applet was aware of OpenVPN :-

sudo apt-get install network-manager-openvpn

2) next using the network menu from the top right of the Ubuntu desktop i chose VPN Connections > Manage Connections > Import, and selected my .ovpn config file.   The import looked to work, however, when i tried to save it the "Save" button was greyed out(disabled) so i couldnt.   After a bit of research and trying different things i found that :-

a) remember to make sure any key/crt files referenced in the .ovpn are file are in the same directory as the .ovpn file(or are at the location, relative or absolute, specified) .... otherwise the creation of the vpn connection wont find them, and consquently wont save an incomplete connection.   In my case, i had to go get the files from a Windows machine where the Windows client was installed, and copy them into place on the Ubuntu machine.

b) check that if you've set "save" for password, that you have entered a password - again if you've chosen save, and not entered the password, then you'll have an incomplete connection.

I'm sure there's other gotchas with getting this set up, but the above worked for me.

Friday 28 June 2013 at 06:23 am | | Linux

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.