Find file History
Pull request Compare This branch is 113 commits ahead, 57 commits behind freifunk-luebeck:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
functions.sh
wireguard.service
wireguard.sh-template

README.md

Automate Wireguard configuration

Script to configure pointtopoint tunnel with wireguard.

Usage

wg genkey | tee privatekey | wg pubkey > publickey
cat privatekey publickey
cp wireguard.sh-template wireguard.sh
# set your ips, privatekey and peers
$EDITOR wireguard.sh
# install systemd service
ln -s $(readlink -f wireguard.service) /etc/systemd/system/wireguard.service
systemctl start wireguard
# manual
./wireguard start