Connecting Wi-Fi on Kali Linux: From Basic Settings to Troubleshooting

Kali Linux — is a powerful security testing tool, but its configuration often raises questions among beginners. Especially when it comes to connecting to Wi-Fi: standard methods here work differently than in Ubuntu or WindowsIn this article, we'll cover all methods for connecting to wireless networks—from a simple graphical interface to manual commands in the terminal.

Problems with Wi-Fi on Kali Linux are usually related to three factors: the lack of drivers for your adapter, incorrect network settings, or the specifics of working with network managerWe won't limit ourselves to basic instructions; we'll also consider less obvious cases, such as when the network is visible but doesn't connect, or when manual input is required. DNS.

Important: If you use Kali Linux in a virtual machine (for example, VirtualBox or VMware), the connection process will be different. In this case, first configure network mode in the VM settings on "Network Bridge" (Bridged) or "NAT".

1. Hardware check: determine if Kali Linux sees your Wi-Fi adapter

Before setting up the connection, make sure the system can actually see your wireless adapter. To do this, run the following command in the terminal:

lspci -knn | grep -iA3 net

In the output, look for lines mentioning Network controller or WirelessIf the adapter is not displayed, the problem may be:

  • 🔌 The physical Wi-Fi switch on the laptop is disabled (check the key Fn + F2/F12 or hardware switch).
  • 🖥️ For a virtual machine without USB/Wi-Fi adapter forwarding (configure in the VM settings).
  • 🚫 Missing drivers (more on this in the next section).

If the adapter is detected, but with a mark rev ff — this is a sign of missing drivers. For example, this often happens with adapters. Broadcom or new models Intel AX200/AX210.

📊 What type of Wi-Fi adapter are you using?
Built into the laptop
USB-dongle
PCIe card
Virtual (in VM)
Don't know

2. Installing drivers for the Wi-Fi adapter

Kali Linux doesn't always come with proprietary drivers out of the box. If your adapter isn't working, first update your system:

sudo apt update && sudo apt full-upgrade -y

Then check which chipset your adapter uses with the command:

lspci -vnn | grep -i net

For the most common cases:

ChipsetDriver installation commandNotes
Broadcom (BCM43xx)sudo apt install firmware-b43-installerYou may need to disable Secure Boot in BIOS.
Realtek (RTL8188/RTL8821)sudo apt install realtek-rtl8188eus-dkmsFor RTL8822BE use rtl8822be-dkms
Intel (AX200/AX210)sudo apt install firmware-iwlwifiAfter installation, reboot
Mediatek (MT7921)sudo apt install firmware-misc-nonfreeKernel 5.10+ required

If your adapter is not listed in the table, try the universal package:

sudo apt install firmware-misc-nonfree

3. Connecting to Wi-Fi via a graphical interface (GNOME/KDE)

If you use Kali Linux with a graphical shell (GNOME, KDE or Xfce), the connection process is as simple as possible:

  1. Click on the network icon in the upper right corner (next to the clock).
  2. Select the desired network from the list.
  3. Enter your password and click "Connect".

If there is no network icon, check if the network manager is running:

sudo systemctl status NetworkManager

If the service is not active, start it:

sudo systemctl start NetworkManager

sudo systemctl enable NetworkManager

What to do if your network requires 802.1X authentication (Enterprise)

:

To connect to corporate networks with WPA-Enterprise or 802.1X:

  1. In the GUI, select the network and click "Network Settings".
  2. Go to the Wi-Fi Security tab (Wi-Fi Security).
  3. Select the authentication type (e.g. PEAP or TTLS).
  4. Please enter your login/password or path to the certificate.

If your GUI does not support 802.1X, use wpa_supplicant in the terminal (see section 5).

4. Connecting to Wi-Fi via terminal (nmcli)

If the graphical interface is not available or you prefer to work in the console, use the utility nmcli (Network Manager Command Line). First, check the list of available networks:

nmcli device wifi list

To connect to an open network:

nmcli device wifi connect "NETWORK_NAME"

For a secure network (WPA/WPA2):

nmcli device wifi connect "NETWORK_NAME" password "PASSWORD"

If the network is hidden (hidden), add the flag:

nmcli device wifi connect "NETWORK_NAME" password "PASSWORD" hidden yes

The network is displayed in nmcli device wifi list|The password was entered correctly|The network name is case-sensitive|If the network is hidden, the flag is used hidden yes

-->

To check the connection status:

nmcli connection show

ip a show wlan0

5. Manual connection via wpa_supplicant (for advanced users)

If NetworkManager doesn't work or you prefer a minimalist approach, use wpa_supplicantThis method requires editing configuration files, but gives you full control over the connection.

First turn it off NetworkManager for the current session:

sudo systemctl stop NetworkManager

Then edit the configuration file:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Add a block with your network settings (example for WPA2-PSK):

network={

ssid="NETWORK_NAME"

psk="PASSWORD"

key_mgmt=WPA-PSK

}

Save the file (Ctrl+O, then Ctrl+X) and start the connection:

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

sudo dhclient wlan0

To make the connection persistent, add wpa_supplicant to startup:

sudo systemctl enable wpa_supplicant

6. Solving common Wi-Fi problems

Even after proper setup, the connection may not work. Let's look at common errors and their solutions:

  • 🔄 The network keeps disconnecting: Check the adapter power saving settings with the command iwconfig wlan0. If there is a line Power Management:on, turn it off: sudo iwconfig wlan0 power off.
  • 🔒 Authentication error: Make sure you enter the password correctly (case sensitive!). For networks with WPA3 an update may be required wpa_supplicant up to version 2.10+.
  • 🌐 No internet access when connected: Check it out DNS and routes. Resetting the settings often helps: sudo nmcli networking off && sudo nmcli networking on.
  • 📡 Not a single network is visible: Check if Wi-Fi is blocked at the BIOS or hardware switch level. Also, make sure the adapter is not in mode airplane mode: rfkill list.

A critical feature of Kali Linux: network interfaces can be disabled by default for security. To unblock the Wi-Fi adapter, use the command:

sudo rfkill unblock wifi
⚠️ Attention: If you connect to public networks (hotels, airports), Kali Linux may be blocked due to active port scanning. In this case, temporarily disable services such as metasploit or nmap.

7. Setting up Wi-Fi in monitor mode (for security testing)

One of the key features Kali Linux is the ability to work with Wi-Fi in monitor mode (monitor mode). This is necessary for traffic analysis or network security testing. To enable this mode:

sudo airmon-ng check kill

sudo ip link set wlan0 down

sudo iwconfig wlan0 mode monitor

sudo ip link set wlan0 up

Check that the mode is enabled:

iwconfig wlan0 | grep "Mode:Monitor"

To return to normal mode:

sudo ip link set wlan0 down

sudo iwconfig wlan0 mode managed

sudo ip link set wlan0 up

sudo systemctl restart NetworkManager

⚠️ Attention: Operating in monitor mode may violate the laws of your country if used to intercept other people's data. Kali Linux This mode is intended for testing purposes only. own networks with the owner's permission.

8. Alternative connection methods (USB tethering, Ethernet)

If you can't connect to Wi-Fi, consider these alternatives:

  • 📱 USB tethering from phone: Connect your smartphone via USB, enable modem mode in the phone settings. Kali Linux the network will appear automatically in usb0.
  • 🌍 Ethernet cable: Connect to the router via cable and set up Wi-Fi distribution via hostapd (if you need to share the Internet with other devices).
  • 🔄 Repeater mode: If you have a second Wi-Fi adapter, you can set it up Kali Linux as a signal repeater using create_ap.

USB tethering may require installation of additional packages:

sudo apt install usb-modeswitch

If the Internet via tethering does not work, check the settings DNS:

sudo nano /etc/resolv.conf

Add the following lines:

nameserver 8.8.8.8

nameserver 8.8.4.4

⚠️ Attention: When using USB tethering on Android 10+ you may need to enable the "File Transfer" option (MTP) in the USB connection settings, otherwise the network will not appear in the system.

FAQ: Frequently Asked Questions about Wi-Fi on Kali Linux

Why can't Kali Linux see my Wi-Fi network, even though other devices can?

This may be due to:

  1. Lack of drivers for your adapter (check section 2).
  2. Incompatibility with modern standards (for example, Wi-Fi 6E may not be supported by the kernel by default).
  3. Regional settings: Some countries limit frequencies. Check your current region with the command iw reg get and install your own if necessary: sudo iw reg set RU (replace RU to your country code).
How to connect to Wi-Fi without a password (open network)?

For open networks use:

nmcli device wifi connect "NETWORK_NAME" --ask

If the network requires you to accept terms and conditions through a web interface (like hotels), after connecting, open your browser and go to any address (for example, http://neverssl.com).

Can Kali Linux be used as a Wi-Fi hotspot?

Yes, you need to install the utility for this. create_ap:

sudo apt install create_ap

sudo create_ap wlan0 eth0 APNAME PASSWORD

Where wlan0 - an interface for distributing Wi-Fi, and eth0 — an interface with Internet access (e.g. Ethernet).

Why did Wi-Fi stop working after updating Kali Linux?

Kernel or network package updates can break driver compatibility. Try:

  1. Roll back to the previous kernel version in the boot menu (GRUB).
  2. Reinstall the drivers (see section 2).
  3. Check kernel logs for errors: dmesg | grep -i firmware.

If the problem appeared after the update NetworkManager, try restarting it with clear state:

sudo rm /var/lib/NetworkManager/NetworkManager.state

sudo systemctl restart NetworkManager

How to speed up Wi-Fi on Kali Linux?

To optimize speed:

  • Disable adapter power saving: sudo iwconfig wlan0 power off.
  • Install a more modern kernel (for example, from the repository kali-rolling).
  • Change the channel width to 40 MHz (if your router supports it):
sudo iw dev wlan0 set channel 6 HT40+

Also check if the channel is overloaded - use sudo iwlist wlan0 scanning | grep Frequency to analyze the workload.