samurailink3 / TomsEasyWireguardSetupScript

An easy way to create a mesh VPN
The Unlicense
0 stars 0 forks source link

Tom's Easy Wireguard Setup Script (for Debian-based Systems)

This script will install wireguard, generate configs for a specified number of clients, and enable IP forwarding for all connected clients. This script is idempotent, meaning you can run it multiple times without destroying your existing config. If you need to add another VPN client, just tell the script you need 4 clients instead of 3, etc.

Prerequisites

Instructions

Automation

If you'd like to use this script in further automation/without user prompting, you'll need to set the following environment variables:

Advanced Features

License

Public Domain - The Unlicense

You may use this code however you'd like, wherever you'd like, without any requirements, forever.

References and Sources