Networking

Ubuntu 22.04 server: Large HTTPS POSTs to IPv6-enabled APIs stall while small requests succeed — suspected PMTU/ICMPv6 filtering

Environment

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

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

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

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

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?

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Consumer CPE or its firewall silently blocking ICMPv6 'Packet Too Big' (PMTU discovery broken) 85%
ISP or upstream tunnel (e.g., DS-Lite, 6to4, IP-in-IP) reduces MTU on IPv6 path but does not propagate ICMPv6 PMTU messages correctly 65%
Server-side network stack offloading or MTU mismatch causing fragmentation issues (LRO/GRO/LRO offload interaction) 30%

Summary

Symptoms strongly indicate an MTU/PMTU problem on the IPv6 path: small packets OK, large uploads stall; lowering MTU locally works; absence of ICMPv6 'Packet Too Big' back to client suggests ICMPv6 is being filtered or lost between CPE and upstream, causing a PMTU black hole. Possible contributors include CPE firmware that blocks ICMPv6, ISP path MTU < 1500, or an intermediate tunnel/encapsulation (e.g., DS-Lite, 6rd) that reduces effective MTU without signalling.

Suggested Fixes

Diagnostic step 1
Capture full packet traces with tcpdump on server while reproducing the stall: sudo tcpdump -i eth0 -w /tmp/ipv6-post.pcap 'host <remote_ipv6> and tcp' and export for analysis (avoid sensitive payload logging).
Diagnostic step 2
Temporarily lower the server's IPv6 MTU to 1280 (reversible) and retest: sudo ip link set dev eth0 mtu 1280; if uploads succeed, this strongly points to a PMTU issue on the path. Restore MTU after test.
Diagnostic step 3
From inside LAN, run tracepath6 to the target: tracepath -n6 <remote_ipv6> to see where the MTU drops are detected; note whether any hops report 'Packet too big' and where it stops.

Continue troubleshooting

Matched from the title, description and tags