by Nathan Flory
[Premium required, no root needed]
Automatically connect to your WireGuard VPN when connecting to an untrusted Wi-Fi network. Automatically disconnects from the VPN when connected to a trusted network, and remains connected when disconnected from Wi-Fi.
You get to choose which networks to trust. A notification is displayed to indicate the VPN status and allow you to change the trustworthiness of a network. After connection to a new, unknown network, pops up a dialog box to trust or not trust network. Smartly detects new or changing connections to unknown access points with the same network name (SSID), preventing possible man-in-the-middle attacks.
Configuration options are stored in a local database file at Downloads/wifi.db.
This flow is only designed to work with the Wireguard app. The following prerequisites are required (borrowed from user k4n3n4s):
* Automate > Settings > Applications > control WireGuard Tunnels
* WireGuard > Settings > Allow remote control apps
* Android > Settings > Apps > WireGuard > Battery > Disable battery optimization option
Recommend disabling logging as the flow provides it's own logs that are easier to understand.