operating system Kali Linux is the de facto standard for information security specialists and penetration testers, but its initial setup often poses difficulties for beginners. Unlike desktop distributions like Ubuntu or Mint, its interface is focused on functionality rather than user experience, so automatic connection to wireless networks may not work immediately after installation.
The main difficulty is that many security audit tools require specific network interface management, which conflicts with standard connection methods. You'll need to understand the drivers, the differences between adapter operating modes, and proper configuration. NetworkManager for stable internet access.
In this article, we'll cover every setup step in detail, from checking the physical device to troubleshooting complex issues with Realtek and Broadcom drivers. Proper network setup is the foundation without which neither updating vulnerability databases nor performing security perimeter scanning is possible.
Checking adapter compatibility and status
Before attempting to enter the network password, you need to ensure that the operating system can even see your wireless module. Many external USB adapters popular among hackers (such as those based on Atheros or Ralink chips) may require manual driver installation or port switching.
For primary diagnostics, a utility is used ip link or more detailed iwconfigEnter the command in the terminal and pay attention to the list of interfaces: wireless adapters are usually labeled as wlan0, wlp2s0 or variations, while a wired connection has a prefix eth or en.
If the interface is missing from the list, this could indicate a physical malfunction, a missing driver, or a kernel-level lock. In some cases, the system may software-lock wireless modules to save power, so it's worth checking the lock status via rfkill list.
- 🔍 Run the command
ip ato display all network interfaces and their current status. - 🔍 Use
lspcifor built-in maps orlsusbfor external adapters to find out the exact chipset model. - 🔍 Check the team
rfkill list allto make sure that the wireless module is not blocked ("Soft blocked" or "Hard blocked").
⚠️ Important: If you're using a virtual machine (VirtualBox or VMware), make sure the USB adapter is forwarded to the guest OS. Virtual machines, by default, use the host Wi-Fi adapter as a wired connection, which will prevent you from performing penetration tests on wireless networks.
Installing and updating Wi-Fi drivers
The most common reason for Wi-Fi not working in Kali Linux is the lack of proprietary drivers for your network adapter. The Linux kernel contains drivers for most devices, but some manufacturers, especially Broadcom and certain Realtek models, require manual installation of packages from repositories.
Before installing new packages, it is critical to update the repository lists, otherwise the system may not find the necessary files. Use the command sudo apt update, and then try installing universal firmware packages that contain microcode for many devices.
Broadcom devices often require a package firmware-brcm80211, and for some older Intel cards - firmware-iwlwifiAfter installing the driver, you must reboot the system or reinitialize the kernel module for the changes to take effect.
sudo apt updatesudo apt install firmware-realtek firmware-atheros firmware-brcm80211
sudo modprobe -r brcmfmac && sudo modprobe brcmfmac
In situations where the standard repositories don't help, you have to download drivers from GitHub and compile them manually using DKMS. This is a more complex process, requiring the installation of kernel headers (linux-headers) and compiler build-essential.
What to do if the driver is not installed?
If the standard installation doesn't help, find the exact chip model using lsusb, then search the "kali-linux-headers" repository and the driver specific to your model on GitHub. It's often necessary to disable Secure Boot in the BIOS, as it can block the signing of third-party kernel modules.
Configuration via the NetworkManager graphical interface
For most users, especially those who are just getting acquainted with the distribution, the most convenient way to connect is a graphical utility NetworkManagerIt allows you to manage connections through a clear interface in the system tray, hiding complex terminal commands.
If you see a network icon in the upper right corner of the screen, simply click on it, select your network from the list, and enter the password. However, in Kali, this service is sometimes disabled by default or conflicts with a service. wicd or networking.
To activate the graphical manager, ensure the corresponding service is running. You can check its status and enable autostart via the system init manager. This ensures that the connection attempt will occur automatically the next time you log in.
| Team | Description of action | Necessary rights |
|---|---|---|
systemctl status NetworkManager |
Checking the current status of the service | User |
sudo systemctl start NetworkManager |
Starting service now | Root (sudo) |
sudo systemctl enable NetworkManager |
Adding to startup | Root (sudo) |
nmtui |
Launching the text-based setup interface | User |
An alternative to the graphical interface can be a text utility. nmtui, which runs in the terminal. It's useful if the graphical shell is unstable or you're connected to a server via SSH and need to configure Wi-Fi remotely.
☑️ Checking NetworkManager settings
Connecting via terminal using nmcli
For advanced users and automation scenarios, the command line utility is preferred. nmcli (Network Manager Command Line Interface). It provides full control over connections and allows for scripting of the connection process, which is often required during penetration testing.
The first step is always to scan for available networks to find out the exact name (SSID) and make sure there is a signal. Command nmcli dev wifi list will display a list of networks, their frequency, signal strength and security status.
To connect to an open network, simply enter the SSID, but for WPA2/WPA3-protected networks, the "passwords" flag is required. The system will save the connection profile, and if a signal is available, the connection will be established automatically in the future, without re-entering the data.
nmcli dev wifi connect "Your_Network_Name" password "Your_Password"
If the connection is successful, you'll see the message "Connection successfully added." If an error occurs, the system will display a reason code, which can be deciphered in the documentation. Often, problems stem from an incorrect password or a weak signal.
- 📡 Use the flag
--rescan yesto force a refresh of the network list if the desired access point is not displayed. - 📡 For hidden networks (Hidden SSID), add the parameter
hidden yesat the end of the connection command. - 📡 To delete a saved profile and reconnect, use the command
nmcli connection delete "Network_Name".
⚠️ Warning: When working in the terminal, pay attention to the case of the characters in the network name and password. A single character error will result in access being denied, and the system may not immediately notify you, attempting to reconnect endlessly.
Troubleshooting Realtek and Broadcom Drivers
Chip adapters Realtek And Broadcom Historically, these are the most problematic issues in the Linux environment, requiring special attention. Laptop owners often encounter a situation where, after updating the kernel, the Wi-Fi module becomes undetectable or operates erratically.
For Broadcom devices, Kali Linux has a special meta-package that attempts to detect the model and install the correct driver automatically. If automatic installation fails, you may need to disable the conflicting driver. b43 and activate the proprietary wl.
With Realtek adapters, the situation is often complicated by the fact that manufacturers don't publish driver source code in open kernel repositories. In such cases, DKMS (Dynamic Kernel Module Support) must be used to compile the module for the current kernel version.
Critical: Before compiling drivers, make sure the packages are installedlinux-headers-$(uname -r) And build-essential, otherwise the compilation process will be interrupted at the first step.
After installing drivers for these chipsets, it is often necessary to manually prevent the system from using the default driver. This is done by adding the module to the blacklist (blacklist) in the boot configuration files.
Setting up the monitor mode for auditing
One of the main reasons to use Kali Linux is the ability to put the wireless adapter into monitor mode (Monitor Mode). In this mode, the card captures all packets in the air, not just those addressed to it, which is necessary for traffic analysis and penetration testing.
Standard NetworkManager tools may interfere with the transition to this mode, so before you start working with tools like Airodump-ng or Reaver, it is recommended to stop network managers. This will free up the interface for direct management.
A utility is used to translate the interface. airmon-ng. It will automatically detect processes that may interfere with your work and create a virtual monitor interface, usually called wlan0mon.
sudo airmon-ng start wlan0
sudo iwconfig wlan0mon mode monitor
After completing the testing, do not forget to return the adapter to normal operation mode, otherwise normal Internet access via Wi-Fi will be impossible. Command airmon-ng stop or rebooting the system will restore the default settings.
⚠️ Warning: Using monitor mode or attacking other networks without the owner's written permission is prohibited by law. Use these tools only for educational purposes or on your own equipment.
Frequently Asked Questions (FAQ)
Why doesn't Kali Linux see my Wi-Fi adapter?
Most likely, the kernel drivers for your device are missing or not installed. Check the chip model using lsusb and install the corresponding package firmware. Also make sure that the adapter is not blocked by the command rfkill.
How do I switch between Managed and Monitor modes?
Use the utility airmon-ng to enable monitor mode. To return to normal mode (Managed), use the command iwconfig [interface] mode managed or stop the monitor through airmon-ng stop.
Can Kali Linux be used as a primary Wi-Fi system?
Technically possible, but not recommended due to potential driver issues and reduced usability for everyday tasks. It's best to run Kali from a Live USB or in a virtual machine.
What should I do if the network does not connect after entering the password?
Check your keyboard layout and make sure Caps Lock is not enabled. Try deleting the saved network profile via nmcli and create it again. Also, check if there's a MAC address filter on your router.
Is internet required for Wi-Fi to work in monitor mode?
No, monitor mode is used for passive listening and doesn't require an access point or internet connection. However, internet access is required for installing drivers and updates.