View Full Version : KALI – How to install OpenVPN for Linux – The Visual Guide

2013-08-17, 23:15
How to install OpenVPN on Kali.

Step 1 – Download OpenVPN

Open a Root Terminal and install these 7 packages:
apt-get install network-manager-openvpn
apt-get install network-manager-openvpn-gnome
apt-get install network-manager-pptp
apt-get install network-manager-pptp-gnome
apt-get install network-manager-strongswan
apt-get install network-manager-vpnc
apt-get install network-manager-vpnc-gnome


Step 2 - Download OpenVPN certificates

Using IVPN as a provider we need:

- User name (always starts with iVPN)
- Password
- 2 Certificates and 1 Key
- Multiple routes called .ovpn files
With IVPN, these .ovpn files are under

Download Tab

Configuration files (Windows, OSX and Linux)

Save file

http://uwnthesis.files.wordpress.com/2013/08/downloads.png?w=497&h=288 (http://uwnthesis.files.wordpress.com/2013/08/downloads.png)
Zipped file is saved to /tmp

http://uwnthesis.files.wordpress.com/2013/08/ivpn-zip.png?w=497 (http://uwnthesis.files.wordpress.com/2013/08/ivpn-zip.png)

Step 3a – Make a VPN directory to keep things ordered

(Trust me on this… you’ll be so glad)
mkdir iVPN

cp /tmp/iVPN* ~/iVPN

http://uwnthesis.files.wordpress.com/2013/08/cp-zip-file.png?w=497&h=228 (http://uwnthesis.files.wordpress.com/2013/08/cp-zip-file.png)
check that it’s copied over fine…before unzipping.
Step 3b – Extract the zipped VPN files

unzip iVPN-conf-1.5.zip

Notice the names of the files unzipped…
There are 3 critical OpenVPN files that you’ll need to be able to locate.
ca.crt = certificate authority certificate

client1.crt = client certificate (ie your certificate)

client1.key = client key (ie your key)


.ovpn are configuration files that contain the route files, IP’s of the gateways etc.

They specify routes such as direct to Netherlands, or Multihop, USA to UK.
As the files are unzipped, you’ll see many single or multi hop routes appear.
http://uwnthesis.files.wordpress.com/2013/08/ivpn-unzip.png?w=497&h=415 (http://uwnthesis.files.wordpress.com/2013/08/ivpn-unzip.png)

2013-08-17, 23:16
Step 4 – Import your VPN routes into Network Manager Click on Network Icon (next to Root – Top Right hand corner) http://uwnthesis.files.wordpress.com/2013/08/icon.png?w=497 (http://uwnthesis.files.wordpress.com/2013/08/icon.png)
Scroll down
VPN Connections - (towards end of page) Configure VPN IMPORT Button http://uwnthesis.files.wordpress.com/2013/08/vpn-configure.png?w=497 (http://uwnthesis.files.wordpress.com/2013/08/vpn-configure.png) IMPORT > Browse to Netherlands.ovpn file Remember why we saved all the files under /iVPN… so that we could easily locate them…
OPEN Button http://uwnthesis.files.wordpress.com/2013/08/import-netherlands.png?w=497&h=117 (http://uwnthesis.files.wordpress.com/2013/08/import-netherlands.png)
The .ovpn will recognise the Netherlands gateway, your Authentication type is “Passwords with Certificates (TLS)” Just fill in your user id and password.
Leave Private Key Password BLANK – don’t fill this in.
****** Step 5 – Fill in your User Name and password http://uwnthesis.files.wordpress.com/2013/08/ivpn-singlehop.png?w=497&h=398 (http://uwnthesis.files.wordpress.com/2013/08/ivpn-singlehop.png)

2013-08-17, 23:18
Step 6 – Test the VPN 1. Click the Network Icon next to Root. 2. VPN Connections – and all your VPN routes will be displayed. 3. Connect and ensure that you’ve used the right password etc. VPN Login Message will confirm you’ve connected
http://uwnthesis.files.wordpress.com/2013/08/vpn-login-success.png?w=497&h=279 (http://uwnthesis.files.wordpress.com/2013/08/vpn-login-success.png)
****** Step 7 – Now import the other .ovpn files 1. Select Network Icon > VPN Connections > Configure VPN 2. Import > .ovpn for your route eg Switzerland.ovpn > password form will start It will be headed iVPN – Switzerland 3. Now fill in your username and password (but not the private key password – leave this blank). 4. Save http://uwnthesis.files.wordpress.com/2013/08/switzerland.png?w=497&h=409 (http://uwnthesis.files.wordpress.com/2013/08/switzerland.png)
That’s it!! You have multiple VPN routes configured.
******* Step 8 – TEST for a Tunnel connection ifconfig tun0 connection will be listed http://uwnthesis.files.wordpress.com/2013/08/tun0-vpn.png?w=497&h=160 (http://uwnthesis.files.wordpress.com/2013/08/tun0-vpn.png)

OpenVPN works on Android, Mac, Linux as well as Windows.

Alton Jhon
2013-10-20, 06:47
Thank you so much for the post. Here i wanna say, i m using Security Kiss & if anyone wanna use SK u can follow the tut. Also u can found details about installation on