Proxmox
Proxmox is frequently used for it’s ability to mix Linux Containers and Virtual Machines. Containers are ideal for their low overhead, but they use the host’s kernel so you must load the wireguard module there.
Prepare Proxmox
The Wireguard kernel module is now available on proxmox, so all you need to is load it.
apt install wireguard
modprobe wireguard
# This step may no longer be required, but haven't tested
echo "wireguard" >> /etc/modules-load.d/modules.conf
Edit the container’s config
Add the TUN to the lxc[^1] conf file on the host
lxc.mount.entry = /dev/net/tun dev/net/tun none bind create=file
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 26, 2023: Wireguard proxmox typeo (bf3f565)