Skip to content

Instantly share code, notes, and snippets.

@ishrakr
Created October 24, 2019 15:08
Show Gist options
  • Save ishrakr/e0ac0a780860b82d1bbca1e1d0a02f08 to your computer and use it in GitHub Desktop.
Save ishrakr/e0ac0a780860b82d1bbca1e1d0a02f08 to your computer and use it in GitHub Desktop.
# HOST
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 pve-headers
echo "wireguard" >> /etc/modules-load.d/modules.conf
# Container
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-get install --no-install-recommends wireguard-tools
# Container (Ubuntu)
sudo add-apt-repository ppa:wireguard/wireguard
sudo apt update
sudo apt-get install --no-install-recommends wireguard-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment