Hi guys, I always use a VPN but sometimes I need to disable it.
The problem: iOS doesn’t show if the VPN is on/off unless you drag the control center down. I hate this. Sometimes I don’t remember if the VPN is on or off and I need to manually go and check.
The solution: I made a shortcut that:
-
Toggles the VPN on/off (so that I can do it without going to the vpn app).
Note that this step is optional. If you want the script to check if a VPN is connected only you can remove this step. -
Checks the current IP.
-
If the IP belongs to the VPN server then the VPN is enabled.
-
If the VPN is enabled it activates a focus mode (that doesn’t do anything except displaying an icon next to the time that tells me if the VPN is on).
Unfortunately I don’t think that shortcuts allows to check if a VPN is on/off so the check IP method is the only one I found. This means that if you use a commercial vpn app you should memorize in your script the IP addresses of the servers that you usually connect to.