Block traffic if the VPN drops
Stop your apps from using the open internet while dosya VPN reconnects, with the kill switch on iPhone, iPad, Mac, and Windows or Always-on VPN on Android.
Last reviewed
If the VPN connection drops for a moment, for example while a server restarts, your apps normally fall back to your ordinary connection. The setting Block traffic if the VPN drops prevents that: nothing leaves the device until the VPN is back. This is often called a kill switch. It is off by default.
Steps: iPhone, iPad, and Mac
- Open dosya VPN and go to Settings.
- Under Connection, turn on Block traffic if the VPN drops.
- Disconnect and connect again. The setting applies from the next connection.
While the VPN reconnects, your apps cannot reach the internet. They resume when the connection returns.
Steps: Windows
- Open dosya VPN and go to Settings.
- Under Connection, turn on Block traffic if the VPN drops.
While the VPN is on, nothing leaves the PC except through dosya VPN, even while a server restarts. Turning the VPN off lifts the block, so you are never stuck offline after you disconnect.
Steps: Android
Android provides this protection itself, so the row in the app opens the system settings instead of acting as a switch.
- In dosya VPN, open Settings and tap Block traffic if the VPN drops. Android’s VPN settings open.
- Tap the gear icon beside dosya VPN.
- Turn on Always-on VPN, then Block connections without VPN.
With both on, Android starts the VPN after a restart and blocks all traffic whenever the VPN is not connected. The exact names of these switches vary slightly between phone makers.
Note that this also blocks traffic when you disconnect on purpose. To use the internet without the VPN, turn Block connections without VPN off again.
Linux
The Linux app does not have this setting. If you need it on Linux, a firewall rule that only allows traffic through the VPN interface is the usual approach, and it is outside what the app manages.
Expected result
With the setting on, a page that is loading when the VPN drops simply pauses. It continues once the status line returns to Connected, and it never loads over your ordinary connection in between.
What the setting does not cover
- Switching location. The app disconnects from the old city before it connects to the new one. On iPhone, iPad, and Mac the block only applies while a connection is active or reconnecting, so there can be a brief gap.
- Before you first connect. Except with Android’s Always-on VPN, traffic is open until you press Connect.
- Local devices. With the block on, some devices on your own network, such as printers or casting targets, may become unreachable while you are connected.
If the internet stops working
With this setting on, a VPN that cannot reconnect leaves you offline by design. On iPhone, iPad, Mac, and Windows, open the app and press Disconnect, or turn the setting off. On Android, disconnecting does not lift the block: turn Block connections without VPN off in the system VPN settings. No internet while connected to dosya VPN has more checks.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.