rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.58k stars 261 forks source link

UDP port forwarding not working on Windows with network tunnel enabled #6821

Open segevfiner opened 2 weeks ago

segevfiner commented 2 weeks ago

Actual Behavior

With the network tunnel enabled host-switch listens for TCP even when exposing a UDP port from a container. Without it enabled wslrelay.exe doesn't listen at all on UDP ports.

Steps to Reproduce

Any container with -p 1234:1234/udp

Result

host-switch listens for TCP on the exposed port instead of UDP.

Expected Behavior

It should listen and forward UDP correctly.

Additional Information

No response

Rancher Desktop Version

1.13.1

Rancher Desktop K8s Version

1.29.4

Which container engine are you using?

moby (docker cli)

What operating system are you using?

Windows

Operating System / Build Version

Windows 11 Pro 10.0.22631

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

N/A

Nino-K commented 1 week ago

The UDP is not supported currently, however, this is something that I will look into after our current release since I know that the upstream library that we are using may have done some work to support this.

segevfiner commented 1 week ago

P.S. I also tried WSL mirrored networking mode, but Rancher Desktop won't start in that mode https://github.com/rancher-sandbox/rancher-desktop/issues/6665