Sample Header Ad - 728x90

Is it possible to send packets between network namespaces using only TUN/TAP interfaces?

2 votes
1 answer
2900 views
I am trying to understand the difference between different types of (virtual) interfaces (e.g. TUN/TAP, veth etc.) and was studying some of these types within the context of containers. Is it possible to send packets between a container (in its own network namespace) to the host's network namespace using only TUN/TAP interfaces or is a veth pair (one end in each namespace) required to do this? From my understanding, TUN/TAP interfaces can only be used to send/receive packets to/from userspace from/to the network stack corresponding to the network namespace of that interface and not send packets between network namespaces. Is this correct?
Asked by dippynark (337 rep)
Nov 15, 2018, 03:43 PM
Last activity: Nov 17, 2018, 08:03 PM