My self-hosted VPN is slow
Any protocol troubleshooting
Updated
What you see
With the VPN on, pages load slowly, downloads crawl or video buffers, even though your connection is fast without it.
What it means
A VPN adds a detour — your device, the server, then the internet — and your speed is that of the slowest part of the trip. Most of the time it's the server's plan or the distance to it, not the protocol.
Quick fix
Measure before you change anything: run a speed test with the VPN off, then on. If the speed collapses, test the server's own connection and the route to it (below).
Causes and how to fix them
1. The server is far away
Distance adds delay, and delay limits how fast a single download can go. A server on another continent often caps out well below your line speed. Check the round trip, and pick a closer location if it's high:
ping 203.0.113.24
2. The VPS plan limits bandwidth
Cheap VPS plans often share the network port, and some throttle you once you pass a monthly traffic allowance. Test the server's own connection speed, then compare it with the speed you get through the tunnel:
sudo apt install iperf3 iperf3 -s
Then run iperf3 -c 203.0.113.24 on your own computer, with the VPN off, to measure the raw path to the server. If that's slow, the VPN isn't the problem — the host or the route is.
3. The route between you and the server is poor
Some hosting companies are reached over congested or indirect paths from certain internet providers, so a nearby server can still be slow. mtr shows where delay or loss starts:
mtr -rw 203.0.113.24
If it starts inside your provider's network, nothing on the server will help; try a different data centre or host.
4. The server's processor is the limit
Encrypting traffic costs CPU. A very small VPS can run out of it on a fast connection. Watch the load while a download runs:
top
If a core sits near 100%, a plan with more CPU helps.
5. The MTU is mismatched
Packets that are too big get dropped and resent, which slows everything without breaking it. Lowering the MTU in the [Interface] section of the client config often helps on mobile networks:
MTU = 1280
Using Nullsify?
Nullsify's WireGuard and AmneziaWG configs use an MTU of 1280, which works on nearly every network but gives up a little peak speed on a clean wired line; you can raise it to 1420 in the config on a connection you trust. Switching protocol rarely changes speed much — the server plan and location matter more.
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
- Stops working after a few minutes Any protocol