-
Notifications
You must be signed in to change notification settings - Fork 308
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
Enable UDP protocol in iptable scanning #7762
Comments
I have not found a specific clarification of if there are options other than While yes, there are many other protocols at the transport layer, I feel like assuming !TCP == UDP would be a value add and not detrimental of the assumption was wrong; because otherwise the protocol wouldn't succeed because it's not TCP or UDP (in which case, would still not work since it's not TCP). I'd love to have this feature in as it's blocking a customer from remotely accessing UDP game servers running in the K3S cluster via RD. There is a simple fix to lima to add another boolean for UDP if you're not keen on making the above assumption. |
I got this assumption working and made an installer to unblock my customer. I tested this with this TCP/UDP echo server: apiVersion: v1
kind: Pod
metadata:
name: echo-server
namespace: realm-default
spec:
containers:
- name: echo-server
image: vhiribarren/echo-server
imagePullPolicy: IfNotPresent
ports:
- containerPort: 4001
hostPort: 12345
protocol: UDP
- containerPort: 5001
hostPort: 12346
protocol: TCP
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 50m
memory: 128Mi and used this JS port of nc to test it. I also saw the UDP port mapped properly using TCP Viewer. |
@mikeseese that's a good point, let me investigate a bit further, we could potentially take the approach you suggested here. |
As of this PR we have enabled iptables scanning for some of the entries in
CNI-DN
. However, using the lima's iptable's scanning code it can only return a boolean for TCP as discussed here.. As part of this issue, we should investigate how the entries inCNI-DN
are created and how to enableUDP
since the current condition only checks forTCP
.The text was updated successfully, but these errors were encountered: