Skip to content
Contents
GuidesOpenWrt

Fix stalled HTTPS over a VPN by measuring the path MTU

Preserve successful small requests and use different packet lengths on both ends to find a stable boundary.

Preserve successful small requests and use different packet lengths on both ends to find a stable boundary. The tunnel header consumes outer-layer link budget, and the overhead for PPPoE, IPv4, or IPv6 outer layers varies. First examine the actual interfaces and paths carrying traffic.

Try two address families separately

Use ping -4 -M do -s <负载长度> <对端> or a suitable IPv6 PMTU tool at the terminal, continuously narrowing and approaching the limit. Capture ICMP Fragmentation Needed and IPv6 Packet Too Big. Verify WireGuard device MTU against the actual outer path.

Packet Length Validation Fails for HTTPS and UDP

Determine the maximum successful payload on the same controlled service, then adjust the corresponding tunnel MTU or TCP MSS based on ICMP feedback. Establish a new connection and run actual data transmission.

If necessary, enable MSS clamping in the correct firewall zone as a TCP-side mitigation, then re-establish the same HTTPS and UDP services. Record the measured boundaries and configurations. When rolling back, first restore a variable, then test the original sample.

The results for both TCP and UDP should be interpretable. Even when only TCP is repaired, the path must still probe for UDP PMTU; record the values at both ends and retain the default setting for recovery.

Reduce the lab uplink MTU temporarily and verify the path limit. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Reduce the lab uplink MTU temporarily and verify the path limit. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Reduce the lab uplink MTU temporarily and verify the path limit. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments