Enable VPN on Kali Linux – fix VPN grayed out problem

Fix VPN grayed out problem and enable VPN on Kali Linux

A virtual private network (VPN) extends a private network across a public network, such as the Internet. It enables a computer to send and receive data across shared or public networks as if it is directly connected to the private network, while benefiting from the functionality, security and management policies of the private network. Enable VPN on Kali Linux - blackMORE Ops - 0A VPN is created by establishing a virtual point-to-point connection through the use of dedicated connections, virtual tunneling protocols, or traffic encryptions. On Kali Linux, by default VPN options are grayed out. This guide will show users how to install necessary packages to fix VPN grayed out issue and enable VPN on Kali Linux. A second guide was added to show how to setup VPN on Kali Linux. 

A virtual private network connection across the Internet is similar to a wide area network (WAN) link between sites. From a user perspective, the extended network resources are accessed in the same way as resources available within the private network. Through VPN you can access your private network over Internet.

VPNs allow employees to securely access their company’s intranet while traveling outside the office. Similarly, VPNs securely connect geographically disparate offices of an organization, creating one cohesive network. VPN technology is also used by Internet users to connect to proxy servers for the purpose of protecting personal identity and location. [Source:WikiPedia]

Why use VPN – benefits?

Here’s my top 11 reasons why you would want to use VPN services.

  1. VPN provides Privacy and cloaks your IP address.
  2. Use any network (public or private or free WiFi) with encryption
  3. Login to your home or Work network from anywhere with confidence.
  4. Bypass censorship and content monitoring.
  5. Browse and bypass Firewall and censorship policy at work or Anywhere!
  6. Access region restricted services from anywhere (i.e. Youtube videos, NetFlix or BBC Player etc.)
  7. Transfer or receive files with privacy.
  8. Hide your voice/VOIP calls.
  9. Use Search Engines while hiding some of your identity.
  10. Hide yourself
  11. Cause you like to be anonymous.

As you can see from the list above, VPN not necessarily hides everything. Search engines can probably still recognizes you based on your cookies, previous browsing behavior, account sign-in (duh!), browser plug-ins (i.e. Alexa, Google Toolbar etc.).

VPN grayed out problem on Kali Linux

By default the VPN section is grayed out on Kali Linux. While this can be a easy fix, those who are not familiar with packages required for VPN, can get confused and with so many websites around giving different advises, it can be a problem identifying the correct info. I will try to provide a short and concise guide with explanation to my best ability.

Enable VPN on Kali Linux - blackMORE Ops - 1

Read below on how to enable VPN (by enabling VPN you actually fix VPN grayed out issue on Kali Linux). Screenshot below shows the Grayed out VPN +Add button on a default Kali Linux installation.

Enable VPN on Kali Linux - blackMORE Ops - 2

Enable VPN on Kali Linux

First of all fix you repositories. Use Kali Linux Official repositories only. Guide to do that is here.

Like I said before, this is very simple actually. Just run the following command as root and you’re all set.(and of course you need to have the correct repositories).

aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome

Enable VPN on Kali Linux - blackMORE Ops - 3

I think I owe some explanation on why I am using aptitude instead of apt-get, why I am using -r flag and why I am not restarting the Network Manager.

By using aptitude -r install, I am ensuring that it installs all packages as mentioned above along with any recommended packages (total download size is very small i.e. 1969kB, so nothing to worry about).

The reason I am not restarting Network-Manager is because aptitude would do it for you. Why do it twice, right?

Once installation is finished, go back to Network ICON on top right > Network Connections > VPN TAB and now +Add button is not grayed out anymore.

Enable VPN on Kali Linux - blackMORE Ops - 4

So let’s check what you get when you press the +Add button.

Check Also

124 legal hacking websites to practice and learn - blackMORE Ops -1

124 legal hacking websites to practice and learn

Joe Shenouda is well known in The Netherlands as “The Netdetective” who has extensive experience …

Microsoft Office Vulnerability Found, Check Point Research To The Rescue

Check Point SandBlast protected users from a Zero-Day Microsoft Office Vulnerability

Neil Armstrong, the great space explorer, once said “research is all about creating new knowledge.” …

