SSH connects, but the session freezes as soon as you run `ls` in a big directory or `cat` a large file.
IntermediateTroubleshootingMTU, routing, packet loss and latency
Answer
Likely causes → MTU black hole: small packets get through, full-size packets exceed a smaller MTU on the path (VPN, GRE, VXLAN) and are dropped, while ICMP "fragmentation needed" is filtered so PMTUD never works.
Diagnose →
ping -M do -s 1472 target # 1472 + 28 = 1500
ping -M do -s 1372 target # step down until it works
tracepath target # reports pmtu per hop
Fix → Lower the interface MTU (ip link set dev eth0 mtu 1400) or clamp MSS on the tunnel router:
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
Allow ICMP type 3 code 4 (and ICMPv6 type 2) through firewalls.
Prevent → Set MTU and MSS clamping as part of every tunnel design.
More on MTU, routing, packet loss and latency
HTTPS to a site over the VPN hangs after `Client hello`, while HTTP works.Intermediate`ping: local error: message too long, mtu=1500`BeginnerPods on different nodes can ping each other, but HTTP responses larger than ~1.4 KB never arrive.Advanced`mtr` shows 30% loss at hop 6, but 0% at the final destination.Beginner`mtr` shows loss starting at hop 4 and continuing to the destination at 8–10%.IntermediateLatency between two app servers in the same region jumped from 0.5 ms to 40 ms.Intermediate