Skip to content

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

11/08/2013

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:

www.ivpn.net

– 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

downloads

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

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.

ivpn unzip

*******

Step 4 – Import your VPN routes into Network Manager

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

icon

Scroll down

VPN Connections   –  (towards end of page)

Configure VPN

IMPORT Button

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.

Save

******

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

switzerland

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

*******

Step 8 – TEST for a Tunnel connection

ifconfig

tun0 connection will be listed

tun0 vpn

*****

IVPN – Test of  OpenVPN connection

This is the connection speed you should be expecting.

www.ivpn.net

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 http://ftp.de.debian.org/debian wheezy main

sources

Now update all the repo’s.

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://ftp.uk.debian.org/debian stable main contrib
deb-src http://ftp.uk.debian.org/debian stable main contrib
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb-src http://http.kali.org/kali kali main contrib non-free

deb http://repo.kali.org/kali kali-bleeding-edge main

deb http://ftp.de.debian.org/debian wheezy main

******

apt-get update

*****

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

https://uwnthesis.wordpress.com/2013/05/17/which-is-the-safest-vpn-on-the-market-which-vpn-cares-most-for-your-privacy/

 

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

https://uwnthesis.wordpress.com/2014/07/20/kali-first-things-to-do-after-installing-kali-debian-linux-the-visual-guide/

******

KALI – How to easily install FLASH, JAVA, NAUTILUS, METASPLOIT, ETTERCAP & OPENVAS- LAZY KALI SCRIPT – The Visual Guide

https://uwnthesis.wordpress.com/2013/07/31/kali-how-to-easily-update-kali-lazy-kali-script/

5 Comments
  1. Joe permalink

    couldnt get the packages to install

    Like

    • Hi Joe,

      What error message did you get?

      Like

      • 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.

        Like

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

    http://www.ironbugs.com/2016/02/anonymity-setup-vpn-service-in-kali.html

    Like

Trackbacks & Pingbacks

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

Leave a comment