Live data from Hacker News

Randomize your WiFi MAC address on Ubuntu

paulfurley.com

61–70 of 108 posts

Re: Randomize your WiFi MAC address on Ubuntu

#61
post #60

Note that your MAC address is only one part of the identifying information your computer gives to the DHCP server. For another approach check out DHCPcAnon: https://github.com/juga0/dhcpcanon You can contribute to the development of this project by helping to integrate it with your favorite WiFi manager.

Identifiers in DHCP requests is a really good point, thanks for raising this. I'll do some captures and see what my client is revealing.

Re: Randomize your WiFi MAC address on Ubuntu

#62
post #10

Are there any lawyers here that can speak about the legal side of this? I could imagine a wifi provider that offers 30 minutes free wifi e.g. airports, has this covered in their terms and conditions or a country that could consider this as fraudulent?

iPhones and Android phones do this for awhile already. If you read the article you'll notice that the MAC stays the same for a SSID for a working day. This makes sure it doesn't break networking and as a side effect captcha portal limits still work.

FYI re:

iPhone - "Researchers Break MAC Address Randomization and Track 100% of Test Devices"

https://www.bleepingcomputer.com/news/security/researchers-b...

Android - "Only an estimated 6% of Android phones randomize MACs, and they do it poorly."

https://arstechnica.com/information-technology/2017/03/shiel...

Re: Randomize your WiFi MAC address on Ubuntu

#63

Your router MAC address is tracked by Google Location services. They do this with their wardriving vehicles and from Android phones.

Yes and even if you changed your Mac every day, your neighbors probably wouldn’t. So google can still see the three routers around you, look up the gps those routers have been seen concurrently with, and know where you are.

Not sure if I'm missing the point here... if I were using Google Location services, wouldn't that mean I was giving Google my location directly? Why would they need to use my MAC address?

Re: Randomize your WiFi MAC address on Ubuntu

#66
post #2

This seems like it should be a default indeed. It does make it harder to assign fixed addresses to your devices in your home network. At least openwrt only seems to have static DHCP leases based on MAC and not on the advertised DHCP name. For most devices this doesn't matter as it does add a DNS entry with whatever IP it assigned. But when you then want to add a firewall rule to port forward something to a device a f…

This would be a bad default because it breaks things like staying signed into a network with a login gateway.

Re: Randomize your WiFi MAC address on Ubuntu

#70

Here is the code I use for my mac to randomize my mac address: interface="en0" new_mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/:$//; s/./0/2') # from stackoverflow sudo ifconfig $interface ether $new_mac Edit: What's the advantage of the solution in the post? If I just change my mac address every time I join a network (even the same one), they can't track me with my randomized mac addresses. So why would I pre…

    new_mac=$(openssl rand -hex 4 | sed 's/\(..\)/\1:/g; s/:$//; s/./0/2'; s/^/02:/)
is better. by using the 02: prefix for locally administered macs you avoid clashes with certain cards. I also used to randomize my local hostname.
Post reply on HN