KORTHVEILSecurity firewall
Guides

Wi-Fi protection: deauthers, evil twins, per-person passphrases and roaming

Download as PDF All guides

Cheap "deauther" boards knock phones and laptops off Wi-Fi with forged disconnect frames, often to catch their sign-in when they join again or to push them to an evil twin: a fake access point with your network's name. Korthveil protects against them in three ways:

  1. Protected management frames (PMF) are required on your networks, so your devices ignore forged disconnect frames.
  2. The air watch listens for deauthers, fake-network floods and evil twins, and tells you which radio hears them loudest (roughly where they are).
  3. Per-person passphrases let you give each person or device its own passphrase, in its own VLAN, and revoke one without changing anyone else's.

Korthveil only listens. It never disconnects, jams or "contains" other people's devices: that is unlawful radio interference (in the US, 47 U.S.C. §333; the FCC fined a hotel group $600,000 in 2014 for doing it). It tells you what is happening, where, and what to do.

These settings are on the firewall's own access point (Network › Interfaces, zones & routes, the pencil on the Wi-Fi interface) and on each network of the wireless controller add-in (Wireless › Wi-Fi networks, an SSID), which pushes them to OpenWrt access points.

At a glance:

Step Where What
1 The access point's or SSID's Protection and roaming Leave PMF: Required (recommended). Choose Compatible only if an old device cannot join
2 Per-person passphrases Add a person or device: a name, a generated passphrase, optionally a VLAN and the device's MAC
3 Watch the air for Wi-Fi attacks (firewall radio) or Watch for evil twins (add-in) Turn it on; list access points that use your name on purpose
4 Save to pending changes, then commit
5 When something is found Monitoring › Alerts and the Wi-Fi attacks panel: what, how often, where it is loudest

1. Protected management frames

Setting What it does
Required (recommended, the default) Your devices ignore forged disconnect frames: a deauther cannot knock them off. Devices without PMF (most made before 2015) cannot join
Compatible (older devices) Old devices can join, but devices without PMF can be knocked off by a deauther

WPA3, enhanced open (OWE) and WPA3-Enterprise 192-bit always require PMF. If an old device stops joining after the 1.7.5 update, set this network to Compatible; better, give the old device its own network.

More security choices in Security:

Choice When
WPA3: hash-to-element only The newer WPA3 handshake that resists timing attacks. Leave off if a WPA3 device from 2019-2020 cannot connect
Enhanced open (OWE) A guest network without a passphrase that is still encrypted. Also an open network for older devices adds an open twin of the same name for devices without OWE (on the firewall's own radio, the access point must be in a bridge)
WPA3-Enterprise 192-bit High-security sign-in with certificates (EAP-TLS with P-384 certificates from the NAC add-in). The radio must support it

2. Per-person passphrases

Under Per-person passphrases, click Add a person or device:

Field Example Why
Name Alex's phone Who it belongs to; shown in the list
Passphrase Generate one Shown once until you save; give it to the person
VLAN 20 Empty: the network itself. A number: the device lands in that VLAN (its own zone and rules)
Only this device (MAC) 02:00:00:00:00:0a Empty: any device with the passphrase. WPA3 devices need it: WPA3 has no per-person passphrase otherwise

Each line shows the name, the VLAN, the device and whether it is revoked. Revoke turns one passphrase off; the firewall's access point restarts for a few seconds so that device is disconnected at once. Restore turns it back on.

For a VLAN on the firewall's own radio, the firewall needs a bridge holding a VLAN interface with that ID (for example eth1.20 in bridge br20), with an address, a zone and DHCP. On OpenWrt access points (21.02 or later), the access point needs a network vlan20 bridged to VLAN 20 on its uplink; WPA3 devices bound to their MAC need OpenWrt 23.05 or later.

Per-person passphrases cannot be combined with fast roaming (802.11r).

3. Roaming

Setting What it does
Fast roaming (802.11r) Phones and laptops move between access points of this network without signing in again, so calls do not drop. Passphrase networks only
Over the wired side The device prepares the move through its current access point; off works with more devices
Mobility domain Empty: made from the network name, so the firewall's radio and the add-in's access points with the same name roam together
Nearby access points (802.11k) Devices can ask which access points are near
Suggest a better access point (802.11v) A device with a weak signal is told about a stronger one

4. The air watch

Firewall's own radio: tick Watch for deauthers and evil twins. The radio also listens on its channel and reports:

Finding What it means
Wi-Fi deauther Many forged disconnect frames against an access point. Critical when it is one of yours
Evil twin Your network name from an access point that is not yours. Critical when the copy is open and yours is not (devices that join it can be watched and sent to fake sign-in pages)
Beacon flood Many fake networks appeared at once
Probe request flood A device is flooding the air, which slows every access point on the channel

Some Wi-Fi cards cannot listen while they serve clients; the Wi-Fi attacks panel then says Not listening and the access point itself is not affected.

Wireless controller add-in: under Watch for evil twins, tick Access points list the networks they hear and choose how often (every 10 minutes at most; a scan leaves the channel for a moment). The Korthveil rpcd ACL on the access points must allow iwinfo scan. OpenWrt access points cannot report deauther floods; the firewall's own radio does.

Trusted access points: a mesh point or another access point of yours that is not adopted, one BSSID per line (02:00:00:00:0b:01). Your adopted access points and the firewall's own radio are trusted on their own.

Where is it? Each finding names the radio or access point that hears it loudest, and the next one: the transmitter is probably closest to the first. It is an estimate from signal strength, never an exact position.

What to do when something is found

Finding Do this
Deauther, PMF required Your devices ignore it. Note the time and where it is loudest; report it to the building owner or the police if it continues
Deauther, PMF Compatible Set PMF to Required if every device supports it
Evil twin Tell people not to join a network of that name without a padlock; walk towards the access point that hears it loudest; if it is yours, add its BSSID to Trusted
Floods Usually short; if it lasts, find the device near the loudest access point

Troubleshooting

Symptom Check
An old device no longer joins PMF Required needs PMF on the device. Set Compatible, or move the device to its own network
A WPA3 phone cannot join with its personal passphrase Bind the passphrase to the phone's MAC (Only this device); turn off the phone's private (random) address for this network
A device lands in the wrong network The VLAN number, and that a bridge on the firewall (or vlanN on the access point) carries that VLAN
Not listening on the Wi-Fi attacks panel The card cannot listen while it serves clients; the add-in's evil-twin scans still work
A neighbour's network with the same name is reported It is a fact, not an attack: rename your network, or add the BSSID to Trusted

More: the guides Set up Wi-Fi, NAC, IPS, and WAF on a new firewall and NAC and Enterprise Wi-Fi.

Download as PDF All guides