tun interface inside docker not able to read packets from host
问题 I am trying this tutorial for creating and using tun interface. In my case, I want to use it inside a docker container. My host and docker container both are Linux with mknod support. I am trying to get tun interface inside the container to read packets from host but without using --network=host . Based on the docker run doc, I am mapping host /dev/net/tun inside docker using --device . Then adding capabilities NET_ADMIN (also tried adding MKNOD , NET_RAW but does not seem to help). Then