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.

  • refract@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 hours ago

    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.

    • vividspecter@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour 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
    • calebm@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 hours ago

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

      • robber@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        57 minutes ago

        Wireguard does just fine with CGNAT as long as there’s at least one device with a public IP (e.g. a VPS).

    • ExLisper@lemmy.curiana.netOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 hours 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.

    • ExLisper@lemmy.curiana.netOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      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.

    • Shabby4582@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      17
      ·
      8 hours ago

      I’m not sure if you realise this, but your comment comes across as patronising and combative. Maybe you intended that (in which case, I hope your day gets better), maybe you didn’t.

      Perhaps you could add something constructive about how you got that working, or any issues you overcame that might be helpful?

      You could also write something that reflects OP’s main point about Nebula.

      As it is, it looks like OP took the time to write out something worthwhile and you’ve seized on this small aspect of the post and written a really dismissive, unexplained sentence that reads in a way that undermines and discourages.

        • sem@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          4 hours ago

          Same to me! Are we offending people without realizing it? Or is this a case of you have to take a chance and say something of it is likely to be net positive, even if not everyone will appreciate it? (What i usually do)

          Seems like they’re saying that nginx was their solution to running it behind the reverse proxy?

      • forbiddenlake@lemmy.world
        link
        fedilink
        English
        arrow-up
        19
        ·
        5 hours ago

        On the other hand I feel like your reply is patronizing and an overreaction. Yeah gp doesn’t add much. But sometimes a statement is just a statement.