Installing VPN on Kali Linux

19

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 discount:

Or the following offer with 25% off for annual accounts:

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.

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”:

Select OpenVPN as connection type.

And click create:

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

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

The file was downloaded to the following location:

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

Click the save button and we are ready to go!

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.

19 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?

  4. I have a problem.
    I’ve entered my user & pass, and when i click on connect, after a long connecting duration, it will be disconnected.
    i use kali kde plasma.
    help please

  5. It does not work:
    apt-get install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run ‘apt –fix-broken install’ to correct these.
    The following packages have unmet dependencies:
    google-chrome-stable : Depends: libappindicator3-1 but it is not going to be installed
    Recommends: libu2f-udev but it is not going to be installed
    network-manager-openvpn-gnome : Depends: network-manager-openvpn (= 1.8.10-1) but it is not going to be installed
    network-manager-pptp : Depends: pptp-linux but it is not going to be installed
    network-manager-strongswan : Depends: strongswan-nm (>= 5.5.1-1) but it is not going to be installed
    steam-launcher : Depends: python-apt but it is not going to be installed
    Recommends: jockey-common but it is not installable
    E: Unmet dependencies. Try ‘apt –fix-broken install’ with no packages (or specify a solution).

  6. I follow as you have told and in the end it is asking for a login keyring to authenticate and i typed the password which i provided during the setup but still it is showing the wrong password. Pls help.

  7. well wisher on

    It keeps asking for password multiple time and when you enter it all the time, there is an error message saying “timed out”

  8. please i installed and got the CA certificate and set up the VPN. but anytime i connect to my WiFi router, it gives a 404 error…..please what do i do to fix this, please any one help!

Leave A Reply

Exit mobile version