WireGuard: some websites load, others hang
WireGuard troubleshooting
Updated
What you see
The tunnel works — some sites load instantly — but others hang on a blank page, load without images or time out. Speed tests start and then freeze. Video calls or app logins may fail while chat apps work.
What it means
Every network carries packets up to a certain size, its MTU. WireGuard wraps each packet in 60 to 80 bytes of its own, so if the tunnel's MTU is set too high, full-size packets become too big for some link along the way and are dropped. Small requests fit and work; anything that sends large packets — most HTTPS pages, uploads, video — stalls. The network should warn the sender with an ICMP message, but many networks block those, so the packets simply vanish.
Quick fix
Set MTU = 1280 in the [Interface] section of your client config and reconnect. 1280 works on practically every network; once it fixes the problem, you can raise it step by step if you want the last bit of speed.
Causes and how to fix them
1. The tunnel's MTU is too high for your connection
WireGuard defaults to 1420, which assumes the usual 1500-byte network underneath. PPPoE broadband (often 1492), mobile networks and connections that already run inside another tunnel have less room. Lower the MTU in the client config:
[Interface] MTU = 1280
2. You don't know your connection's real limit
With the VPN off, find the largest packet that reaches the server without being split. The number you give ping is the payload; add 28 bytes of headers to get the MTU. Lower it until replies come back:
# Linux ping -M do -s 1472 203.0.113.24 # Windows ping -f -l 1472 203.0.113.24 # macOS ping -D -s 1472 203.0.113.24
If 1472 gets replies, the path carries 1500 bytes and the tunnel can use 1420. If only 1432 works, the path carries 1460, so subtract 80 for a tunnel MTU of 1380.
3. Devices behind the tunnel ignore the lower MTU
Some devices that send traffic through the tunnel — a home router running the VPN for the whole house, for example — don't shrink their TCP packets to fit. Clamping the MSS on the server rewrites the size for every connection:
sudo iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
Add the same command to the PostUp line of the server's config so it survives restarts.
4. It isn't the MTU
If 1280 changes nothing, look elsewhere. Sites that fail by name but load by IP address point to DNS. Sites that load without the VPN but refuse it point to the server's IP address being blocked.
Using Nullsify?
Every WireGuard and AmneziaWG config Nullsify generates already uses an MTU of 1280, so this rarely comes up on a Nullsify server. If you raised the MTU yourself, set it back to 1280, or get a fresh config with Get Config.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.
Related problems
- Connected but no internet WireGuard
- Works on Wi-Fi, not mobile data Any protocol
- VPN is slow Any protocol