FULL AI ANALYSIS

SSH sessions and long TCP transfers hang after enabling TCP window scaling on edge Linux router

Generated Oct 26, 2026, 9:23:15 AM

Analysis summary

Immediate resolution by disabling window scaling and tcpdump evidence of zero-window probes strongly indicate a middlebox or router-level mishandling of TCP window scaling options. Either the router's TCP stack/NAT implementation or an upstream ISP modem/box (when combined with the router) is incorrectly processing/tampering with TCP options, causing peers to advertise or honor zero windows. Less likely causes include NIC firmware bugs or client-side issues since bypassing the router or disabling scaling resolves it.

Possible causes

Upstream modem or router NAT device incorrectly handling TCP window scaling option (middlebox mangling)

80%

Router TCP stack or NAT implementation bug interacting with window scaling

50%

NIC offload/firmware bug on router causing broken TCP option negotiation

20%

Client/server SSH stack bug (unlikely because bypassing router works)

10%

Suggested fixes

1

Diagnostic step 1

Confirm with tcpdump: capture a failing flow and check TCP option negotiation and zero-window behavior (capture at both router WAN and LAN interfaces).

2

Diagnostic step 2

Temporarily disable window scaling on the router (sysctl -w net.ipv4.tcp_window_scaling=0) to restore service while you investigate; this is reversible.

3

Diagnostic step 3

Test bypassing the ISP modem (put it in bridge mode) or move the router to a different upstream to isolate whether ISP gear is mangling options.

4

Diagnostic step 4

Upgrade router OS/kernel and modem firmware; if using a vendor distro, consult vendor release notes for TCP/NAT fixes.

5

Diagnostic step 5

If vendor fixes are unavailable, keep scaling disabled as a stopgap and document the change so it can be reverted once the root cause is resolved by upstream device or firmware update.