News for hackers. Stuff that matters.
Re:Ditching Obsidian and building my own by lolinder on Sunday May 18, 2025 @01:23PM (#44022881)
> Since my PKMS is hosted online to manage notes across devices, I have multiple layers of security to ensure my notes are kept private. {Screenshot of a login form}

The biggest life hack I can recommend for a self hoster is to set up a VPN on your local network and then just never expose your services on the public internet unless you're specifically trying to serve people outside your own household.

Before I did this I was constantly worried about the security implications of each app I thought about installing or creating. Now it's not even worth setting up auth on a lot of simple services I build because if someone is able to hit their endpoints I'm already in deep trouble for many other reasons.

Re:Ditching Obsidian and building my own by caconym_ on Sunday May 18, 2025 @03:04PM (#44023603)
+1. I have Wireguard set up on all my mobile devices and configured to automatically start when connecting to any wifi that isn't mine, so I can take my devices anywhere and I'm still on my home LAN. It works seamlessly and flawlessly.

I self-host a lot of services, and without Wireguard (or equivalent), remote access just wouldn't be realistic.

Re:Ditching Obsidian and building my own by thepill on Sunday May 18, 2025 @03:54PM (#44023912)
On Android devices? If so: how? :)
Re:Ditching Obsidian and building my own by viraptor on Sunday May 18, 2025 @03:58PM (#44023931)
I don't use it with wireguard, but Zerotier works just fine on Android.
Re:Ditching Obsidian and building my own by Jarwain on Sunday May 18, 2025 @04:10PM (#44023980)
As does tailscale!
Re:Ditching Obsidian and building my own by ParetoOptimal on Sunday May 18, 2025 @05:15PM (#44024364)
Re:Ditching Obsidian and building my own by _heimdall on Sunday May 18, 2025 @06:05PM (#44024633)
This is my recommendation for anyone that wants full control.

I use Tailscale, purely out of laziness and a willingness to trust them today, but I'd move to head scale if either of those caveats changed.

Re:Ditching Obsidian and building my own by fluidcruft on Sunday May 18, 2025 @05:59PM (#44024600)
My only issue with wireguard/tailscale is that somehow my work IT has managed to make it unusable on our wifi. It's really annoying. I'm pretty sure it's a misconfiguration on their end but they don't have any reason to care.

OpenVPN does seem to always work everywhere (presumably because outside contractors and support personnel use OpenVPN when onsite so it's a squeaky wheel that matters) so I've moved to that instead. Beyond that I can't figure out what the hell is the problem and the way IT works, they have no reason to fix it. I did get them to somewhat work on it by reporting Google VPN as randomly failing, but they just fixed Google VPN and nothing more than that. So anyway wireguard is great until you encounter bullshit corporate firewalls.

Re:Ditching Obsidian and building my own by Arch-TK on Sunday May 18, 2025 @04:34PM (#44024126)
How did you automate it to start on networks which are not yours?

This is like the only piece of the puzzle for me.

Re:Ditching Obsidian and building my own by thequux on Sunday May 18, 2025 @05:22PM (#44024395)
Set the AllowedIPs wireguard setting (and/or the route, if you can set that separately) to one larger than your home network (i.e., if your home network is 192.168.1.0/24, use 192.168.0.0/23). Then, block wireguard packets from the internal network on your router. Then the tunnel will always be running; it just won't be used when you're at home because there's a more specific route
Re:Ditching Obsidian and building my own by Arch-TK on Monday May 19, 2025 @12:47PM (#44031749)
But this will also break whenever there's any more specific route, no?
Re:Ditching Obsidian and building my own by caconym_ on Sunday May 18, 2025 @05:59PM (#44024603)
All my regular mobile devices are Apple, so whoever said that has it right. I also have a Linux laptop but NetworkManager support for Wireguard was broken last I checked, and at the time I didn't care enough to set it up by hand.
Re:Ditching Obsidian and building my own by runjake on Sunday May 18, 2025 @05:17PM (#44024374)
For the Tailscale app on Apple platforms it’s called VPN On Demand. Here's how you can configure it.

https://tailscale.com/kb/1291/ios-vpn-on-demand

Re:Ditching Obsidian and building my own by sph on Monday May 19, 2025 @07:42AM (#44028762)
Does it still eat your battery? It used to, and it was so annoying I moved to Nebula
Re:Ditching Obsidian and building my own by Arch-TK on Monday May 19, 2025 @12:48PM (#44031758)
Tailscale is built on wireguard but it is not just wireguard. I want a wireguard only solution.
Re:Ditching Obsidian and building my own by runjake on Tuesday May 20, 2025 @10:23AM (#44042019)
Got it. The key there would be to find a WireGuard app that supports the "VPN on Demand" feature of iOS. It should be called out on their app page in the App Store, if not in their documentation.
Re:Ditching Obsidian and building my own by mcpeepants on Sunday May 18, 2025 @04:52PM (#44024237)
This is a built-in feature of the Wireguard app on iOS, not sure about other platforms.
Re:Ditching Obsidian and building my own by george_perez on Sunday May 18, 2025 @05:16PM (#44024365)
And specifically it's based on VPN On Demand. https://developer.apple.com/documentation/networkextension/v...
Re:Ditching Obsidian and building my own by Arch-TK on Monday May 19, 2025 @12:50PM (#44031782)
To answer my own question, looks like there's WG Tunnel[0] on android which does what I need.

[0]: https://play.google.com/store/apps/details?id=com.zaneschepk...

Re:Ditching Obsidian and building my own by burnt-resistor on Sunday May 18, 2025 @06:36PM (#44024797)
I have wg into home and wg into an aws instance. All my mobile and laptops can reach them.
Re:Ditching Obsidian and building my own by brightball on Sunday May 18, 2025 @02:54PM (#44023530)
Tailscale is actually great for this if you configure an exit node on a device in your home.
Re:Ditching Obsidian and building my own by walthamstow on Monday May 19, 2025 @07:05AM (#44028474)
It doesn't need to be an exit node unless you want to direct all traffic through that node, like a traditional VPN.

The beauty of Tailscale is that it will only direct traffic to a node that is meant for that node, everything else goes via the internet.

Re:Ditching Obsidian and building my own by rafram on Sunday May 18, 2025 @02:27PM (#44023361)
The downside is that if you’re on a two-week vacation and your home network/server goes down on day two, there’s probably nothing you can do until you get home. If it’s hosted online, you can count on that 99.99…% uptime and SSH access no matter what.
Re:Ditching Obsidian and building my own by vhanda on Sunday May 18, 2025 @02:36PM (#44023418)
I think what they meant is that if it's hosted online / home-network, only allow access to all services through a VPN. Wireguard is relatively easy to setup, and you can configure all your services to only be available through wireguard.

Ever since ssh almost got backdoor-ed, the only thing "exposed" on my servers is Wireguard, which is UDP based and therefore harder to know if it's running. SSH also goes over wireguard.

Re:Ditching Obsidian and building my own by blooalien on Sunday May 18, 2025 @11:36PM (#44026340)
> ... Wireguard, which is UDP based and therefore harder to know if it's running.

Isn't it basically impossible to know if it's running unless you have an authorize key? I thought it didn't respond at all unless you ping a valid entry key off it.

Re:Ditching Obsidian and building my own by vhanda on Monday May 19, 2025 @04:08PM (#44034250)
Well, there is packet inspection. My ISP / Government will know.
Re:Ditching Obsidian and building my own by jauntywundrkind on Sunday May 18, 2025 @02:32PM (#44023387)
Ssh exposed on a non-standard port, with root disabled, using key-based auth should be pretty non-controversial.

The security through obscurity (non-standard port, no root) are both kinda silly but why not.

That said, with awesome services like TailScale, it's pretty hard to get locked out of your network. TailScale is so so good at "just working".

Re:Ditching Obsidian and building my own by batch12 on Sunday May 18, 2025 @03:39PM (#44023816)
> The security through obscurity (non-standard port, no root) are both kinda silly but why not

I think these are decent controls when layered with others. The effectiveness differs depending on your threat models, of course, but at the very least it helps reduce the noise seen from most automated scans reducing the effort involved in monitoring your assets.

Re:Ditching Obsidian and building my own by accrual on Sunday May 18, 2025 @03:29PM (#44023763)
Fail2ban or rate-limiting SSH into a block table are useful layers to have as well.
Re:Ditching Obsidian and building my own by cyberax on Sunday May 18, 2025 @03:54PM (#44023914)
Another option is port knocking. Super easy to set up and with 4 knocks it provides 64 bits of randomness.
Re:Ditching Obsidian and building my own by johnmaguire on Sunday May 18, 2025 @05:13PM (#44024355)
Disabling root provides more than security-through-obscurity if your sudo config requires a password to elevate: it essentially means you need both your SSH private key and your password to gain root.
Re:Ditching Obsidian and building my own by Zambyte on Sunday May 18, 2025 @02:58PM (#44023567)
These solutions are composable. Just run it on a VPS over a VPN.
Re:Ditching Obsidian and building my own by rafram on Sunday May 18, 2025 @03:18PM (#44023695)
That’s a good point.
Re:Ditching Obsidian and building my own by bloqs on Sunday May 18, 2025 @08:08PM (#44025298)
But what if your home hypervisor goes down?
Re:Ditching Obsidian and building my own by Zambyte on Sunday May 18, 2025 @09:05PM (#44025654)
Nothing. You probably though I said "VPN over a VPS", which would just be the same as a VPN, which isn't composing the solutions.
Re:Ditching Obsidian and building my own by akerl_ on Monday May 19, 2025 @12:33AM (#44026524)
You're suggesting to use a VPS in a thread that's specifically about self-hosting on a home network, and about there being cons to that compared to hosting on a cloud/VPS platform.

So you're sort of driving parallel to the existing commentary.

Re:Ditching Obsidian and building my own by Zambyte on Monday May 19, 2025 @06:26AM (#44028246)
The parent comment to mine did that.
Re:Ditching Obsidian and building my own by shellwizard on Monday May 19, 2025 @02:40AM (#44027033)
If you trust someone in your neighborhood/family, you can ask them to power cycle your host and water your plants
Re:Ditching Obsidian and building my own by accrual on Sunday May 18, 2025 @03:25PM (#44023744)
Although not perfect, I added a couple features to help ensure uptime:

* LAN components are on a UPS, helps keep continuity between power blips and breaker flips

* Dynamic DNS, cron runs a script 4x per day to ensure a DNS name points to my IP, even if issued a new one by the ISP

* Rebooting everything occasionally to ensure the network and services come back up on their own and I didn't make a mistake with some config that loads at boot, etc.

Re:Ditching Obsidian and building my own by dpkirchner on Monday May 19, 2025 @12:44AM (#44026558)
I run Tailscale on an Apple TV which is on a UPS. The thing uses very little power so the UPS lasts a long, long time.
Re:Ditching Obsidian and building my own by rasen58 on Monday May 19, 2025 @12:09PM (#44031341)
Do you have to hack the Apple TV to run tailscale on it or how does that work?
Re:Ditching Obsidian and building my own by dpkirchner on Monday May 19, 2025 @11:44PM (#44037594)
There's an official tvOS app and you just have to configure the Apple TV to be an exit node. It doesn't require any special setup otherwise.
Re:Ditching Obsidian and building my own by sammyteee on Sunday May 18, 2025 @04:28PM (#44024092)
You can also enjoy your vacation instead :)
Re:Ditching Obsidian and building my own by sabellito on Sunday May 18, 2025 @02:01PM (#44023188)
For single page web apps I use pagecrypt [0] and just publish the html file (with inline scripts and styles) as public files.

[0] https://pagecrypt.maxlaumeister.com

Re:Ditching Obsidian and building my own by williamsss on Sunday May 18, 2025 @01:26PM (#44022907)
Good point. I also use my PKMS as a CMS for my blog. Might just split out the services and go this route.
Re:Ditching Obsidian and building my own by justsomehnguy on Sunday May 18, 2025 @03:43PM (#44023843)
welcome to the world when not TailScale, not a private WireGuard, not aL2TP, OpenVPN works. No, SSTP doesn't too. HTTPS works. Even on the devices you don't or can't control.
Re:Ditching Obsidian and building my own by SahAssar on Sunday May 18, 2025 @03:00PM (#44023574)
So you've managed to unlearn the last decade of security learnings in regards to zero-trust and similar concepts?
Re:Ditching Obsidian and building my own by lolinder on Sunday May 18, 2025 @03:27PM (#44023750)
I'm not running a business, I'm running a home. The threat models are totally different and I adjust my security posture accordingly.

Besides, I don't bother with auth for simple services, not stuff that actually hosts data. If someone unauthorized is inside my network they're not going to be interested in using my TTS/STT service or in finding out the last barcode I scanned or in using my tiny consumer GPU to generate tokens on an LLM—there are way worse things they could be doing at that point than fiddling with the many tiny services I have set up.

Also: I couldn't set up so many silly, inconsequential services if I didn't have a VPN. With my setup, every new idea I have can be a quick service on my network accessible by me anywhere in the world. If I had to expose each of these things to the internet I wouldn't bother running them at all lest they have an exploit that ends up being an entrypoint into my network.

Re:Ditching Obsidian and building my own by xboxnolifes on Sunday May 18, 2025 @03:12PM (#44023650)
You need to understand your own risk tolerance and, more importantly, effort/resource threshold. Zero-trust is great if you have the resources to put to it, and companies should do it. But individuals trying to manage multiple companies worth of services, alone, on their own network? There's going to be corners cut.
Re:Ditching Obsidian and building my own by caconym_ on Sunday May 18, 2025 @03:16PM (#44023675)
That's a comically uncharitable extrapolation on what was said.
Re:Ditching Obsidian and building my own by sigmonsays on Sunday May 18, 2025 @03:22PM (#44023719)
self hosting is entirely different than enterprise security practices. You're a little out of touch with reality if you don't realize this.
Re:Ditching Obsidian and building my own by dns_snek on Monday May 19, 2025 @03:43AM (#44027406)
I'm being serious - please educate us, how do you think that we can do better in a homelab setting? How do you apply zero-trust principles in homelab environment with reasonable effort and without relying on 3rd party services?
Re:Ditching Obsidian and building my own by chris12321 on Sunday May 18, 2025 @04:51PM (#44024232)
You can also set up DNS records pointing to your home server's VPN IP, which, with Tailscale, I've found to be pretty static and then a reverse proxy on your home server. So I have my home network apps running on app1.my-domiain.com app2.my-domain.com, app3.my-domain.com etc, which only work when I'm connected to the VPN.

The downsides are that I need to be connected to the VPN at home to use the domain and I currently don't have SSL set up on the domains, so browsers complain when I connect to them. The second problem I could fix, but I'm not sure if there's a solution for the first.

Re:Ditching Obsidian and building my own by sebws on Sunday May 18, 2025 @06:29PM (#44024773)
You can fix them both in one. In your local network you host a local DNS, in my case I’m using pihole. It has records which point to the local IP of a reverse proxy. With this setup you can have SSL for your domain names on your local network.

To make it then work outside your local network, in tailscale settings you use “split dns” to set your DNS to be the IP of your pihole in the tailnet for your domain. Now when you try hit your local domains you should receive the same local IPs that you do at home. Then in the tailscale route settings of your machine hosting the reverse proxy you make it advertise the subnet of those local IPs. Now when you receive the local IPs your devices using the tailscale VPN should go to your home server with SSL and no external DNS.

Hope that’s somewhat clear enough

Re:Ditching Obsidian and building my own by mynegation on Sunday May 18, 2025 @08:44PM (#44025520)
There is a solution for the first. I have setup my home server torun Tailscale _and_ be a router to 192.168.2.x network (you can set this up in the Tailscale UI). I have server.mydomain.com to resolve to 192.168.2.x address and this way I can access it from the outside via Tailscale and from inside without the need to turn on Tailscale. I have https setup via DNS-01 challenge as well and updated automatically.
Re:Ditching Obsidian and building my own by 8fingerlouie on Sunday May 18, 2025 @04:56PM (#44024261)
The internet is not a friendly place, so a VPN is a great idea.

With modern tools like Wireguard, you can even set it up relatively easy, either as Wireguard alone or as Tailscale (or ZeroTier, though that's not Wireguard).

Wireguard (and Tailscale) allows you to setup the tunnel so that only local (RFC1918 ie) traffic is routed over it, meaning it won't eat up your battery like when just routing all traffic over it.

I have Wireguard setup like that. It enables on any Wi-Fi network that isn't mine, as well as cellular, and the battery impact is less than 2% over a day.

Re:Ditching Obsidian and building my own by old-gregg on Sunday May 18, 2025 @05:29PM (#44024435)
Your "life hack" is not a good advice. There's plenty of well-written explanations for why perimeter based security doesn't work. What is strange is that you've started in the right place: by being "constantly worried about security implications of each app". Unfortunately it's annoying and time consuming, but that's the right way to keep your data private. And if that's too much hassle, it means it's worth it to pay others to do it.

When I'm thinking about a hypothetical situation when I need to save the world by hacking into a hypothetical villain, my best hope will be him using your approach to security.

Re:Ditching Obsidian and building my own by lolinder on Sunday May 18, 2025 @05:44PM (#44024521)
Any serious approach to security begins with a reasonable and clearly defined threat model, and my threat model for my home network doesn't currently include a team of superheros targeting my file backups in an effort to save the world. But I'll definitely keep your advice in mind when I do decide to start executing on my evil plots.

For now my threat model consists of script kiddies and abusive corporations. Self-hosting gets me away from the corporations and keeping my stuff off of the public internet keeps me away from script kiddies.

Re:Ditching Obsidian and building my own by bigfatkitten on Sunday May 18, 2025 @05:42PM (#44024511)
> There's plenty of well-written explanations for why perimeter based security doesn't work

It certainly helps when your attack surface consists of numerous web apps of unknown quality.

Drive-by RCEs (e.g. log4j) then suddenly become much less of a headache when none of it is reachable by the world at large.

Exactly how you do that, whether via an authenticating reverse proxy or VPN doesn’t really matter.

Re:Ditching Obsidian and building my own by gugagore on Sunday May 18, 2025 @05:38PM (#44024485)
Could you provide an example of one of the well written explanations?
Re:Ditching Obsidian and building my own by marcusb on Sunday May 18, 2025 @06:54PM (#44024913)
just go and look at any of the vendors selling “zero trust” solutions. They all have white papers available about how a) perimeter security is “dead” and b) how their specific flavor of zero trust is the One True zero trust and the only thing you can trust to protect your data.

You will without exception need to provide an email address to access these white papers, so their inside sales team can ensure you fully understand the importance of trusting their zero trust, and not trusting anyone else’s.

I’m not kidding - even a little.

Re:Ditching Obsidian and building my own by PhilipRoman on Monday May 19, 2025 @07:24AM (#44028609)
It's sad that "zero trust" has become almost the opposite of what it originally meant. Now you can have the same insecure RDP server with admin/admin login but at least it's protected by a VPN that only a few tens of thousands of people have access to.
Re:Ditching Obsidian and building my own by datadrivenangel on Monday May 19, 2025 @02:53PM (#44033412)
Defense in depth though: against a strong threat actor, perimeter based security won't prevent you from getting pwnd, but it will likely take them longer than if everything is on the public internet, and a private network will make weak threat actors ignore you, so it is still valuable.
Re:Ditching Obsidian and building my own by miki123211 on Sunday May 18, 2025 @07:00PM (#44024945)
Even better, set up Tailscale.

It's far easier to set up, is much more reliable (e.g. when devices are behind firewalls), and uses direct (encrypted) connections when possible.

You can get it to do what you want with just a few clicks. Things like exposing a IoT VLAN on your Tailnet or setting up an exit node to tunnel all internet traffic through your home are super easy. You can even share specific devices with friends, which is super useful. If you have anything particularly sensitive (e.g. a notes app that you wouldn't want your children / partner to have access to), you can limit access to specific users / devices on the TS side, without bothering with implementing auth.

I think there's even a way to look up the user and device based on their IP, which is one way to add painless authentication to your apps. There are reverse proxies that do it and inject the info as HTTP headers.

If you aren't comfortable with trusting them with control over your network, you can always host your own Headscale server.

Re:Ditching Obsidian and building my own by dankebitte on Sunday May 18, 2025 @08:07PM (#44025294)
> If you aren't comfortable with trusting them with control over your network

Wrt the possibility of Tailscale being compromised, there's the in-beta tailnet lock feature:

> Tailnet lock lets you verify that no node is added to your tailnet without being signed by trusted nodes in your tailnet. When tailnet lock is enabled, even if Tailscale infrastructure is malicious or hacked, attackers can't send or receive traffic in your tailnet. [1]

[1] https://tailscale.com/kb/1226/tailnet-lock

Re:Ditching Obsidian and building my own by ra on Sunday May 18, 2025 @09:01PM (#44025629)
The pricing page suggests this is only for the "enterprise" plan.
Re:Ditching Obsidian and building my own by dankebitte on Sunday May 18, 2025 @09:25PM (#44025766)
Not sure which page you're referencing, but the linked page states it's available for Personal (free) as well:

> Tailnet lock is available for the Personal, Personal Plus, and Enterprise plans.

Re:Ditching Obsidian and building my own by supermatt on Monday May 19, 2025 @12:24AM (#44026495)
It is definitely on personal as I use it myself.
Re:Ditching Obsidian and building my own by cypherpunks01 on Sunday May 18, 2025 @09:40PM (#44025838)
Thanks for the tip!

I've had the Device approval setting on, and wished there were more robust lock features, but not enough to want to run my own coordinator. So Tailnet lock seems like a good security upgrade.

Re:Ditching Obsidian and building my own by rtrgrd on Sunday May 18, 2025 @08:10PM (#44025311)
Or, for those who are paranoid about relying on a company, setting up headscake is relatively quick and painless too - currently using it to sync between devices across multiple cities.
Re:Ditching Obsidian and building my own by GCUMstlyHarmls on Sunday May 18, 2025 @09:05PM (#44025656)
Re:Ditching Obsidian and building my own by rtrgrd on Monday May 19, 2025 @07:40PM (#44036173)
Thanks for picking that up - fat fingers
Re:Ditching Obsidian and building my own by krick on Sunday May 18, 2025 @10:14PM (#44025996)
Should I be paranoid? I never tried Tailscale, and the idea of trusting 3rd party with managing access to my network does give me chills. But IDK, honestly, maybe it's silly? Is it in all honesty less likely that I'll fuck things up setting my own Headscale server, than that Tailscale™ will (consciously or otherwise) fuck me up?
Re:Ditching Obsidian and building my own by simplesocieties on Monday May 19, 2025 @12:13AM (#44026450)
Tailscale has made all of their client source code available for anyone to view so if you want to confirm that you’re not sending unencrypted data or keys through their servers you’re more than free to do so.

https://github.com/tailscale/tailscale

I think there is some merit to setting up wireguard (e.g. you want more devices than what Tailscale offers for free, or their servers become unreliable for some reason)

But people who push the “scarey boogeyman will look at your data” with Tailscale are either technically illiterate or overly-paranoid.

Re:Ditching Obsidian and building my own by spookie on Monday May 19, 2025 @03:25AM (#44027276)
I don't think the hesitation comes from the boogeyman you speak of, but just relying on someone else other than yourself.

This has further implications than just security. Also, whoever gets into self hosting already wants to not rely on others for the most part. If you didn't go into this for the tinkering aspect, I guess Tailscale is completely ok for most, perhaps even ideal.

Nevertheless, none of this has anything to do with the achievements or not of Tailscale. People saying that your own VPN is ok have a point.

Re:Ditching Obsidian and building my own by rtrgrd on Monday May 19, 2025 @07:41PM (#44036191)
afaik if you set up your own headscale server, i don't think there is a device count limit (?)
Re:Ditching Obsidian and building my own by spookie on Monday May 19, 2025 @03:16AM (#44027220)
If you got yourself into self hosting, you might as well go fully independent. You have already taken care of the most complicated part anyways.
Re:Ditching Obsidian and building my own by airtonix on Sunday May 18, 2025 @07:13PM (#44025009)
or zerotier
Re:Ditching Obsidian and building my own by nine_k on Sunday May 18, 2025 @10:16PM (#44026006)
What makes Tailscale more secure, or more reliable, than just a direct Wireguard tunnel?

Tailscale's complexity and features make sense when you have 200 nodes, or maybe 20 nodes at least. When you have 3-5 nodes, I think it's overkill, and a bunch of extra dependencies which may fail, and lock you out of your private nodes when you need it most.

Re:Ditching Obsidian and building my own by pcpuser on Sunday May 18, 2025 @10:22PM (#44026053)
NAT busting, and no key management. What extra dependencies does Tailscale have?
Re:Ditching Obsidian and building my own by nine_k on Monday May 19, 2025 @12:11AM (#44026439)
How do you identify yourself to Tailscale?
Re:Ditching Obsidian and building my own by supermatt on Monday May 19, 2025 @12:19AM (#44026482)
My nodes identify themselves with keys signed by the other nodes as per tailnet lock: https://tailscale.com/kb/1226/tailnet-lock
Re:Ditching Obsidian and building my own by pcpuser on Monday May 19, 2025 @04:09PM (#44034257)
Google auth but you can run your OIDC provider if you're into that: https://tailscale.com/kb/1240/sso-custom-oidc.
Re:Ditching Obsidian and building my own by akerl_ on Monday May 19, 2025 @12:29AM (#44026507)
Well, the dependency on Tailscale's servers, for one. You're getting that NAT-busting because Tailscale is running servers to handle that for you, and you're getting around key management by having them manage your keys and overlay their own auth layer for you.
Re:Ditching Obsidian and building my own by theshrike79 on Monday May 19, 2025 @01:58AM (#44026836)
You can always run Headscale: https://tailscale.com/opensource#encouraging-headscale

> Headscale is a re-implemented version of the Tailscale coordination server, developed independently and completely separate from Tailscale. Headscale is a project that complements Tailscale — with its own independent community of users and developers. Tailscale does not set Headscale’s product direction or manage the community, and neither prohibits nor requires employees from contributing to Headscale.

Re:Ditching Obsidian and building my own by sampullman on Monday May 19, 2025 @02:51AM (#44027088)
I had a Headscale server running for a few years with no hiccups. Setup was easy, it's not too resource intensive, and you can use the normal Tailscale client.
Re:Ditching Obsidian and building my own by pcpuser on Monday May 19, 2025 @04:09PM (#44034252)
So Tailscale has "extra dependencies" on Tailscale. Gotcha.
Re:Ditching Obsidian and building my own by akerl_ on Monday May 19, 2025 @05:24PM (#44035029)
Tailscale is an extra dependency vs using WireGuard directly, which is what was being discussed.
Re:Ditching Obsidian and building my own by supermatt on Monday May 19, 2025 @12:40AM (#44026547)
The benefit of Tailscale is that it gives you “lots” of wireguard tunnels that work through NAT with near zero configuration and a central admin interface.

I use a personal plan and have multiple nodes. Desktop, laptop, tablet, phones, docker containers just for me and a couple of raspberry Pis on my families home networks.

Only once have I been “locked out” of a node and that was due to an expired key.

Sure, for just connecting one node to another with a known IP and accessible port it’s overkill, but for anything more complex it an awful lot of awesome for very little effort.

Re:Ditching Obsidian and building my own by wltr on Tuesday May 20, 2025 @07:10AM (#44040159)
I second this, and want to highlight that only recently I learned about this similar project called netbird. I tried it, and it looks and works very similarly from the first glance. However, Magic DNS like feature did not work for me, for some reason. Maybe I need to do something, e.g. to enable it. More likely there are others, similar projects, but I’m not aware of them. By this point I stayed with Tailscale, but in any case, I see such project as of tremendous help for a self-hoster.
Re:Ditching Obsidian and building my own by throaway920181 on Monday May 19, 2025 @12:27AM (#44026501)
For the most part I like Tailscale, but there's weirdness on Android with their app + Private DNS.
Re:Ditching Obsidian and building my own by midasz on Monday May 19, 2025 @06:26AM (#44028247)
This is also my big frustration. I've set it to an Adguard instance that's also on tailscale and the app keeps getting into a faulty state. I've been looking into hosting the Adguard instance on the open web and securing it another way but bit short on time lately.
Re:Ditching Obsidian and building my own by theshrike79 on Monday May 19, 2025 @02:00AM (#44026845)
Unraid added native Tailscale support in 7.0, now you can just add an "app" (a docker container) and tick a checkbox and it'll appear in your tailnet directly.
Re:Ditching Obsidian and building my own by ycombinatrix on Monday May 19, 2025 @02:57AM (#44027130)
Tailscale is a VPN, how is it "better" than using a VPN?
Re:Ditching Obsidian and building my own by newdee on Monday May 19, 2025 @03:33AM (#44027334)
Tailscale is more than just a VPN. It has a number of features and capabilities which make it more like a private overlay network that just seems to work wherever and whenever. Some of those features; WireGuard (the VPN bit), NAT punching, automatic key distribution, ACLs, split or full tunnel routing to internet resources, SSO. Just to name a few.
Re:Ditching Obsidian and building my own by wkat4242 on Sunday May 18, 2025 @07:54PM (#44025235)
I do this too yes. It's a great extra level of security though probably not too smart to rely on as the only one.

It's true you're already screwed if they get past the VPN and I also don't set up Auth for stuff that doesn't have any private details. But don't count on just the VPN for sensitive stuff. Like password manager.

Re:Ditching Obsidian and building my own by lolinder on Sunday May 18, 2025 @08:09PM (#44025308)
Yeah, definitely don't do turn off auth for things that matter, if only because I'm not perfectly disciplined at keeping my guests off my main network. I'm talking about tiny services that do one thing—ollama, tts/stt, and similar. Stuff where the worst case scenario is someone using up some processor cycles, not data leaks.
Re:Ditching Obsidian and building my own by varenc on Sunday May 18, 2025 @08:56PM (#44025601)
This is what Tailscale is great at.
Re:Ditching Obsidian and building my own by cobertos on Sunday May 18, 2025 @09:07PM (#44025671)
Any idea on how to segment a VPN between friends? I have a few critical servers on my VPN I only want one or two devices to access, but no other devices. Mostly so that in case a rogue device enters or a friend gets hacked, there's no access to my sensitive services.
Re:Ditching Obsidian and building my own by abinmn on Sunday May 18, 2025 @11:44PM (#44026366)
You can do this on tailscale with their ACL. It is super flexible for nailing down exactly which users/devices can talk to what on your network.
Re:Ditching Obsidian and building my own by hexmiles on Monday May 19, 2025 @02:27AM (#44026979)
In my case I simply create two wireguard tunnels (one called "vpn", the other called "guest") and use firewall rules to block all traffic from the "guest" tunnel to all service except the one that should be "public" (in my case a minecraft server).

I think you could technically do it with a single tunnel by using firewall rules that refer to the IP address of the single peer but it's less convenient.

NOTE: I also added a dedicated dnsmasq instance only for the "guest" tunnel so that they have DNS working and can use hostnames instead of IP address.

This setup is trivial with both OpenWrt and OpnSense, but it should be doable also with manual setup

Re:Ditching Obsidian and building my own by colordrops on Sunday May 18, 2025 @09:29PM (#44025783)
I built a home server project that manages many of the rough edges around deployment of self-hosted apps. It includes DDNS, router+firewall, headscale, automatic setup of apps, and automatic deployment of subdomains and TLS certs for each app.

Apps are blocked to the public by default but accessible using a Tailscale client.

It's built on top of NixOS and completely configurable through a single module.

Still in heavy development but I've replaced an entire rack in my closet with an Intel NUC.

https://homefree.host