mirror of
https://github.com/fosrl/olm.git
synced 2026-05-06 02:37:55 -05:00
[GH-ISSUE #14] UDP hole punching is enabled by default #118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roopeshsn on GitHub (Aug 24, 2025).
Original GitHub issue: https://github.com/fosrl/olm/issues/14
From the logs I could see that the UDP hole punching technique is enabled by default.
I even tried by passing the
--holepunchingflag as false but it didn't change the behavior.Also it's not stopping or fallback at some point. It's keep trying. I mapped a site that is down to this client on the dashboard. So I guess it might the reason.
@AstralDestiny commented on GitHub (Aug 26, 2025):
Pretty sure the flag is just
--holepunchso by setting--holepunchfalse it's not caring about the false or even if it was true the value is literally just--holepunchso omit that as per docs if you don't want holepunch@roopeshsn commented on GitHub (Aug 27, 2025):
Alright, I removed the flag.
Now I don't see this log, "Hole punching is enabled. This is EXPERIMENTAL and may not work in all environments."
But I do see the below hole punch starting and stopping logs:
I see that the log "Starting hole punch for exit node:" is part of "olm/wg/holepunch" handler. Is hole punching is the default behavior to connect with other clients or peers?
0d1fbd9605/main.go (L463)@oschwartz10612 commented on GitHub (Aug 27, 2025):
So it does always send the UDP packets to gerbil even if it is not doing
the --holepunch method because it uses the source IP and port to help
identify the sender for relaying down to the sites! :}
Sorry for the confusion!
@oschwartz10612 commented on GitHub (Aug 27, 2025):
Let me know if any more ?s !