Installing VPN on Kali Linux

11

VPN on Kali Linux is strange enough not installed and enabled by default which leaves you with a greyed out VPN option panel and a rather difficult, or at least a not straight forward, set-up process if you don’t know how to install VPN. VPN stands for Virtual Private Network and extends your private network over the internet which will cloak your IP address, bypass censorship and encrypt your network traffic. In this tutorial we will install the necessary packages and setup the popular Golden Frog VyprVPN service in Kali Linux.

I’m using VyprVPN from Golden Frog as VPN service for a couple months now on public wireless networks and in foreign countries for example. Their VPN service is fast, reliable and there are many servers/countries to choose from (50+ servers and 200,000 IP addresses). There’s an app for all platforms, including Ios, Android, Windows, Mac and a VyprVPN router app to secure your entire home network. Golden Frog claims to not keep logs for their VPN services and they have great apps available for managing VPN connections.

A new and updated tutorial on installing VPN on Kali Linux 2016 rolling edition is available now.

If you sign up using one of the following links you can get a 50% off for the first month:

Or a 40% discount for an annual subscription:

There is also a 3 day free test period available so you can try their services before you buy them.

Why use VPN?

There are several reasons why you would want to use a VPN service:

  1. VPN cloaks your IP Address and location so you will be anonymous.
  2. Avoid internet censorship, firewalls and access region restricted content.
  3. Encrypt your network traffic (on public Wifi for example).
  4. To hide your identity.

Note that search engines and platform can still recognize you based on cookies or logins for example.

Installing VPN on Kali Linux

Open a terminal and use the following command to install the necessary packages:

apt-get install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome

Type y and enter when being asked to install the packages.

VPN on Kali Linux

Now we need to download the CA certificate from VyprVPN using the following command (one command, ignore white space):

sudo wget -O /etc/openvpn/ca.vyprvpn.com.crt

https://www.goldenfrog.com/downloads/ca.vyprvpn.com.crt

Go to your network manager, go to the VPN tab and click “Add”:

VPN on Kali Linux

Select OpenVPN as connection type.

VPN on Kali Linux

And click create:

VPN on Kali Linux

Enter the following information:

  1. Connection name
  2. Gateway (Different gateways are available from the website)
  3. Set authentication type to password
  4. Username and password

VPN on Kali Linux

Click the browse file button to select the CA certificate we downloaded earlier.

VPN on Kali Linux

The file was downloaded to the following location:

/etc/openvpn/ca.vyprvpn.com.crt

VPN on Kali Linux

Click the save button and we are ready to go!

VPN on Kali Linux

You can start your VPN connection by going to the network manager and select the connection we’ve just added.

VPN on Kali Linux Video Tutorial

Thanks for watching and please subscribe to my YouTube channel for more hacking tutorials :)

Share.

11 Comments

  1. I get this when I try to install them. How do I fix that?
    Need to get 4,178 kB of archives. After unpacking 16.4 MB will be used.
    Err http://http.kali.org/kali/ kali/main libart-2.0-2 amd64 2.3.21-2
    404 Not Found
    Err http://http.kali.org/kali/ kali/main libfcgi0ldbl amd64 2.4.0-8.1
    404 Not Found
    Err http://http.kali.org/kali/ kali/main libgnomecanvas2-common all 2.30.3-1.2
    404 Not Found
    Get: 1 http://security.kali.org/kali-security/ kali/updates/main libstrongswan amd64 4.5.2-1.5+deb7u7 [523 kB]
    Err http://http.kali.org/kali/ kali/main libgnomecanvas2-0 amd64 2.30.3-1.2
    404 Not Found
    Err http://http.kali.org/kali/ kali/main libbonoboui2-common all 2.24.3-1
    404 Not Found
    Err http://http.kali.org/kali/ kali/main libbonoboui2-0 amd64 2.24.3-1
    404 Not Found
    Get: 2 http://security.kali.org/kali-security/ kali/updates/main strongswan-nm amd64 4.5.2-1.5+deb7u7 [58.4 kB]
    Err http://http.kali.org/kali/ kali/main libgnomeui-common all 2.24.5-2
    404 Not Found
    Err http://http.kali.org/kali/ kali/main libgnomeui-0 amd64 2.24.5-2
    404 Not Found
    Err http://http.kali.org/kali/ kali/main network-manager-openvpn amd64 0.9.4.0-1
    404 Not Found
    Get: 3 http://security.kali.org/kali-security/ kali/updates/main ipsec-tools amd64 1:0.8.0-14+deb7u1 [103 kB]
    Err http://http.kali.org/kali/ kali/main network-manager-openvpn-gnome amd64 0.9.4.0-1
    404 Not Found
    Err http://http.kali.org/kali/ kali/main pptp-linux amd64 1.7.2-7
    404 Not Found
    Err http://http.kali.org/kali/ kali/main network-manager-pptp amd64 0.9.4.0-2
    404 Not Found
    Err http://http.kali.org/kali/ kali/main network-manager-pptp-gnome amd64 0.9.4.0-2
    404 Not Found
    Err http://http.kali.org/kali/ kali/main network-manager-vpnc amd64 0.9.4.0-1
    404 Not Found
    Err http://http.kali.org/kali/ kali/main network-manager-vpnc-gnome amd64 0.9.4.0-1
    404 Not Found
    Err http://http.kali.org/kali/ kali/main network-manager-strongswan amd64 1.3.0-1
    404 Not Found
    Fetched 51.4 kB in 7s (6,964 B/s)
    E: Failed to fetch http://http.kali.org/kali/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_amd64.deb: 404 Not Found

  2. Ệfãŵøħø ßëñ on

    E: Package ‘network-manager-openvpn-gnome’ has no installation candidate
    E: Package ‘network-manager-pptp’ has no installation candidate
    E: Package ‘network-manager-pptp-gnome’ has no installation candidate
    E: Unable to locate package network-manager-strongswan
    E: Unable to locate package network-manager-vpnc
    E: Package ‘network-manager-vpnc-gnome’ has no installation candidate

    The above error is what I got. Any help? I’m on Kali 2016.1(rolling)
    Thanks.

  3. When I run the commands, the following prints out;

    E: Package ‘network-manager-openvpn-gnome’ has no installation candidate
    E: Package ‘network-manager-pptp’ has no installation candidate
    E: Package ‘network-manager-pptp-gnome’ has no installation candidate
    E: Unable to locate package network-manager-strongswan
    E: Unable to locate package network-manager-vpnc
    E: Package ‘network-manager-vpnc-gnome’ has no installation candidate

    Anybody who knows how to fix this?

Leave A Reply