this post was submitted on 25 Nov 2026
69 points (97.3% liked)

Selfhosted

64137 readers
1830 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Like everyone else, I've been looking for a good mesh VPN solution and I finally found Nebula. Apparently it was created by Slack and later open sourced. I don't know people don't talk about it more.

Pros:

  • really easy to self host
  • clear logs make it easier to troubleshoot then other options
  • free Android app (as it it doesn't require subscription)

Cons:

  • setup is quite manual
  • doesn't offer DNS (I just deployed PiHole instance)

(there's Nebula Commander that should make the setup easier but I haven't tried it).

You basically create one node accessible to all the other nodes. In my case I have to expose a single port to the internet. Then you manually create private keys and distribute them to servers. With a bit of configuration you setup the firewall, routing and relays. And you really only need a bit of configuration. I only had to connect about 5 devices so it was totally doable by hand (i.e. without commander).

Before that I tried:

  • headscale - didn't work for some reason. apparently setting it behind reverse proxy is not officially supported and it requires port 443 so I would need to setup a dedicates server for it

  • Netbird - it was working fine on severs but I got tired of the battery drain issue on Android

  • Netmaker - too many functions are locked behind the subscription. Android app doesn't work with free accounts and WG setup didn't work for me

I didn't try Tailscale because I wanted something I can self host (and headscale didn't work for me)

So if you don't have too many nodes and are looking for something easy to self host I totally recommend Nebula.

all 26 comments
sorted by: hot top controversial new old
[–] Decronym@lemmy.decronym.xyz 1 points 2 days ago

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
CGNAT Carrier-Grade NAT
DNS Domain Name Service/System
NAT Network Address Translation
PiHole Network-wide ad-blocker (DNS sinkhole)
UDP User Datagram Protocol, for real-time communications
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)
nginx Popular HTTP server

