Skip to content

KALI – How to install OpenVPN for Linux – The Visual Guide


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


Zipped file is saved to /tmp

ivpn zip


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

cp zip file

check that it’s copied over fine…before unzipping.


Step 3b – Extract the zipped VPN files


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.

ivpn unzip


Step 4 – Import your VPN routes into Network Manager

Click on Network Icon (next to Root – Top Right hand corner)


Scroll down

VPN Connections   –  (towards end of page)

Configure VPN


VPN Configure

IMPORT >  Browse to Netherlands.ovpn file

Remember why we saved all the files under /iVPN… so that we could easily locate them…

OPEN Button

import netherlands

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

ivpn singlehop


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

vpn login success


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


That’s it!! You have multiple VPN routes configured.


Step 8 – TEST for a Tunnel connection


tun0 connection will be listed

tun0 vpn


IVPN – Test of  OpenVPN connection

This is the connection speed you should be expecting.

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


Good to do – Check your repo source files are fully configured

update your sources list (/etc/apt/source.list)

cd /etc/apt

ls -lt

Look for a file called sources.list

apt directory

gedit sources.list

add this line to the file and save:

deb wheezy main


Now update all the repo’s.

## Security updates
deb kali/updates main contrib non-free
deb stable main contrib
deb-src stable main contrib
deb /kali main contrib non-free
deb /wheezy main contrib non-free
deb kali-dev main contrib non-free
deb kali-dev main/debian-installer
deb-src kali-dev main contrib non-free
deb kali main contrib non-free
deb-src kali main contrib non-free

deb kali-bleeding-edge main

deb wheezy main


apt-get update


Which is the Safest VPN on the Market?  Which VPN do I use?


KALI – First things to do after installing Kali Debian Linux – The Visual Guide



  1. Joe permalink

    couldnt get the packages to install


    • Hi Joe,

      What error message did you get?


      • Daniel Ramdass permalink

        I will assume he got what I got, which is that the package doesn’t have an installation candidate.
        It says that it is not available, but is referred to by another package.


  2. Setup VPN on Kali Rolling works well too in this article >


Trackbacks & Pingbacks

  1. KALI – How to install Flash for Kali Linux – The Visual Guide | University of Wales, Newport: Information Security and Privacy

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: