Persistent MAC Address Spoofing (Global + Per-Connection) by QwenAi
by QwenAI | Verified on Arch Linux + NetworkManager ≥ 1.18 ✅ Goal: Apply the same spoofed MAC to all Wi-Fi connections (global). Optionally set a custom DHCP hostname per network (e.g., Galaxy-A06 instead of Nix). 🔧 Why it works: Uses NM’s native cloned-mac-address and dhcp-hostname — no race conditions, no leaks. 🔧 1. Global MAC Spoofing (All Wi-Fi) Step 1: Create policy file sudo mkdir -p /etc/NetworkManager/conf.d/ sudo tee /etc/NetworkManager/conf.d/99-global-mac-address.conf <<'EOF' [keyfile] unmanaged-devices= [connection-wifi] # Global default for *all* Wi-Fi connections wifi.cloned-mac-address=DE:AD:BE:EF:CA:FE EOF 📝 Replace DE:AD:BE:EF:CA:FE with your desired MAC (e.g., 90:01:C0:DE:13:37). ...