Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 731 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 731 Bytes

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