OpenVPN in Kali Linux
This how to describes how to configure Kali to use a openVPN for securing your traffic.
Why should u use VPN?
Here’s my top 5 why you want to use a VPN service.
As you can see from the list above, VPN not necessarily hides everything. Search engines like google, bing and yahoo can still recognizes you based on your cookies or account sign-in. So make sure you use tools like Bleachbit (clear browsing data etc) and enable plugins in your browser for tracking and ads (privacy badger, uBlock Origin or Privacy.net analyzer).
In the example below i’m using IPVanish VPN service, there are lot’s more VPN services. If you really want to be sure of logging, security and availability you can use the comparison chart (click here).
1 — Enabling VPN on Kali Linux

The following command enables all sorts of VPN and PPTP in the network manager:
2 — Download and extract openvpn certs from IPVanish
Download the complete bundle of *.ovpn files and cert from here. From the commandline you can wget the *.zip file:

Move and unpack the files:

3 — Config Network Manager to use IPVanish profile

Go to your network configuration and click on the + (below left) 
Choose the option VPN and then Import from File 
Browse to the /etc/openvpn directory and pick one of the *.ovpn files you want to use. 
On the next screen you can configure your username and password. (everytime u start the VPN you will be asked to enter the password) 
As you can see, the CA Certificate is configured from the config file so you don’t have to pick this one by yourself. Click on Add to finish the import.
Once back on the Network Config you can enable the VPN connection and you are done with setting up a VPN!

Check your connectivity
Now let’s check the external IP Address:
As you can see, we are using 131.255.4.99 right now. Happy Safe Browsing!
How to Install VPN on Kali Linux Using OpenVPN and VPNBook
Kali Linux, formerly known as BackTrack, is synonymous with security and forensics. It is a Linux distro; based on Debian and built for cyber security experts, penetration testers, and white-hat hackers for digital forensics and penetration testing.
Having a VPN on your Kali Linux increases invisibility (private mode) while you keep testing for vulnerabilities.
In this article, we’ll show you how to install a VPN using OpenVPN and VPNBook on Kali Linux.
Why do you need a VPN on your Kali Linux?
Despite being built for digital forensics and penetration testing, Kali is just like every other Linux distro or operating system (OS), and as a user, you need to protect your activities while using it.
Failure to do so is like using an umbrella with holes,you’ll definitely get soaked when it rains.
Installing a VPN helps cloak your IP address, bypass censorship/geographical limitations, and encrypt your network traffic. Or, in this case, you can view it as patching the umbrella.
Please note that despite doing all the things stated above, you may still need more than a VPN to protect yourself, depending on the task.
Why open-source VPN?
This article will focus on an open-source VPN, as they provide higher transparency compared to closed-source VPNs. Some closed-sourced VPNs even rely on open-source VPNs to function.
The selected VPN for today is OpenVPN because it is compatible with various OSes.
How to Install a VPN on Kali Linux?
Let’s assume you already have Kali Linux up and running (either on your virtual machine or you dual boot it on your machine).
Next, open your terminal by navigating to your apps menu.
Then click the icon or use the command Ctrl + Alt + T.
- Type the command Sudo apt-get install OpenVPN once the command line opens.
Exit fullscreen mode

Depending on your setup, you might be asked to input your password.
To confirm a correct installation after the download,, type the command Openvpn into the terminal, “”.
Exit fullscreen mode

- Next, you’ll need to get the required configuration files for your VPN to work properly. Open your browser and go to www.vpnhooks.com.

- Then scroll down and select OpenVPN from the options available.

- Select the server you prefer and download the configuration file.
For the purpose of this guide, we will be using US1 Server.

- After downloading the configuration file, extract the files.
Configuring OpenVPN
There are two ways to proceed with the configuration from this point. It’s either through the GUI or the Terminal.
Configuring OpenVPN with GUI (Graphical User Interface)
Using the GUI option is typically easier, but the images provided could be slightly different on your version of Kali.
- Go to settings and select network. Then click the plus sign(+) at the bottom

- From the pop-up, select import saved VPN configuration

