4 ms·
You can do this with ssh (and socat or mkfifo): # receiver socat UNIX-RECV:/tmp/foobar - | my-command # sender my-command | ssh host socat - UNIX-SEND
by remram 1y ago
You can do this with ssh (and socat or mkfifo):
# receiver
socat UNIX-RECV:/tmp/foobar - | my-command
# sender
my-command | ssh host socat - UNIX-SENDTO:/tmp/foobar
You can relay through any other SSH server if your target is behind a firewall or subject to NAT (for example the public service ssh-j.com). This is end-to-end encrypted (SSH inside SSH):
# receiver
ssh top-secret@ssh-j.com -N -R ssh:22:localhost:22
socat UNIX-RECV:/tmp/foobar - | my command
# sender
my-command | ssh -J top-secret@ssh-j.com ssh socat - UNIX-SENDTO:/tmp/foobar
(originally posted on the thread for "beam": https://news.ycombinator.com/item?id=42593135 https://news.ycombinator.com/item?id=42593135)
- actinium226 1y agoNever knew about ssh-j.com. Neat.
- kragen 1y agoThis doesn't do most of what dumbpipe claims to do: it doesn't use QUIC, doesn't avoid using relays when possible, doesn't pick a relay for you, and doesn't keep your devices connected as network connections change. It also depends on you doing the ssh key management out-of-band, while dumbpipe appears to put the keys into random ASCII strings. WireGuard is more similar.
- cakealert 1y agoFirst sentence after following the link this topic is about: Dumb pipe punches through NATs, using on-the-fly node identifiers. It even keeps your machines connected as network conditions change.
- deleted 1y ago[deleted]
- rfl890 1y agoYou could also set up a wg server, have both clients connect to it and then pass data between the two IPs. There's still a central relay passing data around, NAT or no NAT.
- bb88 1y agoAfter getting burnt on wireguard a few times now, I'm not keen on using it anymore. I want less magic, not more impenetrable ip table rulesets (in linux at least).
- BLKNSLVR 1y agoInterested to know how you've been burnt by wireguard; what did it not do that you were expecting? What failures have you experienced with it that were the fault of wireguard? I've been using it (fairly simply, mind you) and it's been pretty solid for a number of years, and was as administrative relief in comparison to OpenVPN which I'd been using before wireguard existed. Single UDP port usage makes me query your comment about impenetrable IP table rulesets. (OpenVPN was great for it's time too, the sales reps at the company where I introduced it loved the ability to work from the road, way back early 2000's)
- jerf 1y ago"Interested to know how you've been burnt by wireguard; what did it not do that you were expecting?" Speaking just for myself, I expected it to be as easy to set up as Tailscale. Not to be set up in exactly the same manner as Tailscale, I understand they are not identical technologies, but I expected the difficulty to be within spitting distance of each other. Instead I fussed with Wireguard for a few days without it ever working for even the simplest case and had Tailscale up and running in 5 minutes. I think I recognize the pattern; it's one that has plagued Linux networking in general for decades. The internet is full of "this guy's configuration file that worked once", and then people banging on that without understanding, and the entire internet is just people banging on things they don't understand, 80% of which are for obsolete versions of obsolete features in obsolete kernels, until the search engines are so flooded with these things that if there is a perfect and beautiful guide to understanding exactly how this all works together and gives the necessary understanding to fix the problems yourself it's too buried to ever find. It also doesn't help that these networking technologies are some of the worst when it comes to error messages and diagnosis. Was I one character away from functionality, or was my entire approach fundamentally flawed and I was miles from it working? Who's to say, it all equally silently fails to work in the end.
- nine_k 1y agoYou can simplify things even more by running https://www.tarsnap.com/spiped.html https://www.tarsnap.com/spiped.html It doesn't even assume ssh.
- cyberge99 1y agoSimilar with iroh.
- defraudbah 1y agoyou need an ssh server and an open port, different protocol etc
- michaelmcmillan 1y ago[flagged]
- remram 1y agoI didn't say this project is useless, I offered a different way to do it with the tools you already have installed. Calm down. Iroh *is* cool.
- ignoramous 1y ago> didn't say this project is useless Neither did BrandonM: https://news.ycombinator.com/item?id=42394739 https://news.ycombinator.com/item?id=42394739
- michaelmcmillan 1y agoExactly.
- latexr 1y agoI really wish the people who feel like bringing up that comment would do a modicum of research instead of perpetuating unhelpful and wrong information. For one, that wasn’t “HN’s reaction”. Read the thread, it’s full of praise. You’re talking about one specific comment. For another, the commenter was incredibly respectful and even conceded some of the points after they got a reply. Again, read it, it’s right there in your link. That is an excellent example of how to communicate, and we would be lucky if all interactions followed that example. We should be praising it, not deriding it.
- deleted 1y ago[deleted]
- acheron 1y agoPeople who still link to it are just trolling.
- michaelmcmillan 1y ago
- ndyg 1y agoThe approach you describe requires host to have an open ssh port you can access. quic + nat hole punching works around this.