Monday, 16 January 2012

Setup VPN on Ubuntu


New Ubuntu 10.10 release add some features to OpenVPN configuration on Network Manager.
First need install OpenVPN support for Ubuntu.
1) Open Terminal from Applications -> Accessories -> Terminal and use this command to install all:
sudo apt-get install network-manager-openvpn openvpn
techquest99.co.cc
techquest99.co.cc


After install recommend restart your computer , other way you can have some issues with setup.

2) Download and extract your configuration files
techquest99.co.cc
techquest99.co.cc
3) Find and open your OpenVPN config file. For me its ovpn045.ovpn
Under Network Manager go to VPN connections -> Configure VPN
techquest99.co.cc
techquest99.co.cc
4) Click Add under VPN tab
techquest99.co.cc
techquest99.co.cc
5) Choose OpenVPN and click Create
techquest99.co.cc
techquest99.co.cc
6) Enter name and Gateway using config file
Connection name any like StrongVPN (not critical)
Gateway from config file, see image as example
Type should be Certificate (TLS)
techquest99.co.cc
techquest99.co.cc
7) Import certificates and key using your configuration files
User certificate will be ovpnXXX.crt
CA Certificate will be your ca.crt
Private Key will be your ovpnXXX.key
Click Advanced and see next step…
techquest99.co.cc
techquest99.co.cc
8 ) Under Advanced fill port, using OpenVPN configuration file, see image as example
Set Use custom tunnel MTU using same config file, see image as example
Set Use custom UDP fragment size using config file, see image as example
and enable Restrict tunnel TCP Maximum Segment Size option
techquest99.co.cc
techquest99.co.cc
9) Under TLS Authentication tab
check option to Use additional TLS authentication
For Key file import your ta.key file
For Key direction set 1
techquest99.co.cc
techquest99.co.cc
10) Ok under Advanced and Apply to save all
OpenVPN configured and you can close Network Connections
Try to connect choosing StrongVPN(your entered name) from VPN connections
techquest99.co.cc
techquest99.co.cc


Wow!! you’re connected if you your icon changed

techquest99.co.cc
techquest99.co.cc
To close connection use Disconnect VPN… option

Note – If you have OpenVPN to TCP port

you need activate Use a TCP connection option and add correct port from configuration file
techquest99.co.cc
techquest99.co.cc