In these bad times that run and in a world in which it is becoming easier to steal Wi-Fi due to operating systems like Wifislax, there is growing concern that our Wi-Fi connection is being stolen.
If you have a Linux operating system and you want to know if your Wi-Fi is being stolen, you are in the right place, since we are going to teach you several ways step by step so you know if your Wi-Fi is secure or not.
Table of Contents
Know my IP address and Wi-Fi gateway
The first of all is to know which is the IP of the equipment we are using. For it we are going to use the classic ifconfig command in which it will tell us both our IP address and our gateway (router address). Unless we are using another device connected to the Router, in principle, only the IP of our computer and the gateway should appear active.
Install and use NMap
NMap is a very good tool that will allow us to know which equipment is connected to our network. To install it we are going to execute the following command(only for operating systems with apt as repository).
sudo apt-get install nmap
Remember that if you have the Debian operating system, you should put su in a separate command instead of sudo.
Now we are going to execute the following command in NMap, which will tell us which computers are active in our Network, replacing the word IP with the address of the router's gateway, for example 192.168.0.1
nmap -sP IP
Now among other things it will tell us the teams that are active within the IP that allows us to have the network mask. The normal thing is that there are only 2 active hosts (router and our PC).
If there are more active teams that you are not aware of, sSurely your Wi-Fi is being stolen.
In the event that there is no intruder, we have not finished, since that does not mean that our computer is safe. Therefore, we are going to use Wifislax to attack ourselves and thus check if our network is secure. A while ago, we did a tutorial explaining how to do this.
If you detect that there are intruders in your network, you can play the game of the hunted hunter and know exactly who the attackers are. Using programs that come in distributions like Kali Linux and Wifislax, you can do network packet sniffing and man in the middle attacks to find out what these people are doing on your network and thus find out their identity.
Change password and make it secure
Once we are clear that our Wi-Fi network is not secure, vWe are going to take some measures to improve the security of it. We are going to access our router by putting the gateway in the Internet browser and accessing with the username and password that we were given (unless we have changed it). Here we can access the security part and change the password.
The tips that I give you to have a secure password are the following.
- WPA2 security.
- WPS disabled.
- Strong password, with all kinds of characters.
- Change the name of the network.
Finally, if you want to add more security, you can configure the firewall of your router and add some extra measures such as filtered by Mac if you want more security.