Overview of RootlessKit Network Drivers
masterRootlessKit provides several drivers to manage network connectivity and isolation within user namespaces. The choice of driver affects performance, security, and feature support (like IPv6 or ICMP/ping).
Available Drivers
--net=host: Uses the host network namespace (default). No isolation.--net=slirp4netns: Usesslirp4netnsfor usermode networking (recommended).--net=pasta: Usespasta(experimental).--net=vpnkit: UsesVPNKit.--net=lxc-user-nic: Useslxc-user-nic(experimental).--net=gvisor-tap-vsock: Usesgvisor-tap-vsock(experimental).
Performance Comparison (iperf3)
| Driver | MTU=1500 | MTU=65520 |
|---|---|---|
slirp4netns | 1.69 Gbps | 8.11 Gbps |
vpnkit | 0.14 Gbps | (Unsupported) |
pasta | 0.24 Gbps | 31.9 Gbps |
gvisor-tap-vsock | 2.46 Gbps | 8.75 Gbps |
lxc-user-nic | 49.1 Gbps | 50.7 Gbps |