Passing /dev/net/tun into multiple containers

ymyinfinity

New Member
Oct 30, 2024
3
0
1
Hello community,

I am trying to pass /dev/net/tun into multiple LXC containers.
I have tried it via editing the conf files through the cgroup method as well as directly adding device using the webGUI (which results in a dev0: /dev/net/tun entry in the conf file).

I am able to get the first container to boot and show the tun interface.

However when passing by cgroup method, subsequent containers fail to boot.
When adding device via the gui (dev0:... conf entry), the containers boot but do not show a tun interface.

Is what I am trying to do possible?
The goal is to have a container that is able to access vpn for p2p, and another container that is capable of serving as a tailscale exit node, and a third container for misc uses in the future.

thank you all in advance! -Ming
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!