Working with the operating system Kali Linux Users often associate the term with advanced penetration testing, security auditing, and the use of specialized utilities. However, the foundation for any network activity, whether port scanning or packet sniffing, is a stable and properly configured network connection. Newcomers installing the distribution for the first time may encounter a situation where the graphical interface doesn't display available networks, or the system doesn't detect the wireless adapter at all.
Unlike desktop builds like Ubuntu or Mint, Kali By default, many services can be disabled for security and to minimize the system's footprint. Connecting to the internet here isn't just a matter of clicking an icon; sometimes it requires manually tweaking configuration files or checking drivers. Understanding how the network stack works in this OS is critical for any information security professional.
In this guide, we'll cover all aspects of setting up a wireless connection in detail. We'll cover both graphical methods and standard NetworkManager, and work through the terminal using the utility nmcli And iwconfigWe will also cover issues related to diagnosing driver issues, which is especially relevant when using external USB adapters for traffic monitoring.
Checking adapter compatibility and status
Before attempting to enter a network password, you need to ensure that the operating system physically recognizes your network hardware. In the Linux world, and especially in pentesting distributions, driver support may differ from that of Windows. Often, built-in laptop modules work correctly, while external adapters require separate firmware installation.
For initial diagnostics, use the command ip link or more specific to wireless networks iwconfigThe output of these utilities will show a list of interfaces: wired is usually designated as eth0 or enp3s0, and wireless - like wlan0 or wlp2s0If you see the interface but it's not active, that's a good sign—the driver is loaded.
⚠️ Attention: If the team
iwconfigIt gives the error "command not found", you need to install the packagewireless-toolsvia the command line, having previously connected via Ethernet or USB modem.
Particular attention should be paid to the adapter's operating mode. For regular surfing, the mode Managed, but security audits often require switching to monitor mode. Ensure that the adapter isn't blocked in monitor mode by other running processes before connecting normally.
NetworkManager GUI
Modern versions Kali Linux supplied with work tables XFCE, GNOME or KDE, where network management is implemented through the NetworkManager daemon. This is the simplest option for users who don't want to delve into console commands. In the upper right corner of the screen, there's usually a network icon. Clicking it displays a list of available access points.
If the network list is empty but the adapter is detected by the system, the network management service may simply be stopped. You can start it through the terminal by entering the command to activate the service. After restarting the service, the tray icon should become active and the network scan should be successful.
- 📡 Turning on Wi-Fi: Make sure the Wireless slider in the menu is switched to the "On" position.
- 🔒 Safety: When connecting to a secure network, the system will ask for a password; for corporate networks, certificate setup may be required.
- ⚙️ IP settings: DHCP is used by default, but a static IP address can be specified in the connection parameters.
Sometimes the graphical interface glitches and doesn't update the network list. In this case, simply switching to airplane mode or forcing a reconnection via the context menu helps. It's also worth checking whether a firewall is blocking the connection, although in Kali By default it is often disabled for ease of testing.
Connection via command line (nmcli)
For professionals working with servers without a graphical shell or via SSH, the utility becomes an indispensable tool nmcli (NetworkManager Command Line Interface). It allows complete control over network connections by creating profiles, changing parameters, and switching between them without leaving the terminal.
The first step is always to scan for available networks. The command nmcli dev wifi list will display a table with the SSID, security mode, channel, and signal strength. Pay attention to the SIGNAL column: the higher the number, the more stable the connection. If the desired network isn't listed, you can rescan it with the rescan flag.
nmcli dev wifi connect "Network_Name" password "Your_Password"
This command will attempt to create a new connection and automatically connect to it. If the connection is successful, the system will save the profile, and in future, the connection will occur automatically whenever a network appears in range. For hidden networks (Hidden SSID), you will need to add the parameter hidden yes.
☑️ Connection algorithm via nmcli
It is important to note that nmcli Manages NetworkManager daemons specifically. If you use other connection managers, the syntax may differ. However, in the default build Kali This tool is the most basic and reliable for everyday work.
Manual configuration via wpa_supplicant and dhclient
In situations where NetworkManager is unavailable or not working correctly, a classic bundle of utilities comes to the rescue wpa_supplicant And dhclientThis method is considered more "low-level" and provides a complete understanding of how the process of associating with an access point and obtaining an IP address occurs.
First, you need to create a configuration file containing the network SSID and password hash. The hash is generated using the utility wpa_passphrase, which takes a network name and password as input and produces a completed configuration block as output. This block needs to be saved to a file, for example, /etc/wpa_supplicant.conf.
| Team | Description of action | Necessary rights |
|---|---|---|
ip link set wlan0 up |
Activating the wireless interface | root / sudo |
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf |
Running the authentication process in the background | root / sudo |
dhclient -v wlan0 |
Requesting an IP address from a DHCP server | root / sudo |
ping -c 4 8.8.8.8 |
Checking Internet accessibility | user |
After executing the command wpa_supplicant in the background, the interface should go into the "associated" state. The next step dhclient Requests network parameters. If successful, you'll receive an IP address, gateway, and DNS servers, after which you'll be able to access the internet.
⚠️ Attention: When using the manual method
wpa_supplicantThe configuration is not automatically saved after reboot. For persistent use, this method requires creating a systemd service or adding scripts to startup.
Working with external adapters and drivers
One of the most common problems in Kali Linux The lack of drivers for external Wi-Fi adapters, especially those that support monitor mode and packet injection (such as those on Atheros or Realtek chipsets), is a major issue. Integrated laptop cards often work out of the box, but for serious work, enthusiasts purchase specialized hardware.
If the adapter is not detected, check the command output dmesg | grep firmwareThe system may explicitly indicate the absence of a required firmware file. In this case, you will need to find the appropriate package. firmware-realtek, firmware-atheros or another one suitable for your chipset and install it.
Where can I get drivers?
Kali's official repositories contain most popular drivers. For rare cases, you can use the kali-rolling repository or build drivers from source code on GitHub, but this requires kernel module compilation skills.
A common situation is when a driver is loaded, but the interface is locked. You can unlock it with the command ip link set dev wlan0 upIt is also worth checking whether software blocking is enabled via rfkill. Team rfkill list will show the status of the blocks, and rfkill unblock wifi will take them off.
For users planning to perform security audits, it's critical to ensure the driver supports the required features. Not all drivers allow switching to monitor mode. Always check the chipset's compatibility with your system before purchasing hardware. Kali Linux.
Diagnostics and problem solving
Even with proper setup, connection stability issues may still arise. The signal may be weak, the connection may constantly drop, or the system may not detect 5 GHz networks. Diagnosing these issues requires a sequential process of eliminating factors.
The first thing you need to do is check the log files. System log /var/log/syslog or specialized output dmesg Contain detailed information about why the connection is failing. Authentication errors, DHCP timeouts, or driver issues will be clearly indicated.
- 📉 Weak signal: Try changing the channel on your router or using an adapter with an external antenna.
- 🔄 IP conflict: If the IP is not issued, try clearing the leased address with the command
dhclient -rbefore asking again. - 🛡️ Blocks: Make sure MAC filtering on your router is not blocking your device.
It's also worth mentioning energy saving issues. Some Wi-Fi drivers may go into sleep mode, causing connection drops. This feature can be disabled in the settings. NetworkManager or by adding the appropriate directive to the driver configuration file.
Why doesn't Kali Linux see my Wi-Fi adapter?
Most likely, your system is missing a proprietary driver or firmware for your model. Check the chipset model using lsusb and find the corresponding package in the repositories. A hardware lock using rfkill is also possible.
Can Kali Linux be used as a primary OS at home?
Technically possible, but not recommended. Kali is designed for security testing, has open ports by default, and runs as root in older versions, which reduces overall system security during everyday use.
How to switch to monitor mode?
For this, use the airmon-ng utility. The airmon-ng start wlan0 command will create a virtual interface (e.g., wlan0mon) running in monitoring mode. Before doing this, you must close any processes that are interfering with the card's operation.
What to do if the Wi-Fi password is not accepted?
Make sure the correct security type (WPA2/WPA3) is selected. Check your keyboard layout. If you're using a corporate network, you may need to configure EAP-TLS or other authentication settings instead of just entering a password.