Connect with us

Hi, what are you looking for?

Internet

Very detailed guide on how to setup VPN on Kali Linux and Ubuntu

Very detailed guide on how to setup VPN on Kali Linux and Ubuntu

– 👌

Millions of people every day use different VPN service providers to protect their privacy on the internet. But not all VPN providers are as anonymous, secure or dedicated to protecting your online privacy as they claim. Some VPN providers even log your activity and if you live in a country where certain websites aren’t allowed or you may be prosecuted for doing something as simple as scanning the network (yes, it’s actually a crime in many first world countries). I wrote this article about fixing the gray VPN issue in Kali Linux. Several readers have asked me to write a complete guide on how to set up a VPN and which one is secured.

The truth is that I simply cannot test all VPN providers. I can’t vouch for other users’ experiences and usually only write things I’m sure of. Among the many VPN service providers, PrivateInternetAccess is claimed to be the best and fastest and according to their terms of service and privacy policy, they seem to have been praised and recommended by many reviews such as those by TorrentFreak and LifeHacker. I highly suggest readers to do some research before committing to any provider.

After eight questions taken from the TF website and I feel you should ask yourself the same questions before going to any of the VPN providers: (I added some comments below, your opinion may be different).

  1. Do you keep any records that allow you to match the IP address and timestamp of your service user? If so, what exactly information do you possess and for how long?
  2. Under what jurisdictions does your company operate and under what specific circumstances will it share the information it holds with a third party?
    • Outside the United States, Great Britain, or other NATO countries if applicable. But then you give up on speed. Instead, suspend the user’s account instead of handing over records or data.
  3. What tools are used to monitor and mitigate abuse of your service?
    • Other than blocking abuse and uptime of the service, there is no screen at all.
  4. If you receive a DMCA takedown notice or European equivalent, how is it handled?
    • Suspend a user’s account in lieu of handing over records or data.
  5. What steps are taken when a valid court order requires your company to identify an active user of your service?
    • Suspend a user’s account in lieu of handing over records or data.
  6. Is BitTorrent and other file sharing traffic allowed on all servers? If not, then why?
    • I’ve never really cared about BT, but I think there’s no discrimination in any kind of traffic.
  7. What payment systems do you use and how are they linked to individual user accounts?
    • Anything and everything. Better to have BitCoin. Set up BTminer and pay with that. In this way, there is no trace on the Internet.
  8. What is the most secure VPN connection and encryption algorithm do you recommend to users?
    • Support AES-128 or RSA2048 or higher. Do not use SHA1.
Discover  US Netflix on any device without VPN or sitewide DNS changes - with pfSsense

Since I mostly use Kali Linux, my primary focus will be on that. However, Kali Linux and Ubuntu use the same network manager, so this guide applies to any Debian variant like Kali Linux, Ubuntu variants like Linux Mint, etc. In short, if you follow this guide, you will be able to setup VPN on Kali Linux, Ubuntu, Debian Linux Mint, etc.

I use Kali Linux despite its many flaws and drawbacks and I’m used to it. If you’re serious about online privacy, stick with the distro you know and understand best. Kali is just another Linux distro that is as secure as it is made of. There are many ways you can do it. VPN to Tor to VPN via anonymous proxy.

Why Use a VPN – Benefits?

Here are the top 11 reasons why you might want to use VPN services.

  1. VPN provides privacy and hides your IP address.
  2. Use any network (public, private or free WiFi) with encryption
  3. Log into your home or business network from anywhere with confidence.
  4. Bypass censorship and content monitoring.
  5. Browse and bypass firewall policy and censorship at work or anywhere!
  6. Access region restricted services from anywhere (eg Youtube videos, NetFlix, 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. Because you like to be anonymous.
Discover  Best Free VPN for Android TV Box

As you can see from the list above, a VPN doesn’t necessarily hide everything. Search engines will likely continue to recognize you based on your cookies, past browsing behavior, account login (duh!), and browser plug-ins (like Alexa, Google Toolbar, etc.).

Step 1: Enable VPN on Kali Linux

By default, the VPN section is inactive on Kali Linux. You can follow my guide to fix the gray VPN issue (using Screengrabs) or just copy and paste the commands from below:

There are two different types of commands I used, the first allows all types of VPN and PPTP mumbo-junbo so you don’t have to work on it later.

root @kali: ~ #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 second one is more specific to VPN and is just to enable VPN

root @kali: ~ # apt-get install network-manager-openvpn

In some cases, you may have to restart the network and network manager,

root @kali: ~# restart service network
[….] Deprecated to run /etc/init.d/networking restart because it may not be r[warnble some interfaces … (warning).
[ ok ] Reconfigure network interfaces… Done. root @kali: ~ # root @ kali: ~ # restart the service network manager
[ ok ] Turn off Network Connection Manager: Network Manager.
[ ok ] Start Network Connection Manager: Network Manager. root @kali: ~#

Discover  How can you hide your IP address

Once this is done, your VPN issues will be greyed out. For other Linux distributions, this is not a big deal because these packages are usually pre-installed. (Which I find a waste as your distributions get bigger).

Step 2: Download and extract openvpn certificates from PIA

Download and extract the openvpn.zip file containing ca.crt in the correct directory:

root @kali: ~#wget https://www.privateinternetaccess.com/openvpn/openvpn.zip –2015-02-27 13:14:14 – https://www.privateinternetaccess.com/openvpn/openvpn. zip solution www.privateinternetaccess.com (www.privateinternetaccess.com) … 23.215.245.45 Contact www.privateinternetaccess.com (www.privateinternetaccess.com) | 23.215.245.45 |: 443 … Connected. HTTP request sent, waiting for response… 200 OK Length: 8242 (8.0KB) [application/zip]
Save at: “openvpn.zip” 100%[======================================>] 8,242–.- K/s on 0s 2015/02/27 13:14:15 (149MB/s) – ‘openvpn.zip’ saved [8242/8242]

root @kali: ~ # root @ kali: ~ # unzip -q openvpn.zip -d / etc / openvpn root @ kali: ~ #

Step 3: Configure Network Manager to use PIA VPN

go to network manager > Edit contacts

Change to the VPN tab. VPN> Add

click [ADD +] Click the dropdown menu, and set the type as OpenVPN.
click [Create]

go to “VPNFill in the following details.

  • contact name: PrivateInternetAccess VPN
  • Gate: us-east.privateinternetaccess.com [**choose Gateway’s from the list below]
  • user name: PIA username
  • password: PIA password
  • CA Certificate: Browse to /etc/openvpn and select ca.crt
  • click [Advanced]: Check the box next to “Use LZO data compression
  • click [OK]And [Save] and then [Close].

For Gateways, choose the following depending on your location:

PIA regional portals

  • United States (US VPN)
    us-midwest.privateinternetaccess.com
    us-east.privateinternetaccess.com
    us-west.privateinternetaccess.com
    us-texas.privateinternetaccess.com
    us-california.privateinternetaccess.com
    us-florida.privateinternetaccess.com
  • Canada (CA VPN)
    ca.privateinternetaccess.com
    ca-toronto.privateinternetaccess.com
  • United Kingdom (UK VPN)
    uk-london.privateinternetaccess.com
    uk-southampton.privateinternetaccess.com
  • Switzerland (Swiss VPN)
    swiss.privateinternetaccess.com
  • Netherlands (NL VPN)
    nl.privateinternetaccess.com
  • Sweden (SE VPN)
    sweden.privateinternetaccess.com
  • France (FR VPN)
    france.privateinternetaccess.com
  • Germany (DE VPN)
    germany.privateinternetaccess.com
  • Romania (RO VPN)
    ro.privateinternetaccess.com
  • Hong Kong (HK VPN)
    hk.privateinternetaccess.com
  • Israel (Israel VPN)
    israel.privateinternetaccess.com
  • Australia (Australia VPN)
    aus.privateinternetaccess.com
  • Japan (Japan VPN)
    japan.privateinternetaccess.com


Don’t forget to share this post with friends !

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Related

Internet

AnyConnect certificate-based authentication. Cisco community 👨‍💻 The information in this document is based on the following software and hardware versions: ASA 5510 running software...

Internet

AnyConnect: Install a self-signed certificate as a trusted source 👨‍💻 kmgmt-2879-cbs-220-config-security-port objective The goal of this article is to walk you through creating and...

Internet

ITProPortal . Portal 👨‍💻 We live in a dynamic moment in terms of technology. Even criminals are becoming more technically savvy and are using...

Internet

Top 5 Free AV Packages – 👌 Bitdefender Antivirus Free Edition best interface Positives Works on Windows 7 and 8.1 Very easy to use...