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.