Over the past few weeks, I thought my Wi-Fi base stations were failing until I dug down into the true cause, and it wasn't easy. In a nutshell, a local enterprise Wi-Fi network was jamming the home Wi-Fi networks in the neighborhood for a couple of weeks.
The Symptoms
My Mac would drop off Wi-Fi, reconnect a few seconds later, and then drop again. Sometimes it happened every ten minutes; other times, every few seconds. Time Machine backups failed, and I had to finish one meeting on my iPhone's hotspot. The travel router I use as a Wi-Fi extender couldn't hold a connection for more than a few minutes.The obvious suspect was my own hardware. My Time Capsule is old, and I had just installed TimeCapsuleSMB on it. So I restored it, changed channels, split the 2.4 GHz and 5 GHz networks, and even filed a bug report. Every fix seemed to work for a few hours or a few days, and then the drops came back.
Ruling Out My Hardware
The turning point came when I unplugged my Apple base stations and used the Wi-Fi built into my ISP's gateway instead. I got the same drops: a different base station from a different manufacturer, with the same problem. It wasn't just my Mac, either. My Apple TV and the travel router were getting kicked, too.Meanwhile, my iPhone's personal hotspot never dropped once.
That was the clue. The macOS logs showed that every disconnect was a deauthentication with reason code 2, "previous authentication no longer valid." My base station was telling my Mac to go away. Or something pretending to be my base station was.
Forged Deauthentication Frames
In Wi-Fi, a deauthentication frame is a management message that tells a device to disconnect. Under WPA2, those frames aren't authenticated, so anyone can forge one using your router's hardware address, and your devices will obey. WPA3 requires Protected Management Frames (802.11w), so devices simply ignore the forgeries. My iPhone's hotspot supports WPA3. My Apple base stations predate it.I ran a packet capture with Wireshark on my Mac. In nine minutes, it recorded 2,743 deauthentication and disassociation frames on my channel, and 1,973 of them were forged. They were faint (about −90 dBm) compared with my real base station, every one had a sequence number of zero, and they were aimed at dozens of networks in the neighborhood, not just mine.
Walking It Down
Next, I walked around the neighborhood with my laptop running a capture, noting the signal strength at each stop. The forged frames grew stronger in one direction and peaked next to the access points of a nearby organization's enterprise Wi-Fi network. Tellingly, every neighbor's network was being spoofed except the organization's own.That pattern points to a feature built into enterprise Wi-Fi systems called rogue access point containment, part of a wireless intrusion prevention system. It's designed to knock unauthorized hotspots off a corporate network by sending deauthentication frames on their behalf. When it's misconfigured, it treats every home network within range as a "rogue" and attacks it.
The Outcome
I emailed the organization's IT department with my findings. Their IT director replied that a recent change might explain it and that the setting had been removed that afternoon. That evening, I ran another ten-minute capture: zero deauthentication frames. I haven't been kicked off my own WiFi network since.This is more than bad etiquette. In 2014, Marriott paid the FCC $600,000 after employees at its Gaylord Opryland hotel in Nashville used the containment features of a Wi-Fi monitoring system to block guests' personal hotspots. A few months later, the FCC issued an enforcement advisory, "Wi-Fi Blocking is Prohibited."
Lessons Learned
1. Before you replace hardware, check the logs. The reason a device disconnected matters more than the fact that it disconnected.2. Repeated deauthentications with reason code 2, while the signal is strong, are a red flag.
3. Use WPA3 if your gear supports it. Protected Management Frames make forged deauthentications harmless.
4. A packet capture is evidence. A polite email backed by data got this fixed within hours.
Sometimes it's not your network. It's your neighbor's.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.