
I got tired of my laptop broadcasting its name and OS to every public network and router admin page, so I wrote a lightweight bash script to scrub my network footprint.
GitHub Repo: https://github.com/gekko4/dhcp-obfuscator
For those curious about the technical details, it uses nmcli to modify your NetworkManager profile and does the following under the hood:
- Randomizes MAC: Generates a new MAC address on every connection (
cloned-mac-address random). - Kills Hostname: Stops your device from broadcasting its name (Erases DHCP Option 12).
- Scrubs Vendor Class: Injects a blank space into Option 60, preventing the router from fingerprinting your Operating System.
- Overrides Client ID: Replaces identifiable DHCP Client IDs with generic MAC-based traces.
- Disables IPv6: Completely turns off IPv6 for that connection to stop static IP tracking.
It saves these rules directly to the Wi-Fi profile, so you only have to run it once per network. Would love to hear your thoughts or any feedback on the code!
u/Glittering-Earth-827 — 10 days ago