VPN on Kali Linux is strangely not installed and enabled by default which leaves you with a greyed out VPN option panel. VPN stands for Virtual Private Network and extends your private network over the internet. In this tutorial we will install the necessary packages and setup the popular VyprVPN service in Kali Linux.
I’m using VyprVPN as VPN service for a couple months now on public Wifi for example. This service is fast, reliable and there are many servers/countries to choose from (50+ servers and 200,000 IP addresses). Goldenfrog claims to not keep logs and they have great apps available for managing connections. If you sign up using the following link we both get a month for free:
There are several reasons why you would want to use a VPN service:
- VPN cloaks your IP Address and location so you will be anonymous
- Avoid internet censorship, firewalls and access region restricted content
- Encrypt your network traffic (on public Wifi for example)
- 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
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:
- Connection name
- Gateway (Different gateways are available from the website)
- Set authentication type to password
- Username and password
Click the browse file button to select the CA certificate we downloaded earlier.
The file was downloaded to the following location:
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.