/wireguard-setup

A script which can help with generating config files for wireguard

Primary LanguageShellGNU General Public License v3.0GPL-3.0

wireguard-setup

Simple script that helps with the generation of configs and keys for peers in an existing wireguard installation.

This script needs to be run on the wireguard server as root.

Installation

Get this script via:

sudo wget https://raw.githubusercontent.com/OlJohnny/wireguard-setup/master/wireguard-setup.sh -O ./wireguard-setup.sh | sudo chmod +x ./wireguard-setup.sh

Usage

  • Execure script on server
  • Copy & Paste generated config (output in terminal) to the client
  • Execute the following commands on the client:
    • sudo chmod -Rf 770 /etc/wireguard Config Readability limited to root
    • sudo systemctl enable wg-quick@wg0 Enable Wireguard Tunnel at system startup