FULL AI ANALYSIS

WireGuard peer connects but cannot reach remote LAN hosts — TCP times out while ICMP intermittently passes

Generated Oct 29, 2026, 9:46:59 AM

Analysis summary

Symptoms suggest either MTU/MSS black-holing causing TCP handshakes to fail or conntrack/NAT translation inconsistencies dropping established flows. ICMP small packets may pass while larger TCP segments that require fragmentation fail. Conntrack showing INVALID entries indicates asymmetric routing or stale mapping. NAT with MASQUERADE can cause replies to use wrong source or get dropped if conntrack table entries become invalid; missing MSS clamping can break TCP when underlying path MTU is too small.

Possible causes

PMTU/MSS black hole: WireGuard MTU or underlying path MTU too large causing TCP segments to be dropped, while small ICMP manage to pass.

80%

Conntrack/NAT table exhaustion or stale/INVALID entries leading to dropped replies for TCP flows.

65%

Asymmetric routing on LAN hosts causing replies to bypass gateway so conntrack sees invalid replies.

50%

Firewall rules on gateway or LAN hosts blocking TCP flows selectively while allowing ICMP.

30%

Suggested fixes

1

Diagnostic step 1

Check MTU path: from client run ping -M do -s <size> to find largest unfragmented packet. Reduce WireGuard MTU (e.g., set MTU=1360) and test TCP connect again.

2

Diagnostic step 2

Enable MSS clamping on the gateway for TCP SYN packets: e.g., use nftables/iptables to clamp MSS to PMTU (iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu) and observe.

3

Diagnostic step 3

Monitor conntrack table (conntrack -L) and increase nf_conntrack_max temporarily; check dmesg for conntrack drops.

4

Diagnostic step 4

Verify no asymmetric routing: from LAN host trace back to client; ensure gateway is default route or add static return route for client subnet.

5

Diagnostic step 5

If changes help, make them persistent; if problems persist, collect tcpdump on client, gateway, and target host to correlate missing packets and escalate to network specialist.