Question on my VPN on Specific WIFI setup.
When I execute this automation by connecting to the WiFi “Kmg0” it pops up BRIEFLY at the top of the screen saying automation. But if I don’t quickly see that automation notification pop up AND click it then it will not automatically connect my VPN to “quick connect” what am I doing wrong here?
Not really what you’re asking, but the official WireGuard client lets you do this. You can set to connect only when on specific networks, or only when not on specific networks.
Most VPN services will provide a WireGuard config these days, or you can roll your own.
iOS version ? I don’t have a vpn action
This type of automation requires confirmation.
Apple made the genius invention of manual automations.
Nothing, but Apple forbids ‘automations’ running ‘autonomously’
You can actually make it completely automatic without confirmation, but you have to jump through some hoops, because it‘s Apple.
Do the following steps:
- create a focus mode and let it trigger automatically by a location, e.g. your home address (make the radius as small as possible)
- create a new automation with that focus as it‘s trigger
- call this shortcut inside the automation with the run shortcut action: Shortcuts
- Edit the shortcut and put in your own WiFi SSID name, your FocusMode in both places where it‘s turned off and of course the script you actually want to execute. You can edit the Shortcut as you like, or just use the “run shortcut” action inside this shortcut to call whatever you want.
once the focus is triggered by the location it will try to execute the shortcut 18 times every 10 seconds, and checks if you are connected to the desired WiFi. So you have 3 minutes to connect to the WiFi network. If you are not connected to the WiFi during this time, the automation will fail.
I tried to let the automation loop and check for WiFi for longer, but it will always time out for me when I try more than 3 minutes.
this is actually the move! thank you for sharing, wireguard works perfectly for this use case.
This. It is a very nice feature known as “on demand” connections for WireGuard.
16.4
I added the vpn action two different ways as a fail safe to just get one to work and neither auto connect.
Photo here https://imgur.com/a/TE75wba
You can make it completely automatic, but that requires a lot of workarounds.
In other words: apple forbids automatic automations
This is because you’re using the joining wifi trigger, which requires confirmation. Covered in this sub numerous times
I’m not able to help bro I’m sorry not familiar vpn shortcuts
I kind of wish that was an option in the first place, but I guess I can understand why Apple requires confirmation first.
Let me shorten this to “apple forbids automations”
Ahh. Apparently I’m retarded. Any other method you know of other than passeportout? That app doesn’t use ikev2 connection I need to run AdGuard and Proton at the same time.
Also if I do it by location does that still need confirmation?
I don‘t really get it tbh. It‘s already possible to trigger an automation by a location without confirmation, e.g by a focus mode or by apps like IFTTT, which can send a message to an email or phone number without the need for a confirmation. If possibly malicious shortcuts are the concern, Apple could just put these restrictions only on downloaded/imported shortcuts.
If a potentially malicious actor has access to your device in a way to create such an automation, then he could also do much worse things instead.
Location based automation still needs confirmation, but you can you the much discussed focus mode workaround to get around that restriction