[Thread #186 for this comm, first seen 28th Nov 2026, 08:00] [FAQ] [Full list] [Contact] [Source code]

[–] skyline2@lemmy.dbzer0.com 20 points 4 days ago* (last edited 4 days ago) (1 children)

If you ever need more nodes, Netbird has a self-hostable control server and unlimited nodes for self hosters. It has a pretty easy to use GUI as well. https://netbird.io/

[–] ExLisper@lemmy.curiana.net 2 points 4 days ago (2 children)

As I said in my post, netbird has a broken Android client and the issue is being ignored by devs. It's great otherwise. If you don't need to connect your phone to the mesh it's a good choice.

[–] n0xew@lemmy.world 5 points 4 days ago (1 children)

Yes that's unfortunate.. I've dropped it and been using JetBird (FDroid) for some time now, it works perfectly for my usage but YMMV

[–] ExLisper@lemmy.curiana.net 1 points 4 days ago

I have the same issue on official client and JetBird. The issue is with the underlying library. It works fine on wifi but on 4G is drains the battery.

[–] skyline2@lemmy.dbzer0.com 2 points 3 days ago (1 children)

I would have agreed about 3-4 months ago but that issue has since been fixed and I have had no further problems on GrapheneOS on a Pixel8

[–] ExLisper@lemmy.curiana.net 1 points 3 days ago* (last edited 3 days ago) (1 children)

Really? I still had this issue 2 weeks ago when I switched. The issue is open here. People were still posting there a week ago. No response from the devs.

[–] skyline2@lemmy.dbzer0.com 1 points 3 days ago

Yeah its at least fixed for me. I wonder whether the remaining issues have something to do with aggressive battery management on some devices, which is a major pain point across Android in general for apps that need to run unrestricted in the background. It is much better on Pixel since Android 17 IMO. Most apps I've seen will just tell you to allow unrestricted access... maybe that's what's needed here, even if its not a user friendly fix.

[–] sk@utsukta.org 9 points 4 days ago (1 children)

@ExLisper i'm running headscale behind nginx and it works just fine.

[–] refract@lemmy.zip 6 points 4 days ago (3 children)

Honest question, why is mesh VPN so popular?

I've been using plain wireguard on opnsense and I'm wondering if I'm missing out. It is easy to add new clients via QR code. Once added you can use the opnsense firewall to manage access to specific nodes or VLANs. Lightweight and reliable, with full control.

[–] calebm@lemmy.world 12 points 4 days ago

Some people can't or don't want to punch holes in their firewall. But the biggest one I would guess is CGNAT.

[–] vividspecter@aussie.zone 6 points 4 days ago* (last edited 4 days ago)

I generally prefer to use raw wireguard too but advantages of mesh VPNs:

  • NAT traversal as others have suggested
  • User/identity based ACL/firewall. IP based firewalling can be unreliable, and VLANs are not always configurable on home setups (of course OPNsense and the like is fine).
  • Lower latency if you've got multiple machines in different locations and need to communicate directly between them. They'll take the shortest path, rather than always going through one central server. Mind you, this isn't hard to solve if you only have a few machines with raw wireguard, but it's still extra, manual work
  • Key rotation is annoying with raw wireguard
[–] ExLisper@lemmy.curiana.net 1 points 4 days ago

I have pretty basic requirements for my setup:

  • connect my phone and tablet to my homelab (for arr stack and jellyfin)
  • connect to the internet through VPN node (Nord in my case) from my phone
  • route my torrent client through VPN

Turns out it's not that simple to do. With a mesh VPN I simply have an exit-node in my homelab that runs Nord VPN and I route traffic through it. I tried using wireguard and on my phone it usually simply fails to connect without any logs. I tried running two VPNs at the same time and it also didn't work. I'm sure it can be done with pure WG but for me setting up mesh VPN is just much easier.

[–] talkingpumpkin@lemmy.world 1 points 3 days ago (1 children)

I'd love to use nebula, but the android app is not FOSS (the source is available on github but it's not licensed as FOSS, meaning people can't fork it if/when the company closes it down).

A few days ago i stumbled upon https://rayfish.xyz/, which (PSA) looks promising at first sight, but it tuns out to be AI slop :(

[–] ExLisper@lemmy.curiana.net 1 points 2 days ago (2 children)

If the company closes down who will sue people for forking it? The government?

[–] talkingpumpkin@lemmy.world 1 points 2 days ago

I meant when the company closes down the source code :)

IANAL but AFAIK when a company goes down its IPs goes to the creditors (together with any other assets): it doesn't disappear or go to the government.

Anyway, even excluding practical legal liabilities, that nobody will sue you for something does not make it legal and that (regardless of one's personal moral stance on the matter) would be a real problem for a FOSS project that want to attract volunteer contributors.

(sorry, I misclicked and deleted the other reply)

[–] stratself@lemdro.id 4 points 4 days ago (1 children)

Does Nebula do seamless NAT traversal? If it doesn't offer a DNS daemon, can it still force your machine to use a specific DNS resolver? It seems to be an interesting option, doing key auth instead of relying on a central identity provider like Netbird or Tailscale.

I was able to get headscale running behind Caddy, and furthermore it can run on a nonstandard port with little issues. But doing so requires a public IP which many don't have. Can Nebula run without this requirement for the control plane? If so, that'd be awesome.

[–] ExLisper@lemmy.curiana.net 2 points 4 days ago

Yes to NAT traversal and yes to custom DNS resolver (I just pointed everything to one of my nodes running PiHole). I see that it can actually respond to DNS queries but not sure how advanced that is. PiHole works fine for me.

You still need a way to reach to central node but I think it should work with dynamic DNS. It just requires single UDP port.

When I tried headscale the client simply got stuck on authentication without any error or anything. I saw in the docs that setting it up behind reverse proxy is not officially supported. I could keep fighting with it but Nebula was just so much easier to troubleshoot and set up (except one weird issue with masquarading...). Basically with Nebula I was struggling with the last 10% while with other solutions I was stuck a the first steps (like with Nebula phone had issue with accessing the internet reliably though the exit node while with other solutions it would not connect to the VPN at all).