Spins up a DigitalOcean server and installs and configures WireGuard.
It then configures your local (ubuntu client) computer to use this VPN.
Assumes you are using Ubuntu and have already installed WireGuard.
(https://www.wireguard.com/install/)
- This requires python-digitalocean (I recommend pip and virtualenv).
- Also, resolvconf (sudo apt update && sudo apt install resolvconf)
- You need to put your DigitalOcean API personal access token in secret.py
- Then run python ./demo.py as root.
N.B. These scripts are for testing purposes only! It is important to manually check any DigitalOcean instances created have been successfully destroyed (or you will be paying for them!).
Server configuration based on angristan/wireguard-install:
https://angristan.xyz/how-to-setup-vpn-server-wireguard-nat-ipv6/