Tutorials · Troubleshooting
How to Find and Fix MTU Problems on VPN and PPPoE Links
Some websites hang, file transfers stall and VPN users cannot open certain pages: classic signs of an MTU problem. Find the largest packet that fits and fix it with MSS clamping.
Before you start
- A computer behind the affected link
- Admin access to the gateway or firewall
Step by step
Recognise the symptoms
Small requests work but large ones hang: web pages half load, email with attachments stalls, SSH logs in but freezes on large output. This usually happens over VPN tunnels, PPPoE or GRE links.
Find the path MTU
Send pings that must not be fragmented and lower the size until they pass. Payload + 28 bytes = the MTU.
# Linux ping -M do -s 1472 10.2.10.1 # Windows ping -f -l 1472 10.2.10.1 # macOS ping -D -s 1472 10.2.10.1
Read the result
1472 passing means a full 1500-byte path. If only 1452 passes, the path MTU is 1480; with PPPoE it is usually 1492, with IPsec often 1400–1438.
Clamp TCP MSS on the gateway
Set the TCP maximum segment size on the WAN or tunnel interface to path MTU minus 40 bytes. Most gateways have a 'clamp MSS to PMTU' option; on Linux:
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtuAllow ICMP 'fragmentation needed'
Path MTU discovery needs ICMP type 3 code 4 (and ICMPv6 'packet too big'). Firewalls that block all ICMP break it.
Re-test
Repeat the don't-fragment ping and the failing application. Large transfers should now complete.
Commands are generic, industry-standard examples. Exact syntax and menu names vary by model and firmware; check your device's manual on the Documentation page.
Pro tips
- Do not lower the MTU on every PC: fix it once on the gateway with MSS clamping.
- Jumbo frames (9000) must be enabled on every device in the path, or not at all.
FAQ
Frequently asked questions
Does MSS clamping fix UDP?
No, it only changes TCP. For UDP-based VPNs and applications, set the tunnel MTU correctly on both ends.
Keep learning
Related guides
Site-to-site IPsec VPN
Read more →WireGuard VPN server
Read more →Ping, traceroute and MTR
Read more →How to Troubleshoot Network Problems With Ping, Traceroute and MTR
Find where a connection breaks or slows down in minutes. Use ping for reachability and loss, traceroute for the path, and MTR to see loss and latency on every hop at once.
Read more →How to Capture and Read Network Traffic With Wireshark and tcpdump
When logs are not enough, look at the packets. Capture traffic with tcpdump or Wireshark, filter it down to the problem, and spot retransmissions, DNS failures, DHCP issues and TLS errors.
Read more →How to Test Network Speed Between Two Points With iperf3
Internet speed tests do not tell you how fast your LAN, Wi-Fi or site-to-site link really is. iperf3 measures throughput, loss and jitter between two machines you control.
Read more →Stuck on a step?
Ask Navijin technical support or an authorised partner for help with your configuration.