Skip to content

Instantly share code, notes, and snippets.



Last active Jan 28, 2019
What would you like to do?
Wireguard Notes
One step keygen:
umask 077 # This makes sure credentials don't leak in a race condition.
wg genkey | tee privatekey | wg pubkey > publickey
Manual steps:
wg genkey
echo <private key> | wg pubkey
PrivateKey = oM3PZ1Htc7FnACoIZGhCyrfeR+Y8Yh34WzDaulNEjGs=
ListenPort = 5803
PublicKey = Jixsag44W8CFkKCIvlLSZF86/Q/4BovkpqdB9Vps5Sk=
EndPoint = [2001:db8:2::1]:5801
AllowedIPs =,::/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment