News for hackers. Stuff that matters.
Re:Tailscale Has Partnered with Mullvad by aborsy on Thursday September 07, 2023 @01:19PM (#37422311)
Tailscaled runs as root. Is there a way to confine it, without losing functionality?

As it connects many devices in my network, a vulnerability in Tailscale will have a significant impact (they had recently a nearly 10 CVE). That’s not the case with the standard client server approach (clients can run user space Wireguard).

Even though I don’t open ports with Tailscale (more precisely, I outsource them to Tailscale), I still can’t sleep well at night!

Re:Tailscale Has Partnered with Mullvad by tailscaletom on Thursday September 07, 2023 @01:41PM (#37422682)
Userspace mode might be an option (runs without a TUN or doing any system network wiring, at the expense of performance): https://tailscale.com/kb/1112/userspace-networking/

Running Tailscale without privileges is a challenge because tailscaled needs to be able to configure your network, and if you enable Tailscale SSH it also needs to be able to create sessions for configured users. For people who dont need SSH and accept this challenge + maintenance burden, it is possible: https://tailscale.com/kb/1279/security-node-hardening/

Re:Tailscale Has Partnered with Mullvad by aborsy on Thursday September 07, 2023 @01:44PM (#37422733)
Thanks!

I assume for DNS it also needs to modify resolv.conf as root when needed.

Re:Tailscale Has Partnered with Mullvad by tailscaletom on Thursday September 07, 2023 @01:49PM (#37422803)
Yepp! Strong recommend on using systemd-resolvd, we've observed the least bugs and issues there.
Re:Tailscale Has Partnered with Mullvad by strangecyan on Thursday September 07, 2023 @01:36PM (#37422603)
There's a userspace networking mode that pulls it out of the kernel?

https://tailscale.com/kb/1112/userspace-networking/

Re:Tailscale Has Partnered with Mullvad by deceptive-footy on Thursday September 07, 2023 @01:35PM (#37422584)
Could be wrong here but I believe you only need to run as root once for setup. The daemon can be run as a non-root user just fine

Source: that's how I run it on Arch

Re:Tailscale Has Partnered with Mullvad by ac29 on Thursday September 07, 2023 @06:33PM (#37426548)
Are you sure? I set up tailscale recently on Arch and the daemon is definitely running via a systemd system service (not a user service).
Re:Tailscale Has Partnered with Mullvad by Bu9818 on Thursday September 07, 2023 @09:18PM (#37428068)
I don't know the case for tailscale but systemd system services can definitely be run under a specific user/group and have sandboxing applied.
Re:Tailscale Has Partnered with Mullvad by MrDrMcCoy on Thursday September 07, 2023 @10:35PM (#37428546)
You can easily override the service unit to confine it to an unprivileged user and then assign the net admin syscap do it can do what it needs to do.