An app can only hold the VPN interface

On Windows, macOS and Linux the gate is a set of rules in the system firewall that does not depend on the app process. Android has no equivalent: an ordinary app cannot install firewall rules. All it decides is whether the VPN interface exists and whether it stays.

So on Android the gate in godusevpn is the VPN interface. While it exists, every packet meant for the tunnel lands in it; once it is gone, the system hands traffic back to Wi-Fi or mobile data.

While the core restarts, the interface stays

Switching subscriptions, toggling automatic and manual node selection, or retrying after a crash all stop the proxy core for a moment. With leak protection on, godusevpn keeps the VPN interface during that gap: the interface is still there, nothing reads it, packets that land in it are dropped, and traffic resumes when the core is back.

Only tapping Disconnect closes the interface, because that withdraws your intent to stay connected. In global mode the interface stays even when the connection fails, waiting for recovery instead of quietly going direct.

A killed process or a reboot: two system settings

If the system kills the app process, the VPN interface goes with it, and there is nothing the app can do about that part. Android provides two settings for it: Always-on VPN restarts the VPN app after boot and after it exits, and "Block connections without VPN" makes the system block all traffic whenever the VPN is not up.

You find them under Network & internet → VPN in system settings: tap the gear next to godusevpn and turn both on. Names vary a little between vendors. The settings page in godusevpn has a shortcut that opens this screen.

When "Leak protection on" lights up

From 0.8.2 this notice on Android only shows when something is actually holding traffic back: the tunnel is up (an interface kept in place while the core restarts counts), or both system settings are on.

It no longer shows while connecting, after a failed connection, or when the VPN interface could not be created. It used to light up as soon as you tapped Connect, which could look like protection that was not there yet. Tap the notice for the full explanation and a button that opens the system VPN settings.

Costs and limits

"Block connections without VPN" is a hard block at system level, and it has a price: on public Wi-Fi with a web login, the login page cannot open before the VPN is up, so you have to turn the setting off for a moment; on some Android versions casting and printing on the local network are affected.

Apps set to bypass in godusevpn skip the VPN entirely; with the system block on, the system blocks them as well. In global mode with leak protection on, per-app bypass does not apply in the first place.

Check it yourself

After changing the settings, walk through these steps. It tells you more than looking at the switches.

  • Confirm both settings are on in the system VPN screen, then see "Leak protection on" on the godusevpn home page
  • Open a page that shows your exit IP and note the address
  • Toggle airplane mode or move from Wi-Fi to mobile data, then reload: the exit should stay the same or the page should fail to load, not show your local address
  • Swipe godusevpn away from recent apps and reload: there should be no connectivity, or the system brings the VPN back