Tips on how to automate turning off VPN on home network

I have Proton running on my router and I want to have Proton running on my phone as well. The issue I am running into is my connection is unreliable or really slow when running through two VPNs, not surprised.

I would like to automate turning off Proton when connected to my home network and turning in back on when disconnected.

I am on and iPhone running the latest iOS version. I tried creating a shortcut which works, but you can automate it to trigger when you connect/disconnect from a WiFi network. Any advice on how I can automate it so it is hands off?

Great questions. Is this possible on Android?

iOS has an app called Shortcuts which you can do this with :+1:

I had mine as an automation in the shortcuts app exactly as you explained.

To disconnect when coming home

Open ShortcutsApp, go to automations tab.

Click “+”

Scroll down to Wi-Fi and click

Under “network” choose your home network.

Leave “Network Joined” checked.

Leave “Run after connection interruption” off

Check “Run immediately”

Click “Next” in top right.

Click “new blank automation”

Click “controls”

Scroll down and click “set VPN”

Change “Connect” to “Disconnect” and then the blue “VPN” to set it to proton.

Click “done”

Now do another automation set it to leave the network and then connect the vpn.

Asus Routers with Merlin firmware running Proton and other VPN software have an option called VPN Director that lets you specifically assign static home ipv4 addresses of your devices to use the router based vpn. If you don’t list the static ip address of the phone in VPN director it will bypass the router based vpn. Only downside to this is I’ve found you need to disable router ipv6 support when using proton at the router level otherwise your ipv6 address is leaked.

Yeah I do this with WG tunnel app. You can also do this with routines on Samsung

Sweet! I wasn’t looking under Automations. Dumb mistake. Thank you!