The tunnel comes up. The interface gets an address, ping 8.8.8.8 replies in 30 ms, DNS resolves. Then the browser spins forever on the first real page, and half the images arrive as broken icons.
Nothing is down. The link works perfectly in exactly the packet-size range that never tests the problem.
Why "it connects" proves nothing about payload
A TCP handshake is a bare SYN with no payload — around 60 bytes. A DNS query is usually under 100. A TLS ClientHello is a few hundred. Every one of those fits inside any plausible MTU, so a successful connection only proves that small packets survive the path.
The direction that breaks is the return path. The server fills each segment up to the MSS it negotiated, typically 1460 bytes. If the path can actually carry only 1400, a router either fragments the packet or drops it on the Don't Fragment bit — and inside a tunnel, the fragment is dropped too. The request left, the response never came back.
The symptom set is distinctive: homepage blank but the title renders, images all broken, admin panel logs in but every list is empty, download stuck at 0%. Each of those is a response larger than a few hundred bytes that never arrived.
MTU is a property of the path, not the box
The same physical NIC reports different usable MTUs depending on what runs on top of it: 1500 direct, 1492 behind PPPoE, roughly 1400 once L2TP over IPsec adds its headers. Copying a number from one environment into another is how most of these faults start.
| Environment | Typical MTU | Common misconfiguration | What the user sees |
|---|---|---|---|
| Ethernet, static IP | 1500 | copying a 1400 value from a tutorial | works, but every packet is smaller than needed |
| PPPoE broadband | 1492 | interface left at 1500 | large uploads stall, small pages fine |
| L2TP, no IPsec | ~1460 | tunnel interface kept at 1500 | dials up fine, page loads halfway |
| L2TP over IPsec | ~1400 | MTU lowered but MSS not clamped | downloads abort, images incomplete |
Measure the ceiling before you change it
Do not guess the value. The method is a probe packet of a known size with fragmentation forbidden: if it passes, the path carries at least that much; if it fails, step down. The largest passing payload plus 28 bytes of IP and ICMP headers is your path MTU.
# Linux / macOS: -M do = never fragment, -s = payload size for s in 1472 1464 1450 1440 1400; do if ping -M do -s $s -c 3 1.1.1.1 >/dev/null 2>&1; then echo "$s ok -> path MTU $((s + 28))"; break else echo "$s too big" fi done # Windows equivalent: ping -f -l 1472 1.1.1.1 Probe a target that actually answers ICMP — a public resolver or the carrier gateway. Probing the datacenter IP you were just rate-limited on measures the rate limit, not the MTU. If nothing answers ICMP, pull a 1 MB file from both ends of the tunnel and watch where the transfer consistently breaks; that break point is the same boundary.
MTU is the ceiling; MSS is what TCP agrees to
The two differ by 40 bytes, the IPv4 header plus the TCP header. An MTU of 1400 means an MSS of 1360. Lowering the interface MTU alone often is not enough, because the remote peer still sizes its segments from its own MSS — the SYN has to advertise the smaller value too.
| Where | What to change | How it takes effect |
|---|---|---|
| OpenWrt interface | Network → Interfaces → Advanced → MTU 1400 | save and apply, then redial the tunnel |
| OpenWrt firewall | enable MSS clamping (mtu_fix) on the zone | rewrites MSS to the egress MTU automatically |
| Linux router | iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu | forward chain; needs a boot script to persist |
| Windows client | netsh interface ipv4 set subinterface "Name" mtu=1400 store=persistent | immediate, written to the registry |
Five ways this gets fixed wrong
- Lowering the physical NIC instead of the tunnel interface. It does shrink packets, and it also permanently shrinks every LAN transfer on that adapter. Change the tunnel's logical interface; leave the NIC at 1500 and let encapsulation do the slicing.
- Clamping far below the measured value. Pushing MTU to 1280 "for safety" raises the packet count and the header overhead ratio, so throughput drops. Measured threshold minus 20 to 40 bytes is the right stop.
- Changing MTU and skipping MSS clamping. The interface now refuses oversized packets, but the peer keeps offering 1460-byte segments into it. Downloads still abort.
- Declaring victory because the page opens. Cache, CDN, and small pages all lie. Verify with three actions: 100 DF pings at the new MTU minus 28, a 1 MB transfer that runs without retries, and a long-list admin page that renders in one shot.
- Assuming every blank page is MTU. The tell is a reproducible size threshold. If every packet size passes and only domains fail, DNS is not going through the tunnel. If HTTPS fails regardless of page size, it is protocol support, not MTU.
FAQ
The tunnel dials up and ping works, but pages hang. Is it always MTU?
Test before you touch anything. If ping -f -l 1472 passes, the path carries 1500 and MTU is not your problem. If 1472 fails while 1400 passes, the diagnosis is close to certain. If all sizes pass and only names fail, look at DNS resolution instead.
How much smaller is MSS than MTU?
Exactly 40 bytes for IPv4 — 20 for the IP header, 20 for TCP. MTU 1400 pairs with MSS 1360. Some panels accept only one of the two fields, so convert rather than typing the MTU value into the MSS box.
Does a smaller MTU make the connection slower?
Slightly, yes. Less payload per packet means more packets and a higher header-to-data ratio. That trade is worth it against pages that never load, but it should be bounded by your measurement, not by a round number someone posted.
I changed it and it reverted after a reboot. Why?
The setting was never persisted. netsh needs store=persistent, iptables rules need a startup script, and OpenWrt needs save-and-apply followed by a tunnel redial — the new value only enters negotiation on a fresh dial. Mobile clients usually cannot set MTU at all, so server-side clamping is the only lever there.
If you want the full walkthrough with the per-platform steps, the Chinese original covers OpenWrt, iKuai, and Windows side by side at socks5ip.com.cn. Once the tunnel carries data, confirm the line itself is healthy with the free latency and throughput checks at socks5ip.com.cn — and record the numbers before and after the change, so a cache hit does not get mistaken for a fix.

