Skip to content

nealfennimore/digital-ocean-wireguard-vpn

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

Wireguard VPN Droplet that destroys itself when not in use

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages