Skip to content

DrRowland/wireguard-install

 
 

Repository files navigation

WireGuard On-Demand (DigitalOcean)

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!).

Also, it's possible these scripts may mess-up your network config, so use at your own risk!

Server configuration based on angristan/wireguard-install:
https://angristan.xyz/how-to-setup-vpn-server-wireguard-nat-ipv6/

About

WireGuard VPN On-Demand (DigitalOcean)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 57.0%
  • Python 43.0%