61 karma · joined Feb 23, 2022 (4y ago) · 8 submissions
comment 8mo ago · link · parent
We're finally adding multithreading (https://bugs.passt.top/show_bug.cgi?id=13) these days.
comment 4y ago · link · parent
The second one uses rootlesskitport (while slirp4netns still takes care of outbound connections): it opens sockets directly in the detached network namespace and passes data between sockets without going through the tap device. It's faster, because you avoid 1. the tap device 2. Layer-4/Layer-2 translations. But those sockets are local to the namespace, so destination and source address become loopback addresses. That might be unexpected in some cases, see also https://nvd.nist.gov/vuln/detail/CVE-2021-20199.
pasta implements both modes (it's the "tap bypass" in https://passt.top/passt/about/#pasta-pack-a-subtle-tap-abstr...), and selects the appropriate one based on the original source address, so that you don't need to choose one. Local connections skip the tap device, non-local ones go through it (you can have non-loopback source addresses only for traffic coming through a a non-loopback interface).
comment 4y ago · link · parent
So yes, it supports rootless, but by (kernel) design, there's no magic way to bridge (no pun intended) that gap (even with macvlan).
comment 4y ago · link · parent
It's mostly in the direction of IPv6 support, performance, security. Those topics are covered in slides: https://static.sched.com/hosted_files/kvmforum2022/01/passt_... or recording: https://www.youtube.com/watch?v=U89bWP1HNgU of a recent talk from KVM Forum 2022.
comment 4y ago · link · parent
I had a look at Winsock documentation a while ago, that doesn't look so bad in terms of what we need. See also: https://lore.kernel.org/qemu-devel/20220919232441.661eda8d@e.... Replacing epoll might be messy, though.
comment 4y ago · link · parent
See https://medium.com/nttlabs/dont-use-host-network-namespace-f... for just an example of what can go wrong otherwise.
7.
Podman: Pasta User-Mode Networking(github.com ↗)
104 points · by sbrivio · 4y ago · 26 comments
8.
Mbuto – Host-agnostic initramfs image builder for lightweight virtual machines(mbuto.sh ↗)
3 points · by sbrivio · 4y ago · discuss