Live data from Hacker News

Randomize your WiFi MAC address on Ubuntu

paulfurley.com

101–108 of 108 posts

Re: Randomize your WiFi MAC address on Ubuntu

#101

Unfortunately, this isn't compatible with a bunch of popular wireless cards, mostly from Realtek.

Damn, I didn't know about these. Do you know what it is that makes them incompatible? And is there a list of cards you can avoid?

Also, some Broadcoms in Linux before 4.9.

Re: Randomize your WiFi MAC address on Ubuntu

#102
post #57

It’s worth noting that iOS has randomized MAC addresses in WiFi probes since iOS 8.[1] As far as I know your real MAC address is exposed upon connection. I’m curious to what extent other vendors have implemented this strategy. [1] https://arstechnica.com/gadgets/2014/06/ios8-to-stymie-track...

Unfortunately the iOS support is a sham. I tested myself, and the rumors that iOS does not randomize MACs turns out to be true. Not only does it not simply change over time, it doesn't even change when you restart the device. I walked around for a week, and my MAC never changed. Apparently, if it ever works at all, you have to run settings that nobody uses - including, iirc, not being connected to a cell tower. I use…

It only uses the random MAC for Wifi probes, no router I know of records these but they can be sniffed. Any real connection uses proper MAC.

If you want random MACs everytime I recommend Linux + a fairly recent NetworkManager.

Re: Randomize your WiFi MAC address on Ubuntu

#103

Unfortunately, this isn't compatible with a bunch of popular wireless cards, mostly from Realtek.

Realtek and Ubuntu - I have spent four years trying to get my wifi to work. Being tracked would be a bonus, the built in wifi on my Lenovo laptop is deaf to the world and will never get as far as MAC spoofing.

There's a work-around in the comment above.

You're welcome to contribute to https://bugs.debian.org/849077 and https://bugs.debian.org/849875.

Re: Randomize your WiFi MAC address on Ubuntu

#104
post #102

Earlier quoted context omitted.

Unfortunately the iOS support is a sham. I tested myself, and the rumors that iOS does not randomize MACs turns out to be true. Not only does it not simply change over time, it doesn't even change when you restart the device. I walked around for a week, and my MAC never changed. Apparently, if it ever works at all, you have to run settings that nobody uses - including, iirc, not being connected to a cell tower. I use…

It only uses the random MAC for Wifi probes, no router I know of records these but they can be sniffed. Any real connection uses proper MAC. If you want random MACs everytime I recommend Linux + a fairly recent NetworkManager.

Unfortunately randomizing MACs for active connections has some usability concerns, especially with paid WiFi APs (Airports, Hotels, etc...).

The best solution would be to make up a random but persistent MAC per connection, but that seems to be too difficult for some reason.

Re: Randomize your WiFi MAC address on Ubuntu

#105
post #13

I've found GNU macchanger to be the easiest way to do that kind of stuff. It's as simple as: macchanger -r Interesting article about macchanger on the Arch Wiki: https://wiki.archlinux.org/index.php/MAC_address_spoofing

I also used macchanger in the past but it seems that recent versions of NetworkManager overwrite the changes that macchanger makes.

Another case where NetworkManager pissed me off. A couple of years ago they broke all third party MAC changers in favor of their built-in solution, but the built-in solution required the bleeding edge head version of wpa_supplicant that no vendor shipped leaving the entire system nonfunctional. IIRC it still doesn't work on Ubuntu 16.

Re: Randomize your WiFi MAC address on Ubuntu

#106

Earlier quoted context omitted.

All of the universities I attended used MAC address whitelisting.

> I only know about mac whitelisting in protected networks managed by wary administrators. Wouldn't make any sense for properly securing a network. As an attacker you could just create an evil twin (same ESSID), let some students connect to it and just use their mac addresses (and even drop their connections when they try to use the university wifi). Edit: You don't even necessarily need an evil twin to get their mac…

I didn't say it made any sense :) This is how I was able to get my Playstation connected up in my dorm. I set my laptop's MAC to my Playstation's, then got my laptop authenticated using their tool, switched the MAC back, and the Playstation would connect up without issue.

Re: Randomize your WiFi MAC address on Ubuntu

#107
post #70

Earlier quoted context omitted.

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.

Most of the time there are > I also used to randomize my local hostname Great idea, missed that. I'll integrate that in the future.

Intel cards and Realtek cards are known to be problematic with random vendor prefixes.

Re: Randomize your WiFi MAC address on Ubuntu

#108
post #92

Earlier quoted context omitted.

> and the prosecutor mentions what you said. And then what? You're under further suspicion? If you're innocent, that shouldn't be your concern. But all you gotta do is STFU. Don't talk to the police either way. What you said shouldn't be enough proof except in a banana republic. If you were always spoofing your MAC address however, then you can use that as your defense. Your argument is akin to it being suspicious th…

> What you said shouldn't be enough proof except in a banana republic. What effect does being a banana republic have on this?

A politically unstable country has ample amount of corruption and therefore likely has a weak, unfair legal system.
Post reply on HN