Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure port forwarding? #338

Closed
zopsicle opened this issue Mar 15, 2024 · 1 comment
Closed

How to configure port forwarding? #338

zopsicle opened this issue Mar 15, 2024 · 1 comment

Comments

@zopsicle
Copy link

zopsicle commented Mar 15, 2024

slirp4netns surely supports port forwarding. For instance, https://rootlesscontaine.rs/how-it-works/netns/incoming/ reads:

slirp4netns also has its own port forwarder.

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).

@zopsicle
Copy link
Author

Oh, apparently this can only be configured through the API socket, not the command line. It is documented under “API SOCKET”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant