Monday, 28 March 2016

Setup VPN

Every day millions of people uses different VPN service providers to protect their online privacy. But it not all VPN providers are as anonymous or as secured or dedicated to protecting your Online privacy as they claim to be. 

I never cared for BT, but I guess no discrimination on any type of traffic.

Which payment systems do you use and how are these linked to individual user accounts?
Anything and everything. Best would be BitCoin. Setup own BTminer and pay with that. In that way, little/no online trace whatever.

What is the most secure VPN connection and encryption algorithm you would recommend to your users?
AES-128, RSA2048 or higher supported. Don’t use SHA1. 

As I mostly use Kali Linux, my primary concentration would be on that. However, Kali Linux and Ubuntu uses same Network Manager, so this guide applies to the any Debian variant such as Kali Linux, and Ubuntu variants such as 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.

Setup VPN on Kali Linux

I use Kali Linux despite many of it’s flaw and shortcomings and I have became used to it. If you’re seriously about Online privacy, stick with the distro you know and understand best. Kali is just another Linux distro and it is as secured as you make it. There are many ways you can do it. VPN to Tor to VPN via anon proxy.

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

Step 1: Enabling VPN on Kali Linux

By default the VPN section is grayed out on Kali Linux. You can follow my guide on fixing VPN grayed out issue (with screengrabs) or just copy paste the commands from below:
There’s two variants on the commands I’ve used, the first one enables all sorts of VPN and PPTP mumbo-junbo’s so that you don’t have to work your way through it later.
root@kali:~# aptitude -r install network-manager-openvpn-gnome network-manager-pptp 
network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc 

