dumbpipe icon indicating copy to clipboard operation
dumbpipe copied to clipboard

Tunneling UDP in addition to TCP

Open radiumatic opened this issue 4 months ago • 2 comments

Hi, I cobbled together something to allow forwarding UDP packets using the unreliable datagrams feature of Iroh. It works, I think.

PS: I tried connecting using different nodes to the same listen-udp node but it didn't really work. I'm not sure why. I also couldn't get it to produce deterministic NodeIDs.

radiumatic avatar Jul 27 '25 18:07 radiumatic

Hi @radiumatic, thanks for contributing! Did you see https://github.com/n0-computer/dumbpipe/pull/53 ? Is your approach substantially different?

flub avatar Jul 30 '25 12:07 flub

To be honest I'm not really good at Rust, but it doesn't look like there are any large differences. Skimming through #53 , the thing I noticed was it using more clones and Arcs than my PR. It also can create more than one socket to the local, actual server. So maybe my PR is a bit faster?

We both modified some commands to output more information, like the actual port being listened on, I think. And this PR just chooses a conservative MTU value and sends everything through that.

I'm sorry if this is a bit unrelated, but can the relay/signaling server implementation sit entirely behind a reverse proxy? Is a "client" and "server" model (with multiple nodes connecting to one) not working intended behavior?

radiumatic avatar Jul 30 '25 12:07 radiumatic