Kali linux vpn server

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?

  • Next, open your terminal by navigating to your apps menu.
  • Then click the icon or use the command Ctrl + Alt + T.
Sudo apt-get install OpenVPN 

Image description

  • 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, “”.

Image description

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

Image description

Image description

For the purpose of this guide, we will be using US1 Server.

Image description

Configuring OpenVPN

There are two ways to proceed with the configuration from this point. It’s either through the GUI or the Terminal.

Читайте также:  Где посмотреть логи linux

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.

Image description

Image description

  • 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

Image description

Sudo vpnbook-us2-tcp443.ovpn 

Image description

Image description

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

Image description

Conclusion

We have successfully installed a VPN in our Kali through the GUI process and using the terminal.

If you made it to the end, congratulations.

Источник

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:

Installing OpenVPN

The first step is to install the OpenVPN packages using the apt command as:

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

Читайте также:  Wrong efi loader signature alt linux

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

Источник

How to set up own VPN server in 10 minutes on Kali Linux using OpenVPN

VPN is stands for Virtual Private Network. It extends a private network across a public network, and enables users to send and and receive data across shared or public networks as if their device were directly connected to the private network. Previously we have discussed about VPN and other things in this detailed post. We will got many free or paid VPN on internet but in this tutorial we will learn how we can create our own VPN server in our Kali Linux operating system.

Make own VPN server in Kali Linux

To create our own VPN server we use OpenVPN software. OpenVPN is a free and open source software that implements virtual private network. This is also very secured. Now we configure our VPN server.

First of all we need to download the installation file for OpenVPN software, to do this we open our terminal in Kali Linux and enter the following command:

wget https://git.io/vpn -O openvpn-install.sh

Then it will start download as following screenshot :

installing OpenVPN installation tool

If we are in lower version of Debian (Some of Kali Linux 2020.3 may need) then we need to download it by using this following command:

wget https://git.io/vpn1604 -O openvpn-install.sh

This bash script will download and install OpenVPN for us. First we need to to give permission to run using this command:

we just need to run this script using following command:

Now this script will ask our public IP and it will automatically collect our public IP address, if not then we need to manually put our public IP, If we have IPV6 then this tool will ask for it. To find IP address manually we can use following command:

openvopn installer kali linux

Then we need to choose a connection type for OpenVPN. Here UDP protocol is recommended so we choose 1.

openvpn for kali linux

Now we need to select the port where we want to set listening of OpenVPN. Here the default port is 1194, and we are going with default. The screenshot is following:

Читайте также:  Линукс как приложение виндовс

vpn server for kali linux

  • Current system resolver
  • 1.1.1.1 (Cloudflare)
  • Google
  • OpenDNS
  • Verisign

Here we use Google’s DNS so we type 3 and press enter.

VPN server in Linux

Finally, we need to type a name for the client certificate, here we can choose any client name:

How to set up own VPN server on Kali Linux using OpenVPN

Now we have set everything to run OpenVPN server. Now we need to press any key to configure our OpenVPN server. Configuring OpenVPN server in Our Kali Linux system will take some time depending our system’s speed. After process complete we got our OpenVPN client configuration file as shown in following screenshot:

OpenVPN config file

Now using this kali.ovpn config file we can connect with our VPN server, from any other device, but here we must run OpenVPN server in our Kali Linux machine. To check the OpenVPN server status we run following command in our Kali Linux terminal:

sudo service openvpn-server@server status

After running the command we can see the screenshot of OpenVPN server in the following screenshot:

openvpn server running in kali linux

We can see the server is running.

This server will automatically starts when the system boot up. To turn it off manually we can enter following command:

sudo service openvpn-server@server stop

To start it manually we can use this following command:

sudo service openvpn-server@server start

Let’s see how we can connect our VPN over internet means when we are out of our local network. To do this we need port forwarding and a ststic IP. First of all we fix our local IP from the wifi settings IPV4 tab.

fixing local ip

Now we need to forward our 1194 port (Default port for OpenVPN) in UDP, from our router’s settings. Then we need a static public IP. Usually we get dynamic IP from our internet service provider. We can ask them to provide to provide us a static IP or we can use some tool like noip.

Then we can connect any device with our VPN server from anywhere.

For this we need the OpenVPN file in connecting device. OpenVPN client is available for almost every major operating system for free. We can run the ovpn file using OpenVPN software in Windows, Mac, Linux, Android, iOS etc.

That is how we can set our own VPN server in Kali Linux and connect with them from anywhere.

Please don’t forgot to follow us by using e-mail from the sidebar. Also follow us on GitHub and Twitter we posts updates there and for any queries or suggestions freely ask anything in the comment section. We always reply.

Источник

Оцените статью
Adblock
detector