Hello,
I’d like to randomize the MAC address. I know how to do this via Network Manager (GUI), but I’m not sure if that’s the best way for Ubuntu (which should use netplan). I recently discovered how to mask the MAC address, not manually on a network by network, but automatically via the configuration files in the /etc/NetworkManager/conf.d/ folder. For example:
myconfig.conf
Now, if I set wifi.cloned-mac-address=random for certain wifi networks, I run into problems because authentication is based on the MAC address-password pair.
Is there any way to have a custom setting for a specific network?
Thank you
If random is breaking authentication on that specific Wi-Fi, you don’t want to set random on that connection - that’s what is causing the issue in the first place!
Any setting on a specific connection profile will override your global /etc/NetworkManager/conf.d/ config. You have two options depending on what the network expects:
If the network uses a whitelist or MAC filtering, use your real hardware MAC:
With stable, NetworkManager creates a persistent randomized MAC tied to that specific SSID. It will always use the exact same MAC whenever you connect to that network, but your real hardware MAC stays hidden everywhere else…