-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
How can I avoid exposing the UDP port from my cluster #511
Comments
I tried setting the host to be host.docker.internal so that it could be referenced from inside the docker pod.
I still get
Any ideas if this direction of thinking is viable or fundamentally flawed? |
I have turned up the logging for kubectl relay to allow me to see packets being sent to the UDP port. Once I do this I can confirm that I can send packets to the host UDP port (forwarded from Wireshark) from a docker container.
The relay logs show the UDP packets are observed and being forwarded. This makes me feel this issue is with the cargo ... Anything I can do to check ? |
So my estimation is that the DNS resolution is being performed on the host which will not result in a resolution of host.docker.internal. So with a little DODGY cajoling this seems to be progress I then ran the client config
and then checked the connection
which shows a connection:
|
I then followed through the rest of the getting started guide: https://gefyra.dev/docs/getting-started-with-gefyra And it works VERY nicely. I don't know about the performance of this pattern. But it does at least provide the functionality in an environment where no direct wirelink port can be exposed. |
The only part that did not work smoothly was the host to IP address conversion for targeting the hotspot. Are there any suggestions on how to clean this up? |
Hi @Bengreen |
What is the new feature about?
in the environments I work in exposing the UDP port is not an option.
So I was working out how to achieve the VPN connection without adding that interface.
The direction I was looking was port-forwarding.
Obviously UDP port-forwarding natively in K8s is not viable. So I looked at using https://github.com/knight42/krelay which provides UDP port forwarding.
I started out setting up the port forward to my localhost so it is now available on localhost:64881 and then ran gefyra config --host and --port to define the connection.
All seems good so far.
But I think I am running into issues with the Gefyra connection to the VPN being based in the container inside docker (Im not sure on this part).
When I run
I now get a failure:
I assume this is because the container insider docker cannot reference localhost:64881
Would appreciate feedback if this route/thinking sounds viable.?
Any ideas/suggestions on how to move this forward greatly appreciated as Gefyra looks like a very useful tool to aid developer flow.
Why would such a feature be important to you?
Inside some environments exposing a VPN is not allowed/viable.
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: