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

Network connection failed from external network to slirp network #276

Open
cheungsuifai opened this issue Feb 15, 2023 · 2 comments
Open
Labels
question Further information is requested

Comments

@cheungsuifai
Copy link

It seems I can not ping from host to slirp network, but reverse it's OK.

And this prevent external user to access Load Balance Service in u7s cluster.

It there any solution?

@AkihiroSuda
Copy link
Member

See https://github.com/rootless-containers/usernetes/tree/v20221007.0#expose-netns-ports-to-the-host

$ ./rootlessctl.sh add-ports 0.0.0.0:30080:30080/tcp

@AkihiroSuda AkihiroSuda added the question Further information is requested label Feb 15, 2023
@cheungsuifai
Copy link
Author

but load balance is different from nodeport.

For nodeport service, external user use the host node IP and service port to access the service.
After the traffic arrived at the host, it will be forwarded due to the port-forwarding which provider by rootlessctl(socat).

But for load balances service, an external IP must be assigned to the service. so that external user can accessed the service via this IP. But this external IP connection is broken due to no route from external network to slirp network crossing the host network.

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

No branches or pull requests

2 participants