News for hackers. Stuff that matters.
Re:Remote shell to a Raspberry Pi at 39,000 ft by crote on Wednesday June 26, 2024 @06:08AM (#40798295)
The trick is that the connection is made using a third-party server: both the laptop and the Pi make an outgoing connection to this server, and the server sets up a connection between the two when there's pre-existing authorization. This means there's no need to poke a hole in your NAT/firewall to allow an incoming connection to the Pi.

There's some magic stuff going on in the background to avoid having all data flow via the server by making it peer-to-peer after initialization, but that's the gist of it.

Re:Remote shell to a Raspberry Pi at 39,000 ft by curiousdeadcat on Wednesday June 26, 2024 @07:41AM (#40798813)
Its not black magic. Its yet another one-off nat hole punch implementation. Absolutely no reason to even think of this when tailscale exists.