How to Set Up Wi-Fi in Kali Linux: From GUI to Terminal

The Kali Linux operating system is the de facto standard for information security professionals, but its initial configuration often presents difficulties for beginners. Unlike typical consumer distributions, it prioritizes the stability of pentesting tools over out-of-the-box usability. Therefore, basic wireless network configuration, including Wi-Fi, may require manual intervention, especially when working with external adapters.

The process of connecting to the Internet in this environment is divided into two fundamentally different scenarios: standard use of the network for accessing repositories and switching the adapter to monitor mode for security auditing. Understanding the difference between these modes is critical, as the drivers behave differently. The standard managed mode allows connecting to routers, while the monitor mode is required for packet interception.

In this article, we'll cover all configuration steps in detail, from the quick-start graphical interface to advanced command-line methods. You'll learn how to identify your adapter, update it, and more. firmware and resolve common issues with Realtek drivers. Proper network configuration is the first step to successful operation in Kali.

Checking compatibility and identifying the adapter

Before you begin setting up, you need to make sure the operating system detects your wireless device. In Kali Linux, most modern adapters are automatically detected, but external USB modules are often used for specific auditing tasks. The first step should always be to diagnose the hardware to determine which interface is being used.

Open the terminal and enter the command ip a or more specific iwconfigIn the output you should find an interface, usually denoted as wlan0, wlp2s0 or a similar combination of letters and numbers. If the list is empty or contains only lo (loopback) and eth0 (wired network), then the adapter is either not connected or there are no settings for it drivers.

For more detailed information, use the utility lsusb, if the device is connected via USB. It will display the vendor and product ID, which is necessary for searching for proprietary drivers in case of problems. Chipsets from Atheros, Ralink And Realtek, each of which requires a special approach.

  • 📡 Use the command iw dev to display a list of all wireless interfaces and their current status.
  • 💻 Check for drivers via lspci -k (for internal cards) or lsusb -v (for external).
  • 🔍 Pay attention to the line "Kernel driver in use" - it indicates which kernel module controls the device.
  • ⚙️ Make sure the interface is not blocked programmatically by a command rfkill list.

⚠️ Note: Some built-in laptop Wi-Fi modules (especially Broadcom) may not support monitor mode. Professional security audits often require an external adapter with an Atheros AR9271 or Realtek RTL8812AU chipset.

📊 What type of adapter do you use to work in Kali?
Built into the laptop
External USB (budget)
Professional USB with antenna
Virtual machine (passthrough)
I don't know / Other

Setting up Wi-Fi via a graphical interface

For users switching from Windows or macOS, the easiest way to connect to the network will remain the graphical shell. Kali Linux uses the desktop environment by default. Xfce, which has a built-in network management applet. This method is ideal for quickly gaining internet access for system updates.

In the upper right corner of the screen, find the network icon (usually two arrows or a Wi-Fi fan). Click it to see a list of available access points. If the desired network isn't listed, make sure the wireless adapter is enabled using the toggle in the same menu. Selecting a network from the list will prompt you for a password.

After entering the security key, the system will try to obtain an IP address via DHCPIf the connection is successful, a check mark will appear next to the network name, and you can check the address in the terminal with the command ip addr showIf unsuccessful, the system will prompt you to run diagnostics or check your proxy settings.

Sometimes automatic connection fails due to network manager conflicts. In Kali, several networks can be running simultaneously. NetworkManager And Wicd, which leads to errors. It is recommended to leave only one active service, usually NetworkManager, which is managed through a graphical interface.

Connecting via Terminal: Netctl and iwctl

For experienced users or in situations where a graphical shell is not available (for example, when restoring a system), the command line becomes an indispensable tool. Kali Linux offers several utilities for manual connection management, including netctl And iwctl (interface to iwd). These tools provide finer control over the connection process.

Let's consider the use iwctl, which is the modern standard. Run the utility in the terminal, then run the command station wlan0 scan to search for networks. After scanning, use station wlan0 get-networks to display a list of available access points with their status.

To connect, enter the command station wlan0 connect"Network_Name"The system will prompt for a password (passphrase). After successful authentication, you need to obtain an IP address. This can be done automatically by running a DHCP client in a separate terminal window or in the background, for example dhcpcd wlan0.

An alternative method is to use nmcli (NetworkManager CLI). It allows you to create connection profiles that persist across reboots. The command nmcli device wifi connect"SSID" password"password" will do all the work automatically, including setting up DNS and routing.

  • 📝 Create a connection profile for automatic connection in the future, saving the configuration.
  • 🔐 Use the command nmcli connection show to view all saved profiles and their statuses.
  • 🗑️ Delete old or non-working profiles with the command nmcli connection delete"Name" to avoid conflicts.
  • 🔄 Restart the network stack with the command nmcli radio wifi off And nmcli radio wifi on in case of failures.

☑️ Manual connection checklist

Completed: 0 / 5

Installing drivers and working with firmware

One of the most common reasons why Wi-Fi doesn't work in Kali Linux is the lack of proprietary firmware. The Linux kernel is open source, but many networking equipment manufacturers (especially Broadcom and some Realtek models) don't provide open source drivers, requiring binary blobs to be downloaded.

