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

Support for UDP ports? #7473

Closed
KallynGowdy opened this issue Jun 7, 2022 · 5 comments
Closed

Support for UDP ports? #7473

KallynGowdy opened this issue Jun 7, 2022 · 5 comments

Comments

@KallynGowdy
Copy link

It appears that this agent currently only support setting up forwards for TCP listeners. Would it be possible to detect and support UDP ports as well?

The iptables lookup entries already include whether the port is TCP/UDP, so hopefully it is as simple as checking the flag and opening the listener in a different mode.

Thoughts?

@jandubois
Copy link
Member

hopefully it is as simple as checking the flag and opening the listener in a different mode.

I don't think the network bridge between Windows and WSL support UDP port forwarding, but am not sure.

We'll eventually implement our own port forwarding code to also allow listening on external interfaces, and not just on localhost.

@Nino-K should have more details.

@KallynGowdy
Copy link
Author

Yeah, it looks like this is a limitation of WSL. They've been using this issue as the basis point for several UDP-related problems, but it doesn't look like there's much activity on that issue specifically. There's a lot more discussion about supporting bridge networking with WSL (and even some support for it in the WSL Preview), but it is unclear what that would do for UDP networking or even if it is an acceptable solution.

@jandubois
Copy link
Member

We have a plan to tunnel all traffic through a vsock so it looks like it originates from and terminates on the host, and not inside WSL2. That should also help with proxy settings and other problems, and we will be decoupled from whatever WSL2 is doing. But it will take a while to get implemented.

@Nino-K Nino-K transferred this issue from rancher-sandbox/rancher-desktop-agent Sep 12, 2024
@jandubois
Copy link
Member

Comments on #6821 seem to indicate that UDP has been working lately with WSL and the legacy networking stack (which is no longer supported as of Rancher Desktop 1.15).

@Nino-K I think this issue should be considered a duplicate of #6821 and closed.

This was referenced Oct 11, 2024
@Nino-K
Copy link
Member

Nino-K commented Oct 11, 2024

I'm going to close this since it's a duplication of #6821.

@Nino-K Nino-K closed this as completed Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants