Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 817 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 817 Bytes

WireGuard Digital Ocean VPN

What it does

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.

Installation

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.