WireGuard peer connects but cannot reach remote LAN hosts — TCP times out while ICMP intermittently passes
Environment
Small office with WireGuard server on Debian 12 gateway (wg0 peer-to-peer) that NATs clients to LAN. WireGuard server routes 10.0.10.0/24 and NATs to 192.168.1.0/24. Remote peer on macOS/Android can establish handshake and ping the server IP, but connections to devices on remote LAN (printers, SMB server) time out for TCP while some ICMP sometimes succeeds.
Symptoms
WireGuard handshake succeeds; ping to gateway internal IP usually works. TCP connections (HTTP, SMB) to LAN hosts hang and eventually timeout. Traceroute from client to LAN host shows first hop to WireGuard gateway then stalls. On the gateway, conntrack shows entries for client IP but destination responses don't reach client consistently. Some ICMPs get replies but larger TCP flows fail.
Observations
iptables NAT rule present (POSTROUTING -s 10.0.10.0/24 -o eth0 -j MASQUERADE). sysctl net.ipv4.ip_forward=1. MSS clamping not configured. tcpdump on gateway shows inbound SYN from client forwarded to LAN host, LAN host replies with SYN-ACK to gateway, but gateway sends reply back to client after NAT; sometimes gateway drops replies with 'invalid conntrack' entries. MTU on wg0 is default (1420) with path MTU on some broadband links causing fragmentation. conntrack table shows some dropped replies labeled INVALID.
Already attempted
Added explicit route on LAN hosts to send client subnet back to gateway (not relying on NAT) — no improvement. Flushed conntrack, increased conntrack max (net.netfilter.nf_conntrack_max), temporarily solved a few sessions but problem recurred under moderate concurrency. Tried enabling ip_forward proxy_arp off/on, no consistent fix.
Question
Why do TCP flows to LAN hosts through WireGuard establish handshake intermittently or fail while pings sometimes work? What kernel/network settings (MSS clamping, conntrack, MTU) should be adjusted and in what order to troubleshoot safely?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking46% match
WireGuard peer connects but cannot reach devices on remote LAN — TCP timeouts while ICMP sometimes passes
Open0 answers - Networking26% match
Managed switch port-security causes VLAN clients to lose internet while gateway still pingable
Open1 answer - Networking26% match
WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed
Open0 answers - Networking23% match
WireGuard tunnel connects but large TCP transfers stall — small requests OK (likely PMTU / MSS black hole)
Open0 answers - Networking23% match
WireGuard tunnel: ICMP passes but large TCP uploads stall — suspect GRO/GSO offload interaction on Linux host
Open0 answers