Input the username and password found on the VPNBook website and click Save.
After this, you’re good to go!
Congratulations! You have successfully installed OpenVPN on your Kali Linux using the GUI method.
Configuring OpenVPN from the Terminal
Unlike the GUI method, the terminal stays the same on various Kali versions. Other Linux distros on the other hand would require different commands.
- For this method, simply right-click on the folder where you have extracted the configuration files

And select open Terminal.
Then input the command, Sudo vpnbook-us2-tcp443.ovpn
Exit fullscreen mode

- Input the username and password when prompted.

You’ve now successfully installed OpenVPN on your Kali Linux using the terminal.

Conclusion
We have successfully installed a VPN in our Kali through the GUI process and using the terminal.
Настройка VPN на Kali Linux
VPN создана для установления виртуального соединения между узлами с использованием выделенных соединений, виртуальных туннельных протоколов или шифрование трафика. На Kali Linux, по умолчанию, опция VPN является неактивной, т. е. недоступной для добавления новых соединений. Эта инструкция покажет пользователям, как установить необходимые пакеты для разрешения проблемы с невозможностью добавить VPN и включением VPN на Kali Linux.

Виртуальная частная сеть (VPN) расширяет частную сеть через общедоступную сеть, такую как Интернет. Она позволяет компьютерам отправлять и получать данные через общие или публичные сети так, будто бы компьютер напрямую подсоединён к частной сети, при этом используются все преимущества функциональности, безопасности и управление политиками частной сети.
Несмотря на то, что коммуникации осуществляются по сетям с меньшим или неизвестным уровнем доверия (например, по публичным сетям), уровень доверия к построенной логической сети не зависит от уровня доверия к базовым сетям благодаря использованию средств криптографии (шифрования, аутентификации, инфраструктуры открытых ключей, средств для защиты от повторов и изменений передаваемых по логической сети сообщений). Вики.
VPN позволяет работникам безопасно подключаться к внутренней сети компании при путешествии вне офиса. Точно также множество VPN связывает географически разрозненные офисы организации, создавая одну сплочённую сеть. Технология VPN также используется юзерами Интернета для подключения к прокси-серверам с целью защиты анонимности и местонахождения.
Для чего использовать VPN — какие преимущества?
Здесь 11 главных причин, почему вас может заинтересовать использование служб VPN.
- VPN обеспечивает конфиденциальность и скрывает ваш IP адрес.
- Использование любой сети (публичной или частной или бесплатного WiFi) с шифрованием
- Конфиденциально заходите на вашу домашнюю или рабочую сеть из любого места.
- Обходите цензуру и мониторинг контента.
- Обход межсетевого экрана и политики цензуры на работе или где угодно!
- Доступ к ограниченным по регионам службам откуда угодно (видео Youtube, NetFlix или BBC Player и т.д.)
- Пересылайте или получайте файлы конфиденциально.
- Спрячьте ваши голосовые/VOIP звонки.
- Используйте поисковые системы, скрывая свои некоторые идентификаторы.
- Спрячьте себя.
- Потому что вам нравится анонимность.
Как вы могли заметить из списка выше, VPN не обязательно прячет всё. Поисковые движки могут, возможно, всё ещё узнать вас, основываясь на ваших кукиз, предыдущем поведении браузера, входа в аккаунт (да уж!), плагинах браузера (например, Alexa, Google Toolbar и т. д.).
Включение VPN на Kali Linux 2.0:
Чтобы добавить VPN в правом верхнем углу клините на эту иконку и нажмите на Wired:

Теперь выберите «Параметры проводных соединений»:

Нажмите на плюсик (+) в нижем левом углу:

Выберите VPN:

Вы увидите список доступных вариантов:

Включение VPN на Kali Linux 1.x
Проблема неактивности VPN на Kali Linux 1.x
По умолчанию, в Kali Linux секция VPN серого цвета. На самом деле, разрешить эту проблему просто, но те, кто не знаком с пакетами, требуемыми для VPN, могут прийти в замешательство из-за большого количества веб-сайтов, дающих различные советы. Всё это приводим к тому, что может быть непросто выявить корректную информацию. Я постараюсь сделать простую и краткую инструкцию с объяснением того, что мы делаем.

