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. A 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.
- VPN provides Privacy and cloaks your IP address.
- Use any network (public or private or free WiFi) with encryption
- Login to your home or Work network from anywhere with confidence.
- Bypass censorship and content monitoring.
- Browse and bypass Firewall and censorship policy at work or Anywhere!
- Access region restricted services from anywhere (i.e. Youtube videos, NetFlix or BBC Player etc.)
- Transfer or receive files with privacy.
- Hide your voice/VOIP calls.
- Use Search Engines while hiding some of your identity.
- Hide yourself
- 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.
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
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
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.
So let’s check what you get when you press the +Add
button.
VPN Options on Kali Linux (GNOME)
Following is what you will see when you press the +Add
button on VPN
tab.
Use the drop down menu to get more supported VPN Connection Types
:
In total, you got 4 supported VPN Connections types on Kali Linux:
- Cisco Compatible (vpnc)
- IPsec/IKEv2 (strongswan)
- OpenVPN
- Point-to-point Tunneling Protocol (PPTP)
Conclusion
VPN is good, VPN is secure, VPN allows you to bypass proxies, Firewall, monitoring and content filtering. But there’s always that drama when you’re using VPN, it sometime is slow and sometime is not that secure you’d think. But for countries like Iran, Pakistan, Egypt, China, North Korea etc. where content filtering is done in National Level maybe it’s a way to get the voice out. I am not going to discuss legality here, so I will leave that to you.
A complete guide on how to setup VPN on Kali Linux was added. Don’t forget to check that.
I also got a list of VPN providers that I’ve tested and collected over the years, some are really fast and reliable, some are not. Some are free and some are expensive. Let me know if you want a more in detailed guide to setup VPN and actually show you how to browse using it, and I can do it when I am free. You can also tell us about your setup in comments section and I will be happy to include them in this guide or a new one.
Thanks again for reading. Please share and RT.
Discover more from blackMORE Ops
Subscribe to get the latest posts sent to your email.
36 comments
I want to know how to connect it in China. Thanks.
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?
apt-get remove pkg-name
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 https://http.kali.org/kali/ kali/main libart-2.0-2 amd64 2.3.21-2
404 Not Found
Err https://http.kali.org/kali/ kali/main libfcgi0ldbl amd64 2.4.0-8.1
404 Not Found
Err https://http.kali.org/kali/ kali/main libgnomecanvas2-common all 2.30.3-1.2
404 Not Found
Get: 1 https://security.kali.org/kali-security/ kali/updates/main libstrongswan amd64 4.5.2-1.5+deb7u7 [523 kB]
Err https://http.kali.org/kali/ kali/main libgnomecanvas2-0 amd64 2.30.3-1.2
404 Not Found
Err https://http.kali.org/kali/ kali/main libbonoboui2-common all 2.24.3-1
404 Not Found
Err https://http.kali.org/kali/ kali/main libbonoboui2-0 amd64 2.24.3-1
404 Not Found
Get: 2 https://security.kali.org/kali-security/ kali/updates/main strongswan-nm amd64 4.5.2-1.5+deb7u7 [58.4 kB]
Err https://http.kali.org/kali/ kali/main libgnomeui-common all 2.24.5-2
404 Not Found
Err https://http.kali.org/kali/ kali/main libgnomeui-0 amd64 2.24.5-2
404 Not Found
Err https://http.kali.org/kali/ kali/main network-manager-openvpn amd64 0.9.4.0-1
404 Not Found
Get: 3 https://security.kali.org/kali-security/ kali/updates/main ipsec-tools amd64 1:0.8.0-14+deb7u1 [103 kB]
Err https://http.kali.org/kali/ kali/main network-manager-openvpn-gnome amd64 0.9.4.0-1
404 Not Found
Err https://http.kali.org/kali/ kali/main pptp-linux amd64 1.7.2-7
404 Not Found
Err https://http.kali.org/kali/ kali/main network-manager-pptp amd64 0.9.4.0-2
404 Not Found
Err https://http.kali.org/kali/ kali/main network-manager-pptp-gnome amd64 0.9.4.0-2
404 Not Found
Err https://http.kali.org/kali/ kali/main network-manager-vpnc amd64 0.9.4.0-1
404 Not Found
Err https://http.kali.org/kali/ kali/main network-manager-vpnc-gnome amd64 0.9.4.0-1
404 Not Found
Err https://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 https://http.kali.org/kali/pool/main/liba/libart-lgpl/libart-2.0-2_2.3.21-2_amd64.deb: 404 Not Found
Hi Nexijt,
This is a Kali repository problem. You need to wait until it’s fixed.
Thanks,
-BMO
Any idea on how to get a Cisco PCF certificate to work with Kali Linux 2.0?
Regards
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 https://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
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
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