abiosoft / abiosoft/colima

UDP port forwarding fails in one direction

Đang mở
#708 4 bình luận 7 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
30.8k
Fork
613
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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:

https://github.com/abiosoft/colima/issues/255
https://github.com/lima-vm/lima/issues/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)
- [X] 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]
6. `nc -ul 1234` (Mac version of nc does not use the -p)
7. (on alpine container) Ctrl-C to end listener and run `nc -u host.docker.internal 1234`
8. 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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.