Ubuntu 22.04 server: Large HTTPS POSTs to IPv6-enabled APIs stall while small requests succeed — suspected PMTU/ICMPv6 filtering
Environment
Ubuntu 22.04 LTS (kernel 5.15), bare-metal web app server in home datacenter with dual-stack (eth0: IPv4+RA/IPv6 via ISP CPE), upstream CPE (consumer router) firmware 1.2.3, API endpoints are IPv6-enabled (AAAA records) served by cloud provider.
Symptoms
Large HTTPS POST uploads (multi-MB) to specific IPv6-enabled third-party APIs stall after TLS handshake; TCP connection established but upload hangs at ~64–128 KB. Small GET/POST requests and same endpoints over IPv4 succeed. Intermittent — works sometimes from a different network.
Observations
curl -v --http2 -X POST to AAAA address: TLS handshake completes, then upload stalls after initial data; tcpdump on server shows IPv6 packets leaving but no TCP ACKs beyond MSS-sized segments. Wireshark shows repeated retransmits and eventual connection reset after ~120s. ping6 to target shows ~20–40ms; traceroute6 shows first hop is CPE. MTU on eth0 is 1500. No sysctl tcp_lro/gro tweaks. ip -6 route shows default via CPE. No application logs show errors beyond socket timeouts.
Already attempted
Tried curl with --ipv4 to same host (works). Lowered MTU on server interface to 1400 — large POSTs complete. Captured tcpdump on both server and CPE (CPE capture limited) and observed ICMPv6 Packet Too Big messages are not returned to server when MTU mismatch present. Rebooted CPE, toggled firewall off briefly (no change). Tested from different network (mobile tether) — large uploads to same IPv6 endpoint succeed.
Question
What is the most likely cause and what reversible diagnostics and fixes should I run to determine whether the CPE or ISP is dropping ICMPv6/PMTU and how to mitigate without breaking IPv6 for other services?
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
- Networking39% match
WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed
Open0 answers - Networking29% match
WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole
Open0 answers - Networking28% match
IPv6-only LAN: HTTPS to IPv4-only sites times out while ICMP to synthesized addresses succeeds
Open0 answers - Networking27% match
WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server
Open0 answers - Networking26% match
WireGuard tunnel connects but large TCP transfers stall — small requests OK (likely PMTU / MSS black hole)
Open0 answers