This script monitors a given IP address and if its not reachable anymore it will login to a UniFi Dream Machine Pro and restart the site2site vpn.
The script will prompt you on the first run for all settings and will save them in an encrypted file that only works on the machine it was created on.