202 points · by rcarmo · 3y ago · 36 comments
I've been using headscale (self-hosted tailscale) for personal use, but having only one machine not running Linux on the network is a bit silly, as Tailscale is userspace, and Wireguard uses very little CPU on Linux.
It's very easy to recommend it to any non-tech user as well who wants to "connect to home". Well worth paying for in those cases.
But, Tailscale had so much magic, that I didn't want to be solely dependant on it, remembering how Docker is turning out.
Finding Headscale was a great discovery, and nice that the Tailscale clients already maintained can connect to a separate open-source project that lets you run your own server.
https://github.com/tailscale/tailscale/issues/3363
I have it installed on all my systems, but I never use it because my use case is accessing my network while I'm out from my phone.
One day I might replace it with WireGuard and be done with it. The official WG app doesn't drain my battery.
The reason is that we've broken the Internet such that all connections require keepalive about every 30 seconds. Otherwise NATs and stateful firewalls "forget" the connection and it dies and must be renegotiated. So if you have, say, 10 actively linked peers on your network you must send 10 packets every 30 seconds to keep links open.
Then you have all the other peers constantly sending keepalives to you. Since clocks are not globally synchronized it means you are constantly transmitting and receiving.
Phones can only seem to have long battery life due to aggressive power saving measures including turning off radios when not in use. Constant P2P traffic prevents the radio from sleeping and consumes background CPU. On devices with large batteries like laptops it's barely noticeable. On desktop and cloud it doesn't matter at all.
Mobile devices are really only suited to be dumb terminals to access the cloud. The problem is mostly in the architecture of the network. It can't easily be fixed in software.
Edit: one conceivable fix would be the introduction of an ultra low power side channel specifically for small and sparse "control" messages, but I don't see mobile carriers working on such a thing. For 99.9% of mobile users the use case is to scroll TikTok.
The other fix would be a protocol to tell NATs and firewalls about active connections, but that would also require cooperation across vendors and so it won't happen. People who think NAT matters for security would freak out too.
At least for me, it's even worse. It's not enough to disconnect on the app, as it's still connected as far as iOS is concerned (check Settings -> VPN). I tried many things to fix that - force-closing the app, switching it off multiple times in settings, etc. The only thing that actually makes the VPN to disconnect and the battery drain to stop is to choose a different VPN profile in Settings.
The idea behind Tailscale is that you can sign in with any device. I can go and create a configuration file for WG, but then it gets longer and longer.
And if it's the case, no, they can't use Linux like you.
With netbird + direct mode, netbird is only there during connection [re-]establishment. I get much better throughput/latency with netbird on both embedded openwrt and desktop platforms.
But yeah, this netbird thing is seriously buggy. For any sort of multi-user setups, I always recommend tailscale, it's much more robust.
Thank you for the feedback! Could you please elaborate on the issues that you are facing? We have quite a few multi-user cases both on the managed and self-hosted version with no issues.
Thank you!
It's very promising, but, seriously buggy as of now - DNS keeps randomly dropping/leaking unreliably which was causing us issues and random drops to private resources along with a few other issues.
I think we switched to tailscale (I don't look after that side)... it's still a cool solution and think we will be looking at it again in the future.
We did a few improvements recently. When did you try netbird for the last time? Happy to follow-up on the DNS issues in our Slack channel https://join.slack.com/t/netbirdio/shared_invite/zt-vrahf41g...
tbh, I always assumed it wasn't implemented yet; it never worked for me
Is IPv6 supported? Does the controlplane work on IPv6 only networks=
Raise announcement: https://news.ycombinator.com/item?id=35818522
The top comment also mentions a few alternatives. Personally, I use raw wireguard for one-off 1:1 links between servers, headscale+tailscale between some of my devices, and I've toyed with yggdrasil to obtain a roaming public IP, as well as LAN-first connectivity.
It seems that they plan on open sourcing the app.
unti then. /hardpass
NetBird is one of these p2p private networking solutions that is truly open-source. Actually, I haven't seen any comparable yet.
We haven't yet published the Android code simply because we have coding standards to meet before we open the code to the public. This is mainly about the code structure and tests. We are working on it.
We are a tiny team of engineers with a vision to make private networking simple and secure, which is challenging. Therefore, we should prioritize some things over others. But we are getting there! With your support :)