system/notes/vpn.md

448 B

WireGuard

Generate key pair

umask 077
wg genkey > ./private
wg pubkey < ./private > ./public

Configuration

Then create QR code with configuration using the following command:

nix build -f ./misc/wg-client-conf.nix \
  --argstr address "" \
  --argstr dns "" \
  --argstr privateKey "$(cat private)" \
  --argstr serverPublicKey "" \
  --argstr serverEndpoint ""

References: