Skip to content

Instantly share code, notes, and snippets.

@Darkflib
Created November 16, 2018 14:10
Show Gist options
  • Select an option

  • Save Darkflib/a264275f3858b569cfeb3937ced353a7 to your computer and use it in GitHub Desktop.

Select an option

Save Darkflib/a264275f3858b569cfeb3937ced353a7 to your computer and use it in GitHub Desktop.
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install wireguard
mkdir -p /etc/wireguard
wg genkey | tee /etc/wireguard/test-private.key | wg pubkey > /etc/wireguard/test-public.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment