273 points · by smackeyacky · 4y ago · 206 comments
[1]: https://aws.amazon.com/premiumsupport/knowledge-center/syste... [2]: https://medium.com/hackernoon/ditch-your-ssh-keys-and-enable...
If Tailscale-the-product ever goes rogue or evil, I can always self-host wg or a full on tailscale-equivalent mesh myself. I sleep well knowing this.
If you were looking for an open source, self-hosted implementation of the Tailscale control server (as far as I know, that is the only portion of tailscale that tailscale keeps proprietary, and this is the best open source implementation of it).
Edit: wow, this project has really grown from when I last saw it. It is able to configure the vast majority of tailscales base featureset such as ACLs, magic DNS, taildrop file sharing, and so much more. Incredible.
Also the iOS client, which is hard-coded to only use the first-party control plane, so you can’t use headscale if you have iOS clients :(
If I didn't have the goal of buying a house in the Bay Area, I would totally try to find a job with Tailscale.
There's no "I'm free once I'm a home owner" thing.
In general, I think it's kind of an interesting heuristic to think about every so often: right now, putting aside practicalities like my current job or where I live, what looks like a cool place to work, even if the specific role was just taking out the garbage.
Right now the answer is "tailscale" and "oxide" for me.
Seems like a risky place to invest at this stage.
Their sales team, when I asked about self-hosing a controller, said it's not necessary because they've never had all the hosted controllers go down, but when I asked about a tweet they sent in May 2020 about their controllers being down, I never got a reply. [1]
My plan was to put ZeroTier on all of our machines and use it as an overlay network that all traffic goes over. But I don't want to open the availability of our network to depending on an external service.
I've all but decided on Nebula, just need to get the deployment worked out. I'm playing with Tailscale right now, and am very impressed. It does have the ability to require MFA on logins that we would like for user VPNs, while still being able to have servers self-authenticate (we respin half of our dev/stg environment every night).
[1] https://twitter.com/ZeroTier/status/1389766385480372225?s=20
the idea that you'd pay a subscription fee greater than aws just to avoid a few hours of learning how to set something up is kinda disgusting in comparison.
FWIW I use both SSM Port Forwarding and Tailscale but Tailscale is easier for both tech and non-tech users IMO.
At most you'd need to add some permissions to the instance's role, maybe.
Seriously? What equivalents does it have for Route53 and tons of other services?
I can't tell if this is misleading or pointless.
Your comment is pointless and a straw-man argument.
https://aws.amazon.com/about-aws/whats-new/2022/05/aws-syste... https://docs.aws.amazon.com/systems-manager/latest/userguide...
`ssh aws-bastion` invokes a ProxyCommand that:
1) finds an actual bastion host by tag using ec2 describe-instances
2) generates a short-lived ssh key and adds it to the ssh agent
3) sends the temporary key to the bastion using ec2-instance-connect send-ssh-public-key
4) starts the SSM/ssh session using AWS-StartSSHSession
Since it's SSH, we can port forward, use multiplexing, etc. We use Google as the IdP, via AWS SSO. Bastions periodically sync users from a Google group.
[1] https://www.reddit.com/r/aws/comments/df6uip/ssm_tunnelling_...
https://aws.amazon.com/about-aws/whats-new/2022/05/aws-syste...
Also, intellij's built-in database tools support ssh tunneling, it 'just works' with the ProxyCommand method.
AWS Client VPN does not offer any means of unattended configuration or mass distribution. All they offer is a self service portal from which you can download the installable, the profile, and directions. Each use has to manually import the profile into their client.
I'm stunned they're missing this as it would prevent any sizable organization from adopting it.
It works but performance is awful. Slow connection times and pushing images has slow throughput.
One of the few products I recommend enthusiastically.
To be clear, WireGuard seemed to have the right level of abstraction as a tool for others to build on (just like it built on top of the noise framework), and someone like Tailscale ran with it.
Additionally, there's an open source reimplementation of the control plane called headscale, as well. The Tailscale team has complimented it, but of course it's all on your own if you choose to run it.[1]
[0] https://github.com/tailscale/tailscale
[1] https://github.com/juanfont/headscale
EDIT: Android code is actually entirely open, oops!
I couldn't believe how easy it is to configure. I set it up for work, do a key rotation on a schedule and it's great.
Tailscale I use for home use on my personal laptop + machines and it's fantastic as I don't need to port forward or anything. I changed over from using Wireguard with minimal effort, just changing some IPs over. Probably end up using MagicDNS (their DNS solution), then if I need to change off I'll just change this.
Their free tier is very generous for a single user.
One reason to have gateways etc. was to ensure that gateway couldn’t be taken over by software installs etc. Access was inconvenient but it was somewhat by design.
Maybe due to this attack vector shifted from directed access to automatic scanning of ever expanding vulnerabilities.
Now, as services stops being accessible from external networks once again they can be accessed in convenient ways thus bringing the old vectors back. Sometimes even giving false sense of security.
ZeroTier can do other protocols like NetBIOS, so you can use it to run LAN games that don't use TCP/IP.
I can now go to sleep without having to worry about random bots trying to mine crypto on my machines. To add to the goodness, one does not have to worry about either SSH-keys or remember cryptic passwords.
FWIW, setting up something like tailscale is remarkably simple (I'm using PHP here to keep it simple):
In sshd_config:
AuthorizedKeysCommand /auth_ssh %u
AuthorizedKeysCommandUser nobody
And in auth_ssh, verify that the user is allowed to connect to that server, then look it up on github (my public keys: https://github.com/withinboredom.keys).If you want to allow any github user you allow to connect various permissions, check out libnss-ato.
These are all 1 or 2 lines of configuration and are not hard. You just have to know they exist.
I believe they are all based upon variations of the same java ssh library and exhibit the same behavior. They all connect to tailscale ssh using 'none' authentication but after connecting don't display anything which means I can't get the URL tailscale ssh presents to do its authentication.
Edit: I was just able to work around the issue by installing Termux and using openssh in that environment to do my initial ssh authentication. Afterwards my normal ssh app works.
I was just able to work around the issue by installing Termux which provides a small Linux environment on your phone. I was able to use openssh in the Termux environment to connect and get the authentication URL. After that my preferred ssh app can connect without issue.
Curretly I am running a tiny VPS as a wireguard server, but I do not trust it to be part of my network. Therfore I run one wireguard tunnel to be able to access my router (has no public ip) and second tunnel inside the first to connect through the router to my home network.
Theoretically, it should be possi le with single wireguard tunnel if I set a route to home router via wireguard gateway - but I never managed to make wireguard encrypt a packet if it came from the same wg interface. Can anybody help?
Some features that are basically effortless and made me choose it over WireGuard and other VPN solutions: easy provisioning, key exchange, IP assignment, ACLs
Initially, I had tried setting up Nebula, but I am unable to get a static IP address for the beacon (a requirement for any of these mesh VPNs), hence why I went with Tailscale which acts as a beacon for you. I think I'll try ZeroTier next.
I've been running Tailscale on all my devices for a couple months now, and I haven't noticed any impact on battery life. I just checked my phone (Android) and it's reporting 1% usage.
I would report an issue if you're seeing numbers that high.
- https://www.reddit.com/r/Tailscale/comments/pm49t9/tailscale...
- https://forum.tailscale.com/t/high-battery-usage-in-ios/1152
It means that you can close all the open ports on your VPC security groups without changing the configuration of how your external systems access the internal AWS services.
It was probably obvious to everybody else, but after I worked that out, Tailscale became my network.
See: https://lobste.rs/s/v4obi8/how_does_tailscale_s_magicdns_wor...
I also set custom hosts file entries for non-mobile devices and kablam, no magic needed (for personal use, anyhow).
Have you had issues with it otherwise?
EDIT actually I do have one gotcha. There’s a switch in the admin panel to override real dns. In theory if you changed that option and your machines were currently using private dns on route53 to find each other you might be in trouble (don’t ask me how I know).
There’s no way it’s DNS
It was DNS
The only thing worst than “It was DNS”, is “It was DNS, but in this rare and weird edge case only so it never showed up when you tried to debug it”…
I mean, I’m impressed by that capability. But I’m horrified by the potential future support implications. Who’d want to be debugging a problem with “magic DNS” at 2am on a Sunday morning while Prod is down and the entire C suite is half drunk, tired and angry, and breathing down your neck?
My takeaway from this is that the author was either lazy or lacked the knowledge to create an automation script that could've done that automatically (the add/remove) based on location. If that's the whole reason for this tailscale praise, kinda of takes away the tailscail actual usefulness and why it exists in first place.
Imo this is incredibly handy, as if I want to expose a device to my Tailscale network, I don’t want to have to think about finding an IP address range that won’t conflict with the various local network ranges that my Tailscale devices are on. Especially if you’re using Tailscale in various corporate environments where 10.0.0.0/8 is used a lot.
Now I can just expose e.g 192.168.122.0/24 to my Tailscale network but it’s exposed as a unique IPv6 /120 prefix.
I have my private network right now. As a plus, devices can make direct connection when they are in restrictive corporate networks (allowing only 443/tcp). Less third parties involved. Seems more secure for personal use.
Sure, it’s not a mesh network, but that doesn’t matter if VPS and devices are in the same region.
But I get that mesh VPN products can be valuable to small businesses: ease of use, ACLs, SSO, central management.
- Tailscale’s coordination server
- Tailscale’s cloud provider
- anyone who compromises the coordination server
- SSO provider you have chosen
- SSO’s cloud provider
- anyone who compromises the SSO provider
All you need is
sudo tailscale up --advertise-routes=10.0.0.0/24,10.0.1.0/24
Then you can get to anything via it's internal IP address. I have a bluetooth router on my network that I don't want to install Tailscale on. It's on a permanent address of 192.168.1.13I do this on the router inside my office subnet:
sudo tailscale up --advertise-routes=192.168.1.0/24
I do this on my home debian machine (lets say it's on 10.1.1.13): sudo tailscale up --accept-routes
From my home network I can now open the web management page on 192.168.1.13. You can go further with DNS stuff but you don't have to.Nevertheless, I still hope they will revisit support for proper linux kernel wireguard sometime in the near future. This would allow to ditch separate meshing technologies for connecting server nodes (and routing into separate subnets via a tailscale subrouter node). Best of both worlds - ease of use and performance.
I really only started to have a look at other tools (like netmaker, netbird, innernet, wesher) because of these performance caveats (wireguard-go).
So unless you're fine with that limitation, look elsewhere for now.
I'm currently trying out innernet, mostly for the interconnected server nodes (k8s, not for actual real users). Seems to work fine (double NAT + single public coordination server).
Unrelated to Wireguard: I really liked Nebulas certificate-based client setup and its reduntant lighthouses (public coordination servers). May be an alternative if you want something at least a little faster than wireguard-go based implementations.
You use it to connect your home network for example, on your laptop when you are out and about.
Any internet routing is purely done by your own isp provider (if you chose to tunnel internet traffic through tailscale)
Behind the scenes, it uses WireGuard which provides the vpn tunnel to your own network.
Tailscale also provides an authentication layer (ie username/login/passwords)
Unless I'm misunderstanding you, I don't think it does (having to use a a third party to sign in is one of the main reasons I haven't tried it yet). From https://tailscale.com/kb/1013/sso-providers/: "Tailscale never handles authentication itself."
That said, I love it and use it extensively from my iPad to work on a personal Gnome desktop via RDP.
I made the mistake of doing this, it seemed to be working fine, and then all of a sudden to add a new node it needed access to my company's GitHub repositories in order to continue. (no way to continue without accepting)
So I could either give them access to sensitive company information, or remove my github account from my company, neither of which I wanted to do.
I just stopped using TailScale, I've been meaning to set it up again with a different login, but the experience left a bad taste in my mouth.
P2P client:
On iOS/windows/macos it doesn't make sense to complain about closed source code running on your machine; on linux/bsd/android the client is open source.
Control plane:
A compatible open source server is available & you can self host; the tailscale-hosted control plane is closed source and could, in theory, instruct your devices to connect to additional peers.
> and the company
The company has several high-profile employees with excellent reputations, which is typically a good sign of legitimacy.
I’m sure people said that about Larry and Sergey back in the day…
Issues with customer support? Sure. Issues with shutting down some products HN loves? Sure. Getting hacked or being insecure? No, in fact they probably have one of the leading security teams (Project Zero) in the industry.
- it has been unnoticeably reliable. We were early-ish adopters right as COVID hit; we’re a hardware company and have it on a handful of very remote devices/sporadic power and LTE devices as well as our development machines. The ARM binary _just worked_ on the embedded kit and I often remote in even while the payload is being flown. Automatically picks up right away when in network range, and I don’t ever wonder if I’m going to be able to connect to something
- it’s wonderfully simple to set up. Download the client, sign in using your org’s SSO (or personal email, but that’s for _only you_ and you can’t share with other users), and your machine just magically joins the network, gets assigned a fixed IP, and you’re on the network with everyone else.
during the covid shutdown I had to spend long periods of time away from my apartment (I decided to lock down with my family 3000km away from where I lived alone)
I had only a small window of time to set up some kind of tunnel back to my apt/set up some kind of remote access. I just installed tailscale on an old mac mini, connected a dinky spare usb webcam, and started photobooth just as I had to leave to catch one of the few flights that hadn't been cancelled due to lockdowns and restrictions.
It worked awesome. I could remote in, use the mac to access my backup hard drive, and watch the photobooth camera. The only thing I didn't forsee was the webcam was useless during the night cause I didn't leave a light on so photobooth would just show me a black screen.
During the day though, the camera showed me my worldly possessions and helped me monitor my apartment so in case anything happened I could call the superintendant of my apartment. It worked really well, and worked for 3 months until the connection died. I only had 1 month left so I left it alone.
4 months after leaving my apartment, I went back and found out the mac mini suffered from hardware failure (would no longer power on), so the tailscale vpn worked and was more reliable/more solid than the hardware it was running on.
After that experience, I am sold on tailscale. They're awesome.