- Kali Linux. Установка и настройка VPN
- How to Setup OpenVPN on Kali Linux
- Настройка OpenVPN подключения Linux
- Установка пакета OpenVPN
- Подключение OpenVPN в командной строке
- Kali Linux 2020.1a 64-Bit on Raspberry Pi 4 — Tor/VPN Router
- Complete Privacy for Everyone
- Installing Kali Linux
- Configuration
- Configuring OpenVPN
- Tor Transparent Proxy Setup — not recommended!
- How to Configure OpenVPN in Kali Linux
- Installing OpenVPN
- Connecting to a VPN
- Conclusion
- About the author
- John Otieno
Kali Linux. Установка и настройка VPN
Как и обещал, первая из статей по Kali Linux.
Но сегодня мы не будем рассматривать хаки и подобное.
Эта статья будет как настроить VPN протокол в Kali Linux.
VPN довольно важная составляющая особенно если вы занимаетесь чем то что не разрешено в рамках закона, но не дает полной гарантии в скрытии своего IP .
В Kali в пункте «Сетевые соединения» можно увидеть пункт «VPN» но он не активен.
Наша задача установить модули, чтобы пункт был активен.
В установке ничего сложного нет, необходимо лишь ввести некоторые команды в консоль.
Но прежде чем я напишу нужные команды, напишу про то, если вы используете Kali Linux на виртуальной машине.
Чтобы использовать протоколы VPN (ещё это касается различных атак на Wi Fi), необходимо иметь отдельный USB Wi Fi модуль. То есть если вы с ноутбука и у вас встроенный Wi Fi у вас не выйдет поработать, по причине что этот модуль будет использован вашей основной ОС. Но бывают заморочки, лучше ставить отдельную ОС.
Лично я использую TP-Link TL-WN722N для этих целей. И в качестве виртуальной машины лучше выбирать VMware player, с Virtual Box у меня не вышло поработать, модуль не определялся виртуальной машиной, если вам удастся разобраться с проблемой, отпишите в комментариях.
Если же Kali Linux установлен в качестве основной операционной системы, проблем никаких возникнуть не должно.
А теперь основное.
Установка и настройка VPN в Kali .
Первым делом если вы давно не обновлялись то советую обновиться, иначе могут возникнуть ошибки.
apt-get update
apt-get upgrade
Когда полностью обновились, устанавливаем VPN.
Открываем консоль и вводим по порядку следующие команды.
apt-get install network-manager-openvpn-gnome
apt-get install network-manager-pptp
apt-get install network-manager-pptp-gnome
apt-get install network-manager-strongswan
apt-get install network-manager-vpnc
apt-get install network-manager-vpnc-gnome
/etc/init.d/network-manager restart эта команда сделает рестарт менеджера сети.
Теперь можно использовать VPN.
Использование VPN.
Рассмотрим как использовать OpenVPN и PPTP протоколы.
OpenVPN.
Чтобы использовать протокол OPENVPN, скачиваем файл конфигурации с расширением OVPN.
Помещаем его в удобное для нас место, я использую рабочий стол.
Далее открываем консоль, переходим в папку с рабочим столом командой
Проверяем файлы рабочего стола командой LS , копируем полное название файла конфигурации VPN и вводим команду
После чего осталось дождаться подключение. Если потребуется имя пользователя(login) и пароль(password) вводим те данные которые показаны на сайте где вы взяли VPN.
Если всё хорошо, то увидим надпись «Initialization Sequence Completed». Консоль не закрываем, должно быть открыто пока работаете.
Если бесконечно идет подключение проблема скорее всего в сервере, попробуйте использовать другой файл конфигураций VPN.
PPTP.
Переходим в менеджер сети, «Соединения VPN-настроить VPN».
Нажимаем «Добавить» и выбираем «Point-to-point Tunelling protocol (PPTP)» .
И вводим данные. Пример с vpnme.me
Необходимо ввести шлюз , логин и пароль. Шлюз обычно написан как adress server или может быть как имя сайта.
Когда всё прописали, сохраняем и подключаемся.
Вот в принципе и всё, никаких танцев с бубном и прочего.
И по возможности используйте платные VPN серверы, для надежности и проверяйте изменился ли ваш IP.
Это всё что я хотел сегодня написать на своем интернет блоге. Берегите себя и свои компьютеры.
Источник
How to Setup OpenVPN on Kali Linux
This guide will walk you through setting up OpenVPN on Kali Linux.
Before beginning to set up OpenVPN on a device running on Kali, you need to make sure you have a premium PureVPN account and the required OpenVPN configuration files.
Things to Consider:
Before you begin, please make sure that:
- You have a working internet connection
- Kali Linux Supported Device.
- A Premium PureVPN account (If you haven’t bought yet click here to buy)
- Once logged in go to Account & Billing section.
- On Account and Billing section click on drop-down icon
- Click on Show/Update VPN password
- Note down your PureVPN username and click on Eye icon to make your password visible and use it in the manual configuration.
You will get a prompt asking what to do with the ZIP archive, select “Save File” and click “OK”. It should be downloaded to your “Downloads” directory.
2 Go to your “Downloads” directory, right click the ZIP archive and select “Extract Here” to extract the files.
3 Now go to the ‘Menu’ option and search and open the ‘Terminal Emulator’
4 Now you need to install OpenVPN packages. Type the following commands one by one:
sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager network-manager-gnome network-manager-openvpn-gnome
- Click on “Ethernet Network Connection“
- Go to “VPN Connections”
- Select “Add a VPN Connection…”
6 Select ‘Import a saved VPN configuration’ option. Click on the “Create” button.
7 Go to the Downloads directory, select the folder containing OpenVPN files i.e. ‘New OpenVPN Files’. Select the desired file with “.ovpn” extension. Click “Open” button.
8 Now enter the details as mentioned below:
Insert Connection name: PureVPN (Here we use PureVPN, you can change it any other name)
- Select Type: Password from drop down menu
- Insert Username provided by PureVPN
- Insert Password provided by PureVPN
- Click on folder icon from Certificate folder and add the ‘ca.crt.crt’ file.
- Click on ‘Save’
9 Now go to the “Ethernet Network Connections” option and under “VPN Connections” click/check on the newly created “PureVPN” connection to activate VPN.
Источник
Настройка OpenVPN подключения Linux
Эта инструкция покажет, как настроить подключение к SECRETVPN в командной строке Linux. Если Вы хотите, чтобы ваше VPN соединение было доступно в сетевых подключениях среды рабочего стола Gnome или KDE, пожалуйста обратите внимание на следующие инструкции:
Установка пакета OpenVPN
Все команды выполняются от имени суперпользователя. Прежде чем начать, в командной строке наберите sudo –i или su root чтобы получить root доступ к системе.
В Debian, Ubuntu, Linux Mint, Kali Linux выполните следующие команды:
apt-get update && apt-get upgrade
apt-get install openvpn
В RedHat, Fedora, CentOS, Oracle Linux.
Так как пакет OpenVPN не доступен в стандартном репозитории RedHat, прежде чем устанавливать OpenVPN необходимо добавить Extra Packages for Enterprise Linux (EPEL) репозиторий. Для этого выполните в терминале:
yum install epel-release -y
После чего установите OpenVPN с помощью команды:
yum install openvpn -y
Подключение OpenVPN в командной строке
Скачайте нужный файл конфигурации ovpn, который мы выслали на вашу электронную почту когда Вы создавали подписку. Вы также можете скачать и/или сгенерировать файлы конфигурации в личном кабинете. В нашем случае это будет файл nl.secretvpn.net.ovpn в каталоге /home/user
Чтобы подключить OpenVPN, выполните команду openvpn [путь к файлу конфигурации скаченному из почту] с правами root или используйте sudo, например, так:
sudo openvpn /home/user/nl.secretvpn.net.ovpn
Для успешной установки соединения, укажите имя пользователя (вида svpn***) и пароль Вашей VPN подписки, которые мы выслали на вашу электронную почту.
Обратите внимание! Логин и пароль VPN подписки отличаются от логина и пароля для личного кабинета на сайте secretvpn.net.
Остались вопросы? Напишите нам:
Источник
Kali Linux 2020.1a 64-Bit on Raspberry Pi 4 — Tor/VPN Router
Apr 15, 2020 · 5 min read
Complete Privacy for Everyone
UPDATE1: You should be using Tor Browser, and not a transparent Tor proxy!
More information: https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy
UPDATE2: The tutorial has been rewritten to be shorter and more concise.
Installing Kali Linux
- Get Etcher from https://www.balena.io/etcher/
- Get Kali Linux image from https://images.offensive-security.com/arm-images/kali-linux-2020.1a-rpi3-nexmon-64.img.xz
- Flash the image with Etcher
- Insert the MicroSD card into the RPi
- Connect the RPi’s ethernet port to your router
- Power on your RPi
- SSH into it using root:toor credentials
- Find the IP address of the RPi — this is a DiY assignment for you
- Change your password immediately: passwd
- Update — doing plain upgrade instead of dist-upgrade to avoid core functionality issues
Configuration
- Disabling unneeded services
- Installing additional packages
- Configure hostapd
- Configure dnsmasq
- Enable IP forwarding
- Script for AP up/down — ./ap.sh
This scripts masquerades multiple devices.
Change this to conform to your needs.
Configuring OpenVPN
You can set up your own OpenVPN server at home if your route r supports it.
For example, some Asus models have OpenVPN support.
For this tutorial, we’re going to use a free OpenVPN service from https://www.vpnbook.com/freevpn Usernames and passwords might change, so please use the updated credentials from the link given above. Note: I am not in any way affiliated with VPNBook!
- Download the certificate bundle, set the tun device and configure username and password
- Set up OpenVPN as a system service
Note: VPNBook is not always reliable, but it will connect, eventually.
If you see these messages in the logs, just give it more time or use a paid/owned OpenVPN service:
- Optional — save the following script as ./tlg.sh — ./tlg.sh
This script sends a text message to a Telegram channel
- Make the script executable
- Save the following script as /etc/rc.local
- Make the script executable
- Reboot the RPi — reboot
After rebooting, you should be able to connect to the RottenTomatoes SSID
You should be able to browse the internet behind VPN
You can run systemctl stop openvpn to use the RPi as a simple WiFi router
Tor Transparent Proxy Setup — not recommended!
- Browse to https://check.torproject.org/ from your wi-fi connected device
It should say “Congratulations. This browser is configured to use Tor.”
Fingers Crossed X
Источник
How to Configure OpenVPN in Kali Linux
OpenVPN is a free and open-source VPN application that allows you to encrypt and send your network data via secure tunnels from one device to another not located on the same network. OpenVPN uses OpenSSL to encrypt network traffic to and from your devices.
Once connected to an OpenVPN server, your network traffic gets routed through the server, keeping your data secure. In turn, this helps protect you from network attacks, especially when connected to public networks.
NOTE: Using a VPN does not always guarantee data privacy. Always store your private information at secure and encrypted locations.
This guide will walk you through installing and setting OpenVPN on Kali Linux to protect your traffic when doing pen-testing.
For this, you will require:
- A working installation of Kali Linux
- Internet connection
Installing OpenVPN
The first step is to install the OpenVPN packages using the apt command as:
sudo apt-get update
sudo apt-get install openvpn network-manager
Once you have the packages installed, restart your device to ensure that the changes take effect.
Connecting to a VPN
The next step is to connect to a VPN server. You will need to have an OpenVPN configuration file. You will often find OpenVPN files from your VPN provider in the .ovpn extension.
Once you have your config file, use the command below to connect to the vpn server. You will need the username and password to connect to the server.
$ echo «USERNAME» >> / etc / openvpn / credentials
$ echo «PASSWORD» >> / etc / openvpn / credentials
$ sudo openvpn se-us-01.protonvpn.com.udp.ovpn
Tue Feb 9 18 : 37 : 41 2021 OpenVPN 2.4.7 x86_64-pc-linux-gnu [ SSL ( OpenSSL ) ] [ LZO ] [ LZ4 ] [ EPOLL ] [ PKCS11 ] [ MH / PKTINFO ] [ AEAD ] built on Feb 20 2019
Tue Feb 9 18 : 37 : 41 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019 , LZO 2.10
You can also import a VPN configuration file using the GUI interface.
Conclusion
This quick guide has shown you how to install and setup OpenVPN on Kali Linux.
About the author
John Otieno
My name is John and am a fellow geek like you. I am passionate about all things computers from Hardware, Operating systems to Programming. My dream is to share my knowledge with the world and help out fellow geeks. Follow my content by subscribing to LinuxHint mailing list
Источник