- Install
git
on the server:
$ sudo apt update
$ sudo apt install -y git
- Clone this repo:
$ git clone https://github.com/saeidscorp/wg-setup.git
- Run the damn script!
$ cd wg-setup
$ ./wg-setup.sh
- 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.
- 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
- Connect and enjoy!