Skip to content

Instantly share code, notes, and snippets.

@mmeyer2k
Last active October 6, 2020 22:07
Show Gist options
  • Save mmeyer2k/ac3a7c642253510cd76089ce9c4b6bed to your computer and use it in GitHub Desktop.
Save mmeyer2k/ac3a7c642253510cd76089ce9c4b6bed to your computer and use it in GitHub Desktop.
Wireguard server setup steps
apt install wireguard
echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/99-wireguard.conf
wg genkey | sudo tee /etc/wireguard/privatekey | wg pubkey | sudo tee /etc/wireguard/publickey
sysctl --system
wg-quick up wg0
systemctl enable wg-quick@wg0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment