How can I configure Android so that all Internet traffic goes through a VPN and is blocked if the VPN isn't activated, without rooting Android? How can I configure Android so that all Internet traffic goes through a VPN and is blocked if the VPN isn't activated, without rooting Android?
This is Always-on VPN, which is a stock feature since Android 7 (root not needed). You will see the &quot;Always-on&quot; &amp; “Block connections without VPN&quot;, options in VPN settings.
If you are looking to have this feature on pre-Andoid 7 devices, you need to look for VPN apps that offer this. For example, this app offers this feature by name of &quot;Kill Switch&quot;

On Android 10 with AnyConnect VPN: Settings → Connections  → More connection
settings   → Select the VPN client  → Enable &quot;Always-on VPN&quot; and &quot;Block connections without VPN&quot;: