But the manual does not document anything about this (how it works nor how to configure it).
(Or maybe I just don’t understand what “port forwarding” means in this context; I assume that “port forwarding” means if the host connects to port X and the container listens on port Y, a connection can be established if slirp4netns is configured to map X to Y).
slirp4netns surely supports port forwarding. For instance, https://rootlesscontaine.rs/how-it-works/netns/incoming/ reads:
But the manual does not document anything about this (how it works nor how to configure it).
(Or maybe I just don’t understand what “port forwarding” means in this context; I assume that “port forwarding” means if the host connects to port X and the container listens on port Y, a connection can be established if slirp4netns is configured to map X to Y).