36 comments

  1. i would absolutely appreciate you doing a detailed guide to setup vpn PlZ do if u can and thank you 4 all your help

  2. apt-get install network-manager-openvpn-gnome
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package network-manager-openvpn-gnome is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘network-manager-openvpn-gnome’ has no installation candidate

  3. plz provide the solution

  4. i am also having the same prob like fasi plz help i had also noticed it is giving same error when i try to install “chkconfig” PLZ help

  5. Thanks for the guide!

  6. that didn’t work i keep getting errors as follows

    No candidate version found for network-manager-openvpn-gnome
    Couldn’t find any package whose name or description matched “network-manager-p”
    Couldn’t find package “ptp”. However, the following
    packages contain “ptp” in their name:
    thc-pptp-bruter
    No candidate version found for network-manager-pptp-gnome
    No candidate version found for network-manager-strongswan
    No candidate version found for network-manager-vpnc
    No candidate version found for network-manager-vpnc-gnome
    No candidate version found for network-manager-openvpn-gnome
    Couldn’t find any package whose name or description matched “network-manager-p”
    Couldn’t find package “ptp”. However, the following
    packages contain “ptp” in their name:
    thc-pptp-bruter
    No candidate version found for network-manager-pptp-gnome
    No candidate version found for network-manager-strongswan
    No candidate version found for network-manager-vpnc
    No candidate version found for network-manager-vpnc-gnome
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.

    • Dustin,
      You’re not paying attention. The actual command to use is:

      aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome

      You are also missing repositories. Fix those.
      -BMO

  7. i learned a lot from you tutorials thank you :)
    i would appreciate if you could write a bit more about VPNs and to anonymously and securely surf the net

  8. hello..im after trying this but vpn tab cannot enable, why?
    the installation is complete
    \

  9. Not working

    No candidate version found for network-manager-openvpn-gnome
    No candidate version found for network-manager-pptp
    No candidate version found for network-manager-pptp-gnome
    No candidate version found for network-manager-strongswan
    No candidate version found for network-manager-vpnc
    No candidate version found for network-manager-vpnc-gnome
    No candidate version found for network-manager-openvpn-gnome
    No candidate version found for network-manager-pptp
    No candidate version found for network-manager-pptp-gnome
    No candidate version found for network-manager-strongswan
    No candidate version found for network-manager-vpnc
    No candidate version found for network-manager-vpnc-gnome
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B of archives. After unpacking 0 B will be used.

  10. for saudi arabia too :)

  11. it’s fine , but the next stpes please
    how to configure openvpn

  12. After i ran the command it now only boots me into terminal and i don’t know how to return to GUI can you help?

  13. After Doing the ( aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome ) my network manager shut down , i rebooted and there was no gui i was booted to tty1 when i used startx there was no desktop environment ( i also tried tt7 same issue ) , then installed a different desktop environment and still network icon ( next to keyboard layout ) and sound icon disappeared

    What Should I Do ??

    • Found a fix
      apt-get install network-manager network-manager-gnome
      Sorry For The Disturbance

      • I had the same problem, this solution fixed it, except that I had to startx manually.
        If you want to have Kali to boot on the GUI automatically, you should also

        apt-get update
        apt-get upgrade -y
        apt-get install -f gdm3

  14. Hi there,
    I’d really appreciate the list that you offered of VPN providers, specially the free ones.

    Thaks in advanced.

    Regards

  15. Hi, First thank you very much for your awesome tutorials, I almost daily visitor now! How did you get to to this desktop information on the right side ? Thanks

  16. Thanks! That worked without effort. I’ll go and configure openVPN now.

    BTW: Proxy.sh seems to be a great VPN provider – not very expensive, and they have instructions for how to set up openVPN (and others) for Linux on their site.

  17. worked fine for me thanks for the fix!!!!!

  18. When I do this , I get the following:

    aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome
    The following NEW packages will be installed:
    ipsec-tools{a} libbonoboui2-0{a} libbonoboui2-common{a} libfcgi0ldbl{a} libgnomecanvas2-0{a} libgnomecanvas2-common{a} libgnomeui-0{a}
    libgnomeui-common{a} libstrongswan{a} network-manager-openvpn{a} network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome
    network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome pptp-linux{a} strongswan-ikev2{a} strongswan-nm{a}
    The following packages will be REMOVED:
    gir1.2-gnomedesktop-3.0{u}
    0 packages upgraded, 19 newly installed, 1 to remove and 1 not upgraded.
    Need to get 4,104 kB of archives. After unpacking 16.1 MB will be used.
    Do you want to continue? [Y/n/?]

    Why would it want to remove gir1.2-gnomedesktop-3.0?

    This is now the second time i had to reload kali for the same thing, previouse time it wasnt trying to enable VPN that broke it though..

    • If you want to keep a package that was installed as part of something else (and later removed), you can always do aptitude reinstall gir1.2-gnomedesktop-3.0. That will make sure that package will be marked as manually installed rather than as an automated installation.

  19. awesome !!!! thanks for the info

  20. harish nimgade

    hi sir ,
    my clg have wlan connection but they gives authentication user name and password with proxy and port …..so vpn can help on it …? or recommend any tool for that ……….thank u

  21. I want to know how to connect it in China. Thanks.

  22. Please help, after I ran the command, most of my keyboard keys stopped working. what could be the cause? I was also scared to restart my pc as I suspected it would start in terminal mode. Is there any command to fix everything back?

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

  24. Any idea on how to get a Cisco PCF certificate to work with Kali Linux 2.0?
    Regards

  25. i had the same problem becuase i was using a old kali and when try to download it tryed to download new stuff and old so i did cat << EOF > /etc/apt/sources.list
    deb http://old.kali.org/kali moto main non-free contrib
    EOF

    apt-get update&&apt-get upgrade
    kali 3.14 or 3.18 i cant remeber
    but after doing that i could then grab packets from this version back only witch is really good if your running low on memory
    after that then i done

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

    and not a problem

  26. MY Problem’s Always VPN Not Connected when i try to connect it’s say “Connecting”
    Then back to not Connecteing
    i try every thing in google / Youtube but all’s Usless
    if any one can help please don’t late :D

  27. Ruchira Jayasekara

    apt-get install network-manager-pptp
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    network-manager-pptp : Depends: pptp-linux but it is not going to be installed
    Depends: ppp (>= 2.4.5) but it is not going to be installed
    Depends: ppp (< 2.4.6) but it is not going to be installed
    Recommends: network-manager-pptp-gnome but it is not going to be installed or
    plasma-widget-networkmanagement but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    I cant install, this error shows up

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading