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

UDP port forwarding fails in one direction #708

Open
1 of 5 tasks
scandey opened this issue May 9, 2023 · 4 comments
Open
1 of 5 tasks

UDP port forwarding fails in one direction #708

scandey opened this issue May 9, 2023 · 4 comments

Comments

@scandey
Copy link

scandey commented May 9, 2023

Description

This is perhaps an upstream issue, but it took me way too many hours to figure out that Colima/Lima drops UDP packets that are otherwise properly port forwarded in nerdctl compose as they reach the lima machine.

Related issues:

#255
lima-vm/lima#366

Version

Colima Version: colima version HEAD-9575e08
Lima Version: limactl version 0.15.1
Qemu Version: qemu-img version 8.0.0

Operating System

  • macOS Intel <= 12 (Monterrey)
  • macOS Intel >= 13 (Ventura)
  • macOS M1 <= 12 (Monterrey)
  • macOS M1 >= 13 (Ventura)
  • Linux

Output of colima status

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: containerd
INFO[0000] mountType: sshfs

Reproduction Steps

  1. spin up an alpine container with nerdctl run -p 1234:1234/udp -it alpine ash
  2. nc -ul -p 1234
  3. (new terminal on host) nc -u localhost 1234
  4. Attempt to send data [connection terminated on host]
  5. nc -ul 1234 (Mac version of nc does not use the -p)
  6. (on alpine container) Ctrl-C to end listener and run nc -u host.docker.internal 1234
  7. Send data from both terminals and see data received on other

Expected behaviour

Data is transmitted in both directions across forwarded UDP ports

Additional context

I'm using a more recent version of nerdctl than the current version of Colima since the nerdctl errors are much clearer in the most recent release.

@Riccardo-78
Copy link

Still present with version:

colima version v0.5.6
git commit: ceef812c32ab74a49df9f270e048e5dced85f932

runtime: docker
arch: x86_64
client: v24.0.6
server: v23.0.6

@phoozle
Copy link

phoozle commented Nov 14, 2023

Been having same problem with a TFTP server colima version 0.5.5

@panga
Copy link

panga commented Nov 16, 2023

I also have a blocker, dnsmasq is not working as the exposed UDP port never works.

@Digicrat
Copy link

Assuming this issue is blocked on the upstream support in lima, would it be possible in the interim to somehow add error output (even if it's not the correct error) that would be reported by docker to indicate UDP forwarding is not working?

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

5 participants