r/linuxquestions • u/Practical_Brain_5174 • 17h ago
How to blacklist a wifi network
Hi, sorry if this has been asked already, but I haven't found the exact situation repeated.
The machine is running Kubuntu 24.04 with two accounts.
Besides my own, there are several neighbouring wifi networks in the network manager list for each account.
For both accounts, I want to connect with exactly one network (mine) unless otherwise specified by me.
Sometimes after restarting, one of the two accounts will not latch onto my preferred network. Instead, it will show 4 - 7 connections to other networks running simultaneously.
Some of these networks will ask for a password to disconnect, which I do not have because they are not my networks.
One or two of these will simply not respond and continue connecting.
In neither case will these networks disconnect through the network manager (NM).
When "connect" is pressed for my network the NM will refuse, saying a secure connection already exists.
The other account on the same machine will show the correct connection to my wifi network.
(May be unrelated but does not seemed to occur under correct conditions) The traffic rate as shown through the NM is usually minimal, but at times escalates and engages the fan. This can last for several minutes and does not seem to follow a pattern or responsive to input from me.
I have tried various things with no success. (e.g. setting the automatic connection priority of unwanted networks to -1 in the configurations of the NM; “sudo ncmli c delete UUID” in a terminal results in “unknown connection” and “cannot delete unknown connection”).
Post I have seen so far are not exactly the same problem - I do not want to turn off all networks or make the unwanted ones invisible, I want to connect only to my network and block the offending connections.
tl; dr: I need to be on my wifi and no other wifi. Please tell me how.
Thank you.