by Jesse Johnson
Version 1 (September 11, 2023)
Download (63 downloads)
Automatically enable Wireguard VPN while connected to an untrusted WiFi network access point.
INFO:
This automation uses BSSIDs instead of the standard SSIDs for verifying trusted WiFi networks (I believe this is more safe because anyone could duplicate your WiFi name). This means YOU NEED TO TRUST EACH INDIVIDUAL ACCESS POINT.
SETUP:
1) For Wireguard AND Automate Apps - Long press app icon > App Info > Battery > Set to "Unrestricted".
2) In Wireguard App go to Settings > Allow remote control apps > Enable
3) In Automate App go to Settings > Privileges: enable "Control Wireguard tunnels".
4) Automate > Settings > Run on system startup > Enable
5) Open the flow editor and use block #21 to help you find the BSSID(s) for your WiFi Network. Press "Pick Network". You will see a list of WiFi Network Names with their corresponding Network Addresses (BSSIDs). You will need to copy the address for each instance of your Trusted WiFi network you see on that list. If your Trusted WiFi network contains multiple Access Points you may need to move around to find all the addresses.
6) Now edit block #22. The "Value" should be a list of your BSSIDs that you gathered in step 5. (EXAMPLE: ["ff:ff:ff:ff:fb:01", "ff:ff:ff:ff:fb:02", "ff:ff:ff:ff:fc:94", "ff:ff:ff:ff:fc:95"] )
7) Finally, edit block #19. "wireguardProfile" in the Value field should be changed to your wireguard profile name.
Recheck that all of your edits were saved and you should be ready to start the Flow.