Updated

What you see

The VPN connects and works normally, then after a few minutes — or after some traffic — everything stops. Reconnecting fixes it for a while.

What it means

A tunnel that works at first proves your settings are right. Something along the way changes its mind about your connection: a censoring network that needed a moment to recognize it, a router that forgot an idle connection, or your device moving between networks.
Quick fix
If you're in a country or on a network that restricts VPNs, switch to a protocol built to avoid detection — AmneziaWG or VLESS + Reality. If not, add a keepalive to your WireGuard config.

Causes and how to fix them

1. Your network recognizes the VPN

Deep packet inspection doesn't always block straight away. Some systems watch a connection for a while, then cut it once it matches a VPN pattern — common with plain WireGuard and OpenVPN in Russia, Iran and China, and on some corporate networks. The fix is a protocol that doesn't look like a standard VPN.

2. An idle connection gets forgotten

Home routers and mobile carriers drop UDP connections that go quiet, after which the server's replies can't reach you. WireGuard sends nothing while idle unless told to. Add this to the [Peer] section of the client config:
PersistentKeepalive = 25

3. Your device switched networks

Moving between Wi-Fi and mobile data changes your IP address. WireGuard recovers as soon as you send traffic, and VLESS apps reconnect. If yours doesn't, switch the VPN off and on — and on Android, check that battery optimization isn't stopping the VPN app in the background.

4. The connection is throttled until it's useless

Some networks don't block VPNs outright but slow them down. If the speed drops steadily before everything stops, that's the cause; another protocol or server location is the way around it.

Using Nullsify?

Nullsify's configs already include a 25-second keepalive. Switching protocol on a server takes a minute from the dashboard, so you can move from WireGuard to AmneziaWG — or to VLESS + Reality — without setting up a new server.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.

Related problems

Read more