Instructor: Welcome back.
So, in this lecture, we're going to take a look
at how we can install VPN inside of our Kali Linux system
in order to anonymize our traffic.
So it's a rather simple process,
and what we want to do is we want to, first of all,
open up our Firefox and we're going to use,
as I mentioned, OpenVPN to do this.
Now to install OpenVPN, you want to navigate
to the website called vpnbook.com.
But before we proceed with the installation of the VPN,
what I want you to do is I want you to go on your Firefox
inside of your Kali Linux system, type what is my ip,
and you should see your public IP displayed
as well as the location of the public IP.
And we're going to see that changing
after we configure our VPN.
So once you're on the VPNBook website,
you want to scroll down until you see this OpenVPN tab.
Click on it, and here we will have different
configuration files depending on the server
that you want to choose.
So, me personally, I'm going to go with this server
right here, which is French if I'm not mistaken.
And you might notice down here
that we have username and password,
which will be useful for us in just a second,
but before we use them,
let's download any of these servers here.
You can choose the US server or the Canada,
whichever you prefer.
I'm going to go with this one.
And it will download the zip file,
which we want to open and then extract.
And to extract this file, we'll just right-click
and click on Extract Here.
And once that is extracted, we will have this folder
with our VPN configurations, as we can see right here.
Now for most of these servers, you will actually get
four configuration files, as mentioned right here,
TCP port 80, TCP port 443, UDP 25000,
and UDP port 53 for DNS.
But here, we got only three, which doesn't really matter.
We're going to use the TCP port 80 since that is HDP port.
Okay, so now that we got that,
all we want to do is open terminal,
and let me enlarge this so we can see everything better.
Type ls.
Here are our configuration files,
and we can run the configuration file from the command line
or from the terminal by typing openvpn --config
and then the file name.
In my case, that will be tcp80.ovpn.
So I'm going to use this one.
You can use that one, as well,
for the purposes of the tutorial.
And if I press enter, it will ask for username and password.
And if you remember, we have username here,
which is vpnbook, and password, which is rxtasfh,
if I'm not mistaken, yes, h.
And keep in mind, this will probably be different for you
so don't type in what I'm typing in right here,
but rather check on the VPNBook page.
Once you type that in, press enter,
and it seems that we get a fatal error.
Now once you get this error,
there are two different things that you want to try.
You either want to try running the command with sudo.
Type in our password, type these two passwords again,
and if it still doesn't work, well,
then we need to alter the configuration file.
So to do that, we want to nano the file that we're running.
So in my case, it's vpnbook-tcp80.ovpn.
And once you open it, you want to scroll
all the way down up to this redirect-gateway,
press enter to make space,
and you want to type this line in.
So you want to type tls-cipher, space, open double quotes,
then capital letters "DEFAULT:@SECLEVEL,
and then that will be equal to 0,
and then close the double quotes.
So you want to type in this line right here.
Once you type it in, you can Control + O to save,
Control + X to exit.
And we want to run the same command,
which is sudo openvpn --config,
and then the configuration name.
We need to type in password once again,
and you can see this time it works.
We are not getting the fatal error,
and we can check whether VPN is indeed active
by going and typing what is my ip.
Here, we can see that this is my current public IP address.
If I go on this website to check what is the location
of this ip, it seems to be in Indonesia,
which is definitely not where I am from,
so it is indeed working.
Our VPN is working.
Now you're probably going to get a different
IP address every time, but nonetheless, your VPN is working.
Okay, awesome.
That will be about it when it comes to installing
OpenVPN in Kali Linux.
Now if you want, you can choose
any other VPN provider that you want.
This is a free one, that's why we chose it.
You can use a paid VPN of your choice, but nonetheless,
let's not make this any longer,
and let's continue to the next lecture.