rootless podman network architecture diagram? #22943
-
Hi everyone! First of all, thank you for clicking on this post to have interest in my question... I highly appreciate it. I'm new to podman, and I've been looking into the usage of rootless podman for its security benefits.
Podman Info
After some time of investigation, I realized that However, I'm not really familiar with the network stacks & how the flow works. To help me understand better, I tried to look for some architecture diagram out there, but I wasn't able to find any out there! (For So after doing some hands-on experiments, I realized that:
So it makes me think "okay, then maybe by using user-defined networks, podman recognizes that it should be using a rootless namespace that's created by the Okay, I hope I understood correctly. I'm just not sure if it creates TAP devices for EACH NETWORKS, or if it just creates one TAP for all the rootless containers... which has a diagram of a single OR, I have: So although my Is any of these diagram correct? Am I understanding the network flow correctly? Any feedback would be REALLY, really highly appreciated.. I'll try to fix my diagram with it. Thank you so much in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
I've also read that podman consists of (Considering I have |
Beta Was this translation helpful? Give feedback.
-
This is what I created for my devconf talk. Basically there is only one rootless-netns namesapce (podman unshare --rootless-netns) connected via pasta/slirp4netns and all the bridges veth are inside there. |
Beta Was this translation helpful? Give feedback.
https://passt.top/#pasta
or, in more detail: https://2023.everythingopen.au/schedule/presentation/4/
It's pretty much the same as what you have with slirp4netns, plus the "tap bypass" represented here: https://passt.top/#pasta-pack-a-subtle-tap-abstraction.
Or, in that diagram, replace "pod network namespace" with Podman. I know, "pod" might be a bit misleading…