The second one is more specific to VPN and just enabling VPN
root@kali:~# apt-get install network-manager-openvpn
On some cases, you might have to restart network-manager and networking,
root@kali:~# service networking restart
[....] Running /etc/init.d/networking restart is deprecated because it may not r[warnble 
some interfaces ... (warning).
[ ok ] Reconfiguring network interfaces...done.
root@kali:~# service network-manager restart 
[ ok ] Stopping network connection manager: NetworkManager.
[ ok ] Starting network connection manager: NetworkManager.

Once done, it will fix your VPN grayed out issues. For other Linux distro, this isn’t so much of a problem as those packages are usually pre-installed. (which I find a waste as your distro becomes bulkier).

Step 2: Download and extract openvpn certs from PIA

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

root@kali:~# wget
--2015-02-27 13:14:14--
Resolving (
Connecting to (
||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8242 (8.0K) [application/zip]
Saving to: `'
100%[======================================>] 8,242       --.-K/s   in 0s      
2015-02-27 13:14:15 (149 MB/s) - `' saved [8242/8242]
root@kali:~# unzip -q -d /etc/openvpn

Step 3: Configure Network Manager to use PIA VPN
Go to Network Manager > Edit Connections

Change to VPN Tab. VPN> Add

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

Go to “VPN” and fill up the following details”.
  • Connection name: PrivateInternetAccess VPN
  • Gateway: [**choose Gateway's from the list below]
  • Username: 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], [Save] and then [Close].

As for Gateways, choose on the following depending on your location:
PIA Regional Gateways
  • United States (US VPN)

  • Canada (CA VPN)

  • United Kingdom (UK VPN)

  • Switzerland (Swiss VPN)
  • Netherlands (NL VPN)
  • Sweden (SE VPN)
  • France (FR VPN)
  • Germany (DE VPN)
  • Romania (RO VPN)
  • Hong Kong (HK VPN)
  • Israel (Israel VPN)
  • Australia (Australia VPN)
  • Japan (Japan VPN)

Step 4: Connect to PIA VPN

Click Network Manager > VPN Connections > PrivateInternetAccess VPN
You will see a yellowish colored connection indicator while connecting.

Setting up VPN on Ubuntu

Ubuntu parts were taken from PIA support site. This also covers Linux Mint or any Ubuntu variants.
This is almost as easy as it gets. There’s 3 variations you can try to connect to PIA
  • Use PIA script for Ubuntu 12.04 or higher
  • Setup manually via Network Manager for Ubuntu 12.04 or higher
  • Setup manually via Network Manager for Ubuntu 10.10
  • Ubuntu 1 : Ubuntu Linux 12.04: OpenVPN Installer
  • Download the openvpn ubuntu installer
  • Run sudo sh ~/Downloads/ (replace path to installer accordingly)
  • Type ‘y’ to install python 2.7 in case it’s not installed.
  • Type ‘y’ to install network-manager-openvpn in case it’s not installed.
  • Enter the login for your account.
  • Wait for the installation to finish.
  • Connect using the Network Manager.
  • Enter your password when prompted (only needs to be done once per region).

Ubuntu 2: Ubuntu Linux 12.04: OpenVPN via Network Manager Setup

Open a Terminal, and run: sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome. This will prompt for both your password, and a Y/n answer, please provide it with your password, and Y
Once installed, open System Settings, then Network
Press the + symbol to add a new connection, and select the VPN Interface, then press Create
Choose OpenVPN as your VPN Connection Type, and press Create
The following will walk you though all configuration steps needed for the PIA VPN.
Gateway: Select one of the Hostnames provided on the Network page
  • Type: Password
  • Username: The username provided with the PIA account
  • Password: The password provided with the PIA account

CA Certificate: Downloaded this zip file and extract the ca.crt file to somewhere it won’t be deleted. We suggest your Home folder. If you extract this to your home folder, when searching for it, please click on your username on the left side, which will take you right to the home folder, then select the ca.crt file from the options on the right.
Advanced: Under the general tab, check the Use LZO data compression
IPv4 Settings:

Method: Automatic (VPN) Addresses Only
Press Save. If you chose to have your password saved it may ask for you to verify your password to open your keyring.

Once connected, you would like to head the following websites to confirm if you are leaking any informations
  • For DNS Leak test, check here:
  • For Email leak test, check here:
  • Those who uses ipv6, check your leaks here:


  1. Thank you for taking the time to publish this information very useful! vpn review

  2. Great post, It seems you are spending lot's of time to write about Compete VPN setup, I think you do not miss anything. I use Microleaves Dedicated Proxies. Please tell me which one is best?

  3. This basically involves shielding yourself by controlling the connections with the aid of the best VPN provider. This implies that you should have access to servers that can control your feed. Best VPN service

  4. Thumbs up! Thank you for your time to provide information!

  5. I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. avast secureline vpn review

  6. Thanks for sharing this information, although I’m sure if you look back on this 2016 post, you would no longer recommend using Bitcoins as payment as exchange rates have changed greatly in the past months. Anyway, if any of your readers are working on different operating systems whether on a computer or mobile, I found the ExpressVPN software very helpful. They also have a step-by-step guide for Mac, Windows, Chrome, Android, etc. They also have leak tests straight from their site, too. So far it has worked great for me.

  7. Het was geweldig. Bedankt voor het delen van dit bericht.

    Als u SEO-diensten nodig heeft, kunt u contact opnemen met Nexoz Company.

    SEO is het bereiken van hoge posities in zoekmachines.

    SEO-site met als doel het aantal bezoekers te vergroten door ervaren experts.

  8. بسیار محتوای مفیدی بود. ممنون از اینکه این گونه مطالب رو به اشتراک می گذارید.

    تکنسین های باتجربه ی دو سوت تعمیر، تعمیرات را در اولین فرصت انجام می دهند، قیمت ثابت و ارزان، زمان قرار ملاقات انعطاف پذیر و متناسب با برنامه شما، ضمانت قطعات و کار.

    لوازم خانگی نقش اصلی را در راحتی شما بازی می کنند و به سرعت کارهای مختلف خسته کننده را انجام می دهند.

    از انبوه ظروف کثیف گرفته تا فریزر مملو از آب از ذوب شدن یخ، لوازم خانگی می توامند مشکلات زیادی را به وجود آورند.

    به جای اینکه بخواهید همه مشکلات را به تنهایی برطرف کنید ، برای خدمات تخصصی تعمیرات لوازم خانگی با دو سوت تعمیر برنامه ریزی کنید.

    تهران منطقه اصلی خدمات ما است. برای کسب اطلاعات بیشتر در مورد طیف وسیعی از خدمات ما، از طریق صفحه ارتباط با ما تماس بگیرید.

  9. خیلی عالی بود، اطلاعات مفیدی در بر داشت. شما اگر به هر گونه خدمات طراحی سایت، طراحی گرافیک، تبلیغات، و یا سئو و بینه سازی سایت نیاز داشتید، میتوانید با تیم ریوال در تماس باشید.

    ریوال ایجنسی متکی بر سوابق آکادمی و عملی خود پا به عرصه خدمت رسانی به ایرانیان عزیز در داخل و خارج از ایران نهاده است و همواره رضایت مشتری را راس هرم تمام کارهای خود می داند.

    ریوال ایجنسی با سابقه ای درخشان و با در اختیار داشتن کادری مجرب و حرفه ای در عرصه گرافیک و تبلیغات آماده همکاری با شرکت های داخلی و خارجی می باشد.

    خدمات ما شامل موارد زیر است:

    1. گرافیک

    2. تبلیغات

    3. طراحی و توسعه

  10. جهت اطلاع قیمت طراحی لوگو سه بعدی در ریوال آنلاین ، با مرکز آژانس تماس بگیرید.

  11. ممکن است چندین سایت ساخت آرم حرفه ای در ایران وجود داشته باشند که به صورت حرفه ای تمامی خدمات برندینگ را ارائه می دهند.

    طراحی لوگو بخشی از فرآیند برندسازی در بهترین کمپانی های جهان است.

    از این رو شرکت برندینگ حرفه ای ریوال آنلاین می تواند خدمات مختلف را به عنوان خدمات حرفه ای طراحی لوگو به شما ارائه دهد.

  12. طراحی لوگو به راحتی در ذهن مخاطب ثبت می‌شود.

    شما چند تبلیغ و نام تجاری را پس از تنها یک بار دیدن آن به یاد می‌آورید؟

    قطعا جواب شما یک یا دو نام است.

    اما هنگامی که پای لوگوها به میان می‌آید، داستان تغییر می‌کند و کل هویت برند در قالب یک تصویر در ذهنتان نقش می‌بندد که قابل فراموشی نیست.

    پس اگر می‌خواهید به یاد ماندنی باشید حتما باید از خدمات حرفه‌ای ساخت لوگو کمک بگیرید.