[Feature Request] being able to toggle, or just disable, a VPN connexion

Hi there,

I found out that it’s possible to disable any VPN on Android, by simply going to Network & Internet settings > Advanced > VPN, and tapping the VPN you’re currently connected to.

In my use case, it would be awesome if I could do this using a Tasker action, and without having to rely on simulated inputs or extra plugins.

I tried using the Custom Settings action, but the finder wasn’t able to detect the VPN state change.

Thank you!

If your vpn app have a shortcut or qs tile then it can toggled with Tasker.

Has feature for Wireguard and if you migrate your NordVPN .ovpn profile to this OpenVPN client you can the use this plugin to start/stop/pause it.

Hi… Can you help me? I need help

And the official client works by sending intents.

Yes but will require adb wifi

Which is insecure. The apps above properly utilize startActivityForResult() and will utilize AIDL to only allow the plugin to start/stop. When you issue the intent from Tasker to OpenVPN app, the AIDL will be wildcard (*/*) thus allowing anything that can send intents, to start and stop your VPN at will.

Ah OK, will be no good for me as I restart my phone every few days so would need to re-run the command.

I made a task for kaspersky vpn… but i’m bit confused… can i make it toggle off when quit the app?

Does Kaspersky have quick tile shortcut? If yes you will need adb wifi permission and it can be done.

Could not understand what do you mean by ending app? AutoInput can toggle qs tiles. So what are you trying to end?

Are you fine using adb wifi as you have grant permission everytime after reboot? If yes use adb wifi action >> interact with quick setting tile.