qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
269 stars 31 forks source link

Update errors/tun.md to include instructions for device passthrough #71

Open epic0421 opened 1 month ago

epic0421 commented 1 month ago

What is your suggestion?

As of Proxmox VE 8.2, a new option was added for device passthrough.

Old method of allowing access to /dev/net/tun in /etc/pve/lxc/x.conf

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

New method of allowing access to /dev/net/tun in /etc/pve/lxc/x.conf

dev0: /dev/net/tun

Or it can be done through the gui in the lxc container 2024-05-09_05 44 30 2024-05-09_05 48 28

epic0421 commented 1 month ago

Forgot to mention that this passthrough does work on unprivileged LXC containers too