Wireguard v LXC kontejneru (Proxmox)

Wireguard v LXC kontejneru (Proxmox)

Na hostu (Proxmox):
sudo apt-get install libmnl-dev libelf-dev pve-headers-$(uname -r) build-essential pkg-config git
git clone https://git.zx2c4.com/WireGuard
cd WireGuard/src
make
make install

wg
modprobe wireguard
echo "wireguard" >> /etc/modules

lsmod |grep wireguard

V kontejneru (LXC):

lsmod |grep wireguard

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
wg