The Wi-Fi Management Daemon
In Ubuntu Linux, netplan is the standard utility for configuring networking. Behind the scenes, when Netplan is configured to manage a wireless interface, it dynamically generates configurations and spawns a background service called [email protected] (which in turn relies on wpa_supplicant) to handle the actual WPA/WPA2 authentication and connection to the Wi-Fi router.
While this is essential for a laptop or a server that relies on Wi-Fi for connectivity, it is completely unnecessary overhead on a machine that is strictly hardwired via Ethernet. If your Ubuntu server sits in a rack and is physically plugged into a switch, running any Wi-Fi authentication daemons in the background wastes system memory and increases the potential attack surface. To lock down your network stack and optimize performance, you should disable these wireless authentication services if you don’t use them.
How to Disable the Netplan WPA Service
You can permanently stop this wireless authentication daemon using systemctl.
Warning: Only perform this if your computer is connected via an Ethernet cable. Disabling this will instantly break any active Wi-Fi connections managed by Netplan.
- Open your Ubuntu Terminal or connect via SSH.
- Stop the active service if it is currently running (you may need to specify the interface, e.g.,
[email protected], or stop the parent service):
sudo systemctl stop wpa_supplicant.service
- Disable the service to prevent it from starting automatically on the next boot:
sudo systemctl disable wpa_supplicant.service
- To ensure Netplan or NetworkManager cannot wake the supplicant up, mask it completely:
sudo systemctl mask wpa_supplicant.service
Your Ubuntu server will immediately stop loading the wireless authentication daemons, streamlining your networking stack for a pure Ethernet environment.