I am trying to create an lxc container that acts as a vpn server. I am trying to add the tap/tun adapter to the container's device list. I have tried adding the following line to the lxc config.
lxc.cgroup.devices.allow = c 10:200 rwm
That did not seems to add it to the container. I have tried creating the folder
/var/lib/lxc/vm1/rootfs/dev/net
and
mknod -m 666 /var/lib/lxc/vm1/rootfs/dev/net/tun c 10 200
This does not work as well. Using mknod inside the container throws an error Operation not permitted
Any ideas on how I proceed? I am still new to VPN servers and LXC containers.