/wg-setup

A simple script pack for installing and running WireGuard on Ubuntu servers. Supports streamlined peer creation.

Primary LanguageShell

How To Use

  1. Install git on the server:
$ sudo apt update
$ sudo apt install -y git
  1. Clone this repo:
$ git clone https://github.com/saeidscorp/wg-setup.git
  1. Run the damn script!
$ cd wg-setup
$ ./wg-setup.sh
  1. Use wg-manage to create peers:
$ wg-manage add_peer john phone linux

​ This will create a config file named john-phone.conf in the current directory.

  1. Transfer the config to the device to use however you like. You can also use QR codes [optional]:
$ sudo apt install -y qrencode
$ qrencode -t ansiutf8 < john-phone.conf
  1. Connect and enjoy!