Home How to Enable VPN on Kali Linux – fix VPN grayed out problem

Enable VPN on Kali Linux – fix VPN grayed out problem

by blackMORE
Enable VPN on Kali Linux - blackMORE Ops - 0

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.

You may also like

36 comments

doctorpopkorn June 13, 2014 - 7:18 am

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

Reply
fasi July 9, 2014 - 3:52 am

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

Reply
fasi July 9, 2014 - 3:53 am

plz provide the solution

Reply
rizlax July 10, 2014 - 10:39 pm

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

Reply
tocontemplatetheworld July 26, 2014 - 2:43 pm

Thanks for the guide!

Reply
Dustin August 4, 2014 - 10:08 am

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.

Reply
blackMORE Ops August 5, 2014 - 2:02 pm

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

Reply
mack September 17, 2015 - 5:36 pm

same thing doesnt work even when i copy and paste yours

Reply
Marshall August 11, 2014 - 9:29 pm

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

Reply
bolang September 5, 2014 - 1:19 pm

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

Reply
Salooni September 6, 2014 - 7:19 am

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.

Reply
saud September 30, 2014 - 12:52 pm

for saudi arabia too :)

Reply
Hamza December 18, 2014 - 11:55 pm

I find a solution in this web site: http://www.kali-linux.fr/configuration/installer-open-vpn-sous-kali-linux i think that we need to updated deposit sources of GNU / Linux packages

Reply
emad October 26, 2014 - 7:12 am

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

Reply
frogfishfan October 30, 2014 - 11:10 am

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?

Reply
BooDy October 31, 2014 - 7:27 am

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

Reply
BooDy October 31, 2014 - 7:50 am

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

Reply
Olirip January 5, 2015 - 4:27 am

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

Reply
Gn0m3 December 6, 2014 - 12:10 am

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

Thaks in advanced.

Regards

Reply
blackMORE Ops December 8, 2014 - 12:08 pm

I am thinking about it, keep an eye on here for updates.

Reply
amrx December 14, 2014 - 12:14 pm

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

Reply
Ole Juul December 14, 2014 - 6:18 pm

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.

Reply
seth April 21, 2015 - 12:33 am

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

Reply
michael May 1, 2015 - 9:25 pm

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

Reply
blackMORE Ops May 1, 2015 - 11:40 pm

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.

Reply
west May 6, 2015 - 10:36 am

awesome !!!! thanks for the info

Reply
harish nimgade May 18, 2015 - 9:18 pm

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

Reply
ym July 17, 2015 - 7:02 pm

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

Reply
KULTUR3 August 11, 2015 - 8:08 pm

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?

Reply
blackMORE Ops August 12, 2015 - 12:06 am

apt-get remove pkg-name

Reply
Nexijt August 13, 2015 - 8:49 pm

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

Reply
blackMORE Ops August 14, 2015 - 12:04 pm

Hi Nexijt,
This is a Kali repository problem. You need to wait until it’s fixed.
Thanks,
-BMO

Reply
gn0m3 October 6, 2015 - 1:52 am

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

Reply
jonny January 20, 2016 - 11:44 am

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

Reply
Unkowen April 27, 2017 - 6:55 am

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

Reply
Ruchira Jayasekara April 25, 2020 - 4:46 am

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

Reply

Leave a Reply to fasiCancel reply

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