News for hackers. Stuff that matters.
Re:Make your own VPN with Fly.io, tailscale and GitHub by giobox on Wednesday May 24, 2023 @07:39PM (#36065334)
> https://github.com/juanfont/headscale

The tailscale daemon/CLI/client code is already open source and works with the above as the control server.

The tailscale team appear to be encouraging development of headscale too:

> https://tailscale.com/opensource/

Personally I find WireGuard and tailscale/headscale to be extremely complementary, and with these you don't cede any control vs running WireGuard on its own.

Re:Make your own VPN with Fly.io, tailscale and GitHub by imiric on Wednesday May 24, 2023 @07:53PM (#36065469)
I'm aware of Headscale and Tailscale's stance on open source. I just don't trust it that it's not phoning home or leaking data. In general, I prefer avoiding complex tools in this space. Zerotier, etc.

Besides, Wireguard alone already does all I need from a mesh VPN. The UX could be a bit better, but I wouldn't trade ease of use for the peace of mind that my VPN traffic is secure.

Re:Make your own VPN with Fly.io, tailscale and GitHub by throwaway742 on Wednesday May 24, 2023 @09:52PM (#36066254)
Same. Wireguard is so easy to set up I don't see why I would need anything else.
Re:Make your own VPN with Fly.io, tailscale and GitHub by renonce on Thursday May 25, 2023 @01:40AM (#36067376)
My computers are behind firewalls and I need Tailscale to do the NAT punching. I don't see another tool that does the job as well as Tailscale.
Re:Make your own VPN with Fly.io, tailscale and GitHub by imiric on Thursday May 25, 2023 @02:28AM (#36067641)
The hub and spoke configuration bypasses firewalls and NAT, which WG can do natively.

Though doing this "well" is subjective, so I can understand someone preferring Tailscale because it's easier to use.

Re:Make your own VPN with Fly.io, tailscale and GitHub by abwizz on Thursday May 25, 2023 @03:55AM (#36068120)
not familiar with wireguard per se, but afaik it's using udp-packets which get translated/mapped just fine by any NAT implementation. nothing in need of punching imho.

if your access concentrator (server) is behind a nat, you'll need a port-forwarding from the outside but that's rare.

Re:Make your own VPN with Fly.io, tailscale and GitHub by patte on Thursday May 25, 2023 @05:59AM (#36068803)
Tailscale builds a mesh, where the participants can communicated directly, so it's common for all nodes to be behind a FW that does NAT. There is a very interesting blog post from tailscale about all the trickery they pull to reliably deal with NAT: https://tailscale.com/blog/how-nat-traversal-works/
Re:Make your own VPN with Fly.io, tailscale and GitHub by abwizz on Thursday May 25, 2023 @06:24AM (#36068945)
i stand corrected. thanks!
Re:Make your own VPN with Fly.io, tailscale and GitHub by OJFord on Thursday May 25, 2023 @06:34AM (#36069011)
Tailscale uses Wireguard, but offers so much more on top. I used to think the same, but I think I was mixing it up with Zerotier; had a play with it and now think it's pretty great.

For example, you can set ACL rules for which devices can access which others (or the internet, if you have explicit exit nodes) - it's using Wireguard for networking, but you can't do that with (just) Wireguard, it's not just 'make Wireguard easier to set up', as you said that doesn't really need doing.

Re:Make your own VPN with Fly.io, tailscale and GitHub by throwaway742 on Friday May 26, 2023 @06:53AM (#36082481)
I see. I use firewalls to control which devices can access which others. To each their own.
Re:Make your own VPN with Fly.io, tailscale and GitHub by tehbeard on Friday May 26, 2023 @10:38AM (#36084762)
This is a chud "Dropbox is just rsync" attitude.

There's value to some to having networking config centralised like that. It allows things like auto adding certain clients to certain rules/groups automatically.

Not spending time cycling through each server to poke iptables.

Re:Make your own VPN with Fly.io, tailscale and GitHub by allset_ on Wednesday May 24, 2023 @10:43PM (#36066516)
> I just don't trust it that it's not phoning home or leaking data.

This is just irrational. The client is open source. You can build it and run it from source.

Re:Make your own VPN with Fly.io, tailscale and GitHub by 1vuio0pswjnm7 on Wednesday May 24, 2023 @11:31PM (#36066787)
"This is just irrational."

The sentence following the one about phoning home/leaking data explains the rationale. The computer user prefers simpler software. It's great that it's possible to compile a client from source, but this does not address the complexity issue.^1

Is the Tailscale control server open source. Why not. What's the rationale for that.

There's no problem IMHO with arguing Tailscale can make its own decisions and do whatever it wants. However the same argument must apply to the computer user. He can make his own decisions and do whatever he wants.

1. Wireguard was allegedly written at least in part because OpenVPN, another open source option, was excessively complex. Tailscale relies on Wireguard. If avoiding complexity was irrational, and people behaved rationally, then perhaps Wireguard would not have been written and Tailscale would not exist.

Avoiding complexity where possible sounds rational to me.

Re:Make your own VPN with Fly.io, tailscale and GitHub by p_l on Thursday May 25, 2023 @10:06AM (#36070891)
Headscale is the open source central server for tailscale - it implements the same protocols etc and when you use tailscale client with it it only connects to the login server you gave it.

The official reason for why there's no official open source server is that headscale got there first, before tailscale team could (their words, not mine) the unholy mess that was the production server into something people could compile and deploy themselves.

Re:Make your own VPN with Fly.io, tailscale and GitHub by imiric on Thursday May 25, 2023 @02:24AM (#36067614)
To be fair, I'm not familiar enough with Tailscale to claim that it does any of these things. I know that parts of it aren't OSS, but can be replaced with a 3rd-party alternative that is.

Even so, software being open source doesn't make it inherently trustworthy. I would have to look into it, or trust that the community has done due diligence. My default stance towards all software is to not trust it, which can change as I get familiar with the project.

And then there's the complexity. I prefer using simpler tools if they accomplish what I need. It's less surface area for me to trust, and less chances for bugs. Not that Wireguard is necessarily simple, but since Tailscale is a wrapper around it with additional features, none of which I need, I'm perfectly fine using WG directly.

Re:Make your own VPN with Fly.io, tailscale and GitHub by mcny on Thursday May 25, 2023 @03:00AM (#36067845)
> This is just irrational. The client is open source. You can build it and run it from source.

Something I don’t understand is if the client is open source, why is it not in the fedora repos? Why do I need to add a new repo to dnf?

Re:Make your own VPN with Fly.io, tailscale and GitHub by eropple on Thursday May 25, 2023 @08:35AM (#36069963)
Unless you want to deal with Fedora's release cycle, you're not going to push software through their repos. This isn't a Tailscale thing, this is a "just about everyone" thing.
Re:Make your own VPN with Fly.io, tailscale and GitHub by UI_at_80x24 on Thursday May 25, 2023 @08:45AM (#36070046)
>Something I don’t understand is if the client is open source, why is it not in the fedora repos? Why do I need to add a new repo to dnf?

Just because one group of people haven't done something doesn't mean it doesn't qualify. To show the exact opposite, look at OpenBSD. They have included Wireguard into their kernel.

Fedora not including Wireguard may be political, personal, or none-of-the-above. Maybe somebody hasn't offered to take on that task/responsibility.

Re:Make your own VPN with Fly.io, tailscale and GitHub by ptidhomme on Thursday May 25, 2023 @09:15AM (#36070323)
I'm not sure if GP was referring to a wireguard package or a tailscale one. But to complete the picture, there's also a tailscale package in OpenBSD's repos.
Re:Make your own VPN with Fly.io, tailscale and GitHub by deskamess on Thursday May 25, 2023 @07:54AM (#36069570)
I am manually managing a Mesh network but as the number of nodes get larger copying config entries is getting a tad tedious. And its sending of 'you are probably doing it wrong' signals. How do you/others manage a WG only (no thirdparty) mesh network? Have you written any config scripts (bash/Powershell/python) to add entries to some master config?
Re:Make your own VPN with Fly.io, tailscale and GitHub by rbut on Thursday May 25, 2023 @10:03AM (#36070847)
We use a Python Fabric script to automatically generate the conf and deploy it to each server when a new server, or client user, is added to the wireguard network.

The master config is essentially the Fabric script. It contains each servers IP, public key, etc. We even do server-server pre-shared keys.

Re:Make your own VPN with Fly.io, tailscale and GitHub by xrd on Thursday May 25, 2023 @10:31AM (#36071210)
I've been running wireguard on my own for a few years. I like it, but wish there was a better GUI.

I tried installing headscale. I didn't feel like I got the immediate rush of "cool, I have the baseline thing working" without reading the docs. And, I needed to use this for a GUI: https://github.com/gurucomputing/headscale-ui. I love the command line and am happy to use that, but I'm unsure if there is a benefit to headscale over wireguard if I'm already doing command line management.

I just read this article on tailscale vs. openziti and it mentioned netmaker (a YC company). I tried installing it, but out of the box, the "DNS" did not seem to work correctly (I could not use the machine.netmaker local alias, and not sure why not).

Is anyone here a power user that also benefits from a full fledged GUI? Is tailscale the only option there? I prefer to self-host whenever I can, despite loving tailscale and the people behind it.

Re:Make your own VPN with Fly.io, tailscale and GitHub by PLG88 on Thursday May 25, 2023 @10:43AM (#36071349)
Which tailscale vs. openziti article out of interest?
Re:Make your own VPN with Fly.io, tailscale and GitHub by xrd on Thursday May 25, 2023 @10:57AM (#36071531)