Anonymizing your MAC Address in Network Manager
You must spend time ensuring Network Manager is set up properly.
First and foremost, I do not want Network Manager to use dhclient as the dhcp client, however, it seems Network Manager prefers to use dhclient if installed.
To force Network Manager to use its internal DHCP server, I have added the below to my
/etc/NetworkManager/NetworkManager.conf to ensure it does exactly what I want it to do when booting.
[main] dhcp=internal plugins=keyfile dns=none [device] wifi.scan-rand-mac-address=yes [connection] wifi.cloned-mac-address=random ethernet.cloned-mac-address=random
resolv.conf isn’t changed I first add
dns=none as I have Unbound and DNSCrypt-proxy set up for my dns. I also use chattr +i on resolv.conf to ensure no other programs can change it. See My Article on settinging up Unbound and Dnscrypt.
I ensure my MAC address is randomized on connection with the
Thomas Haller’s has a good blog on the subject here.
Use this wiki to setup macchanger Arch Wiki
So now you know how to reign in Network Manager.