I'm one of the authors of this. Happy to answer any questions. One of the fun technical details is that, when enabled on a machine (tailscale up --ssh), the userspace tailscaled process takes over all TCP port 22 packets after the WireGuard decryption and doesn't even feed them into the kernel over TUN. We use gVisor's netstack to handle the TCP connections in-process. So it doesn't matter whether you have other proc…
Tailscale SSH
121–130 of 311 posts
Re: Tailscale SSH
#122I'm not entirely convinced I want a feature that adds even more exposure to the sort of goofy login flow Tailscale has.
Totally meta to this discussion: I am disturbed by the SSO/IAM trend because it gives root on the entire universe to a small collection of companies. We are looking at a future where a security breach or misbehavior by one of a handful of companies could mass-compromise millions of businesses and critical infrastructure and possibly hundreds of millions to billions of devices. Even worse this permission is clandestin…
That's an easy one to circumvent if you don't need to install the malware Right Now: just wait until the next update cycle and slipstream your targeted malware in with it.
Re: Tailscale SSH
#123Earlier quoted context omitted.
I'm not following. How does double encryption help to avoid a password compromise if everything is authed with tailscale in the first place?
I suspect they mean that if you have rsh installed for tailscale you need to be very careful with how you run it. If you accidentally let rsh listen on 0.0.0.0 and don't firewall it then you've given attackers a way to guess passwords. Forgetting to firewall services or accidentally exposing services to the internet is pretty common. ssh is more hardened than rsh, especially with key based auth, so the risk is lower.
Re: Tailscale SSH
#124Earlier quoted context omitted.
I'm not following. How does double encryption help to avoid a password compromise if everything is authed with tailscale in the first place?
Somebody listening on local connections can sniff your password.
Re: Tailscale SSH
#125Earlier quoted context omitted.
Is there an option to avoid double encryption on systems that do have e.g. rsh?
I might be misunderstanding the question but ... just use rsh?
Re: Tailscale SSH
#126Earlier quoted context omitted.
You're right, it's not at all the same. The Tailscale bypass exists (1) only for traffic traversing Tailscale interfaces (by design, that's the only traffic it can impact, because Tailscale can't run a userland TCP/IP stack for non-Tailscale traffic), and (2) only for this one feature, and (3) only if you've explicitly allowed it for particular users in your Tailscale ACLs. It's not clear to me how you could screw it…
All I'm trying to point out is that advertising "this bypasses the firewall, by design" has been abused in the past. [edit] It boils down to principle of least surprise, managing expectations, etc. - proper documentation is indeed key.
Re: Tailscale SSH
#127I'm one of the authors of this. Happy to answer any questions. One of the fun technical details is that, when enabled on a machine (tailscale up --ssh), the userspace tailscaled process takes over all TCP port 22 packets after the WireGuard decryption and doesn't even feed them into the kernel over TUN. We use gVisor's netstack to handle the TCP connections in-process. So it doesn't matter whether you have other proc…
What would we need to have open in our security groups for this to work? I think ingress wouldn't be necessary since tailscaled creates a tunnel right? But how about egress traffic? UDP for WireGuard or something else?
On your host where you're running Tailscale, usually nothing. You can keep everything locked down for ingress. Outbound UDP only, but usually cloud VMs allow outbound traffic already. (This is covered more in https://tailscale.com/kb/1082/firewall-ports/)
Re: Tailscale SSH
#128Another question, can this be used to create SSO-enabled SFTP? Isn't SFTP just ftp over SSH?
Re: Tailscale SSH
#129Re: Tailscale SSH
#130I'll have to ask this since it's bothering me for quite a while… If I connect to a server via WireGuard, would it make more sense to run simpler & unencrypted `rsh` instead of `ssh`? It's kinda pointless to double encrypt.
Double encryption is twice as effective. I use double ROT-13 for double the security.