This script automatically creates an Wireguard VPN droplet and then connects to it. If there's no connection through Wireguard for 15 minutes, it then automatically destroys the droplet.
Install wireguard on your machine:
sudo add-apt-repository ppa:wireguard/wireguard -y
sudo apt install wireguard -y
Follow the instructions to install doctl and then authenticate.
Ensure an access token is available on the shell as DIGITAL_OCEAN_TOKEN
.
Then run the init script.
./init.sh
It should then boot up a droplet and connect to it via wireguard.