Ниже показан скриншот, на котором кнопка «Добавить» недоступна для использования.

Инструкция по включению VPN на Kali Linux 1.x
Во-первых, поправьте ваши репозитории. Используйте только официальные репозитории Kali Linux. Простая инструкция по восстановлению оригинальных записей репозиториев.
Как я уже сказал, на самом деле, это очень просто. Для этого только запустите последующую команду и всё готово.

Думаю, нужно немного объяснить, почему я использую aptitude вместо of apt-get, и почему я использую флаг -r, и почему я не перезапускаю Network-Manager.
Используя aptitude -r install, я уверен, что установятся все пакеты, упомянутые выше, вместе с любыми рекомендуемыми пакетами (общий размер очень маленький, что-то вроде 1969 kB, поэтому не стоит беспокоиться об этом).
Причина, почему я не перезапускаю Network-Manager в том, что aptitude сделает это. Для чего это делать дважды, правильно?
После того, как установка завершена, возвращаемся к иконке сетей, выбираем вкладку VPN и теперь кнопка Добавить активна.
Итак, давайте проверим, что у нас есть, если нажать на кнопку Добавить.
Опции VPN на Kali Linux (GNOME):
Далее — это опции, которые вы увидите, нажав кнопку Добавить на вкладке VPN.

Используйте выпадающее меню, чтобы увидеть все поддерживаемые типы соединения VPN:

Всего на Kali Linux у вас будет 4 поддерживаемых типа связи VPN:
- Cisco Compatible (vpnc)
- IPsec/IKEv2 (strongswan)
- OpenVPN
- Point-to-point Tunneling Protocol (PPTP)
Заключение:
VPN — это хорошо, VPN безопасен, VPN позволяет вам обходить прокси, файерволы, слежение и фильтры содержимого. Но всегда есть драма при использовании VPN, иногда он медленный, а иногда и не так безопасен, как вы можете думать. Но для стран вроде Ирана, Пакистана, Египта, Китая, Северной Корее, Саудовской Аравии и т. д., где фильтрация осуществляется на государственном уровне, может быть, это способ выглянуть наружу. Я не собираюсь обсуждать здесь правовые аспекты, оставлю это вам.
openvpn on Kali Linux
In this section, we are going to explain the necessary steps to uninstall openvpn package:
3. Details of openvpn package
really2.5.7-0kali1
Architecture: amd64
Maintainer: Bernhard Schmidt
Installed-Size: 1637
Depends: debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.33), liblz4-1 (>= 0.0
r130), liblzo2-2 (>= 2.02), libpam0g (>= 0.99.7.1), libpkcs11-helper1 (>= 1.11), libssl3 (>= 3.0.0), libsystemd0, systemd | systemd-tmpfiles, iproute2, lsb-base (>= 3.0-6)
Recommends: easy-rsa
Suggests: openssl, resolvconf, openvpn-systemd-resolved
Homepage: https://openvpn.net/
Priority: optional
Section: net
Filename: pool/main/o/openvpn/openvpn_2.6.0
really2.5.7-0kali1_amd64.deb
Size: 607728
SHA256: bc2d7604d5a48ed6c8c7c963dc7e96a11a32ab72f3029a4538515d0d891cb23e
SHA1: 24100f9597b91a31e9c12f0cf0085ad30b39ede4
MD5sum: 7500c73be9d0e8dc236cb5609c2feeb2
Description: virtual private network daemon
OpenVPN is an application to securely tunnel IP networks over a
single UDP or TCP port. It can be used to access remote sites, make
secure point-to-point connections, enhance wireless security, etc.
.
OpenVPN uses all of the encryption, authentication, and certification
features provided by the OpenSSL library (any cipher, key size, or
HMAC digest).
.
OpenVPN may use static, pre-shared keys or TLS-based dynamic key exchange. It
also supports VPNs with dynamic endpoints (DHCP or dial-up clients), tunnels
over NAT or connection-oriented stateful firewalls (such as Linux’s iptables).
Description-md5: 2ebe91e411d46309a61861db507e5c2f