Unprivileged LXC TUN Error

wgallt

New Member
Apr 18, 2022
8
1
3
I'm trying to configure AirVPN Suite on an unprivileged LXC container. It uses a daemon, bluetit.service, to start the VPN connection. I've added the following to the LXC configuration:

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

And set the appropriate permissions:

Code:
chown 100000:100000 /dev/net/tun

The connection fails with the following messages:

Code:
Sep 30 00:40:49 test bluetit: TUN Error: tun_tx_queue_len_error: Operation not permitted
Sep 30 00:40:49 test bluetit: EVENT: TUN_SETUP_FAILED [FATAL ERROR] tun_tx_queue_len_error: Operation not permitted
Sep 30 00:40:49 test bluetit: ERROR: TUN_SETUP_FAILED

The tun adapter is mapped and the permissions look fine. Any idea what could be causing this? Thanks.
 

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!