If your adapter is not detected or is unstable, check the package firmware-realtek, firmware-atheros or firmware-brcm80211You can install them through a package manager, but you'll first need internet access, perhaps via a USB modem (Android) or an Ethernet cable.

Run the command sudo apt update, and then install the required package. For example: sudo apt install firmware-realtekAfter installation, be sure to reboot the system or reconnect the kernel module using the command modprobe -r module And modprobe module.

In some cases, standard repositories are insufficient, and drivers must be compiled from source code on GitHub. This is especially true for new adapters with chips. RTL8812AU or RTL8821CU. The process requires kernel headers to be installed (linux-headers) and compiler build-essential.

⚠️ Warning: When compiling drivers from third-party sources (GitHub), you assume responsibility for the security of the code. Always check the repository's reputation and ensure the authors have digital signatures.

Below is a table of popular chipsets and their corresponding firmware packages in the Kali repositories:

Manufacturer / Chipset Firmware package Monitor mode support Note Stability
Atheros AR9271 firmware-atheros Yes (Native) The best choice for auditing High
Realtek RTL8812AU realtek-rtl88xxau-dkms Yes (via patches) Requires DKMS Average
Broadcom BCM43xx firmware-brcm80211 Partially Complex installation Low
Ralink RT3070 firmware-ralink Yes Old but reliable High
Intel Dual Band firmware-iwlwifi Limited Good for normal use High
What to do if the driver is not installed?

If a standard installation via APT doesn't help, try removing existing DKMS modules with the dkms remove command, clearing the APT cache, and attempting to install the package again. Also, check the dmesg | tail logs immediately after connecting the device.

Switching the adapter to monitor mode

A unique feature of Kali Linux is the ability to put the wireless interface into monitor mode. In this state, the card stops filtering frames not intended for it and begins capturing all traffic on the selected frequency. This is a fundamental feature for analyzing the security of Wi-Fi networks.

To translate the interface, you must first disable it. Use the command sudo ip link set wlan0 downThen change the operating mode using the utility. iw: sudo iw dev wlan0 set type monitorAfter this, the interface needs to be activated again: sudo ip link set wlan0 up.

A more convenient tool is airmon-ng, which automatically handles dependent processes that interfere with work (for example, wpa_supplicant). The command sudo airmon-ng start wlan0 will create a new virtual interface, usually called wlan0mon.

It's important to understand that in monitor mode, you won't be able to connect to the internet through this adapter in the usual way. Simultaneous networking and auditing often require two adapters: one for connection and one for sniffing. You can return the adapter to normal mode using the command sudo airmon-ng stop wlan0mon.

  • 🛑 Before running airmon-ng, close all programs using the network to avoid conflicts.
  • 📡 Use the command iwconfig to check that the Mode line indicates "Monitor".
  • 🔧 If the mode doesn't turn on, try the command sudo ip link set wlan0 down before switching.
  • 📉 Keep in mind that in monitor mode, the data transfer rate does not matter, but the channel coverage is important.

Diagnostics and problem solving

Even with proper configuration, situations may arise where the connection is unstable or completely absent. A common issue in Kali Linux is the wireless module being blocked by a service. rfkillThis is a software or hardware switch that can disable the radio interface.

Check the lock status with the command rfkill listIf you see the status "blocked: yes", use the command sudo rfkill unblock all To remove restrictions, physically toggling the Wi-Fi switch on the laptop can sometimes help.

Another common issue is an address conflict or incorrect DNS settings. If you're connected to the router but websites aren't opening, try entering public DNS (e.g., 1.1.1.1 or 8.8.8.8) in the connection settings or file. /etc/resolv.conf.

It's also worth keeping in mind that virtual machines (VirtualBox, VMware) require proper USB device forwarding. The host machine's internal Wi-Fi module cannot be forwarded directly to the Kali Linux guest—it remains on the host system. To work in a VM, an external USB adapter is required.

⚠️ Note: Interfaces and commands may change in new versions of the distribution. Always consult the official Kali Docs documentation if standard methods stop working after a major system update.

Why doesn't Kali Linux see my Wi-Fi adapter?

Most likely, kernel drivers for your device are missing. Check the chip model using lsusb in another OS or on the host machine, then find and install the corresponding firmware package or driver from GitHub. Also, check if the USB port is enabled in the BIOS/UEFI settings.

Is it possible to share Wi-Fi with Kali Linux?

Yes, this is possible. You can use hostapd utilities or built-in NetworkManager functions to create an access point. However, most built-in cards do not support simultaneous operation of a client and an access point (AP mode) on the same channel.

How can I find the password for a saved Wi-Fi network?

Passwords are stored in the NetworkManager configuration file. You can find them in the /etc/NetworkManager/system-connections/ directory. The files are protected by root privileges, so you'll need to use the sudo cat command to view the contents.

Why do I need monitor mode if I'm not a hacker?

Monitor mode is useful not only for security audits, but also for diagnosing interference, checking network coverage, analyzing channel load, and debugging your own IoT equipment. It's a powerful tool for any network engineer.

Why did Wi-Fi disappear after the update?

A Linux kernel update may have caused proprietary drivers (DKMS) to not be automatically rebuilt for the new kernel version. Try running sudo dkms autoinstall or reinstalling the driver package.