SSH connections time out, but only to public IPs (DSCP EF dropped on Wi-Fi)

Field note

OpenSSH marks its packets, including the first SYN, with DSCP EF (IP_TOS 0xb8). On Wi-Fi, WMM maps EF to the voice queue (AC_VO). When the access point's WMM or admission-control state goes bad, it silently drops voice-marked frames while unmarked traffic keeps flowing. The SSH handshake dies before the banner, and everything else on the machine looks fine.

That also explains why VPN-tunnelled hosts were spared: the outer packet carries TOS 0, so the router never sees the mark.

Which packets the Wi-Fi access point drops SSH packets marked DSCP EF go to the WMM voice queue and are dropped. Unmarked traffic and VPN-tunnelled SSH go to the best-effort queue and are delivered. With IPQoS none, SSH is unmarked and delivered too. Packet from the laptop Wi-Fi access point (WMM queue) Result ssh SYN TOS 0xb8, DSCP EF AC_VO (voice) broken state: frames dropped dropped ping, https, anything else TOS 0 AC_BE (best effort) works normally delivered ssh inside a VPN tunnel outer packet TOS 0, mark hidden AC_BE (best effort) works normally delivered ssh with IPQoS none TOS 0 AC_BE (best effort) works normally delivered
Only the EF-marked SSH packet lands in the broken voice queue.

Confirming it from the client

sh
ping -c 8 -Q 0x00 1.1.1.1          # 8/8 replies
ping -c 8 -Q 0xb8 1.1.1.1          # 0/8 while the fault is active
ssh -vvv host 2>&1 | grep IP_TOS   # set socket 3 IP_TOS 0xb8
ssh -o IPQoS=none host             # connects

Every target failed the same way (two public resolvers and the server), so the drop is on the local Wi-Fi hop, not at the destination. Forcing IPv4 changed nothing.

The fix

ssh-config
# ~/.ssh/config
Host *
    IPQoS none

It costs nothing on a laptop and makes SSH immune to the fault. If it keeps happening, turn off WMM/QoS on the access point, update its firmware, or use a cable.