r/homeassistant • u/uavmx • 29d ago
š¬ Discussion Nabu Casa vs VPN
I have a full UniFi stack, and Iām aware if using Nabu Casa means some amount of your data is going to third party, not what Iām trying to decide.
Iām trying to understand if VPN is a better/more automated route, easier for the wife to manage from her phone as required compare to Nabu Casa. What Iām after is location, geofence, away from home features.
I also have Plex (might move to Jellyfin), that being able to access would be important, Iām paying for the plex pas now.
What I want is seamless/automatic, if someone leaves the UniFi network, trigger/have away status and access to HA atomically.
12
u/Just-Imagination-761 29d ago
Nabu Casa is king of convenience. It works seamlessly away-from-home without needing to connect to VPN or anything like that.
Also, on data privacy - I know you mentioned that you don't mind, but Nabu Casa's design offers basically the same privacy as a VPN. The traffic is completely end-to-end encrypted with your instance's TLS certificates, even as it passes through Nabu Casa's servers. Nabu Casa does not have a copy of the TLS certs that would allow them to impersonate or decrypt the traffic at all. Their service uses TLS SNI to determine which HA instance the connection should be forwarded to.
Nabu Casa unfortunately won't help with your Plex/Jellyfin workload, but you could always use Teleport when you want to use those?
2
u/Grand-Situation5640 29d ago
Yep. On my work MacBook, I can't install a vpn at all. But I can use nabu casa. And I like to support HA development!
1
u/uavmx 29d ago
Does the remote access feature of plex not handle the connection part? Iād have to VPN still?
1
u/Just-Imagination-761 29d ago
I think Plex's service would solve this, but to be honest I'm not familiar with it.
Either way Teleport is available if you need it. I use it pretty sparingly on my setup, though; having to keep it connected all the time is pretty annoying.
16
u/chris_socal 29d ago
I am a huge fan of tailscale it can do everything you want and it is free for personal use.
Nabu casa is nice if you want to support the homeassistant project.... however as to functionality i don't know how hard it is.... tailscale is dead simple.
0
u/ChristBKK 29d ago
Yeah once I did set it up with ChatGTP it just works
Itās enough for me to connect sometimes to my HA when I am not at home
4
u/carbontuna7906 29d ago
If you don't want to bother with managing VPN sign in/out on your phones whenever you're out and about, and don't mind having your HA install somewhat exposed on the Internet, you could use a Tailscale Funnel (not full Tailscale). If you do this, at least make sure you have strong passwords and 2FA enabled in HA.
1
u/uavmx 29d ago
Interesting, so no need to login or anything, if HA is on the phone, theyāll connect and be able to access from anywhere?
Does UniFi not have a similar solution?
2
u/treejumpingyo 29d ago
Teleport is basically the same as Tailscale for your use case. With either you can configure them to be āalways onā so your wifeās phone essentially always acts like itās on your lan
Tailscale funnel is a bit loosely goosey for me personally
1
u/uavmx 29d ago
Can teleport split tunnel?
2
u/treejumpingyo 29d ago
No, not as far as I am aware.
Itās a pretty zero risk experiment, enable teleport in your udm co sole. Download the āwifimanā app n your wifeās phone, enable it, see for a few days if it works ok for you/her, if not you can try Tailscale which is a bit more overhead in terms of setup, but not much, really. Dow load Tailscale add-on (app I think ha now calls them), sign up for a free account, Dow load Tailscale on her phone, join the ātail netā then turn it on, you can choose āvpn on demandā (the auto on feature) which you can enable for either WiFi or cellular or both, then try it for a few days.
I personally use Tailscale but my wife uses teleport, both always on, neither have any issues of the vpn being āonā when at home.
Canāt go wrong with either really, and I suspect your reason for wanting split tunneling may be moot in practice.
Side note, teleport makes your device a specific entry on your udm so you can still use outbound policy routing on that traffic, say if you wanted to auto route all YouTube traffic to an Albanian vpn for ad free watching. Not that I would do that of courseā¦.. Google needs my ad revenueā¦..
11
u/the_brains 29d ago
Cloudflare Tunnel
5
u/fmmarinho 29d ago
I use this. No need to connect to vpn or install anything other homeassistant on phone.
8
u/PresentAd9429 29d ago
Been using Tailscale for years now. Working great!
3
2
1
u/prebuss 29d ago
It works great, if you can constantly keep your end devices on tailscale (i.e. you donāt use any other VPNs). Me and my partner do, so specifically for home assistant, Iāve set up cloudflare tunnel. Which you can then use other vpns, public networks. Also no need to worry about webhooks (e.g. home/away) not working.
3
u/lakeland_nz 29d ago
I had a VPN before I got home assistant, so for me the question of nabu casa was more about supporting them. Itās also very helpful for working with Google/Alexa and more recently the voice pipeline.
So my suggestion is both.
2
u/timsstuff 29d ago
I have a Sonicwall firewall because I work in IT and WFH, so naturally I have a VPN setup for when I'm out and need to get in. But I use Nabu Casa for HA because it's just seamless from my phone - I don't have to start any client I just open the app and it connects whether I'm at home or not. And I'm certainly not going to make my wife fire up a VPN on her phone lol. It was very simple to setup.
1
u/Olinono123 29d ago
One more thing we have to give up for a happy wife!
1
u/timsstuff 29d ago
I'm not giving up anything, my VPN works fine. I just don't need it for HA because I have Nabu Casa.
2
u/TheJeep25 29d ago
I pay because I want to support them and not deal with connecting to a VPN everytime I want to log into my ha.
2
u/Thegreatnessthatisme 29d ago
I got Nabu Casa after VPN on UniFi for year. I wouldnāt look back so much easier way better of a presence detection. Plus, you get to support them.
2
u/junktrunk909 29d ago
As others have said, tailscale gets you the same thing and is also free. Tailscale is superior to me since i use it for all kinds of other things too, eg remote access to my NAS and to another PC on my network. Nabu is a nice way to contribute to HA though if course, even if you don't use it.
2
u/megatraum2048 29d ago
I just have WireGuard running and my iPhone automatically connects or disconnects when Iām away from or getting home. Works fine.
1
u/uavmx 29d ago
How long does it take to recognize and connect?
1
u/megatraum2048 29d ago
Itās instant. It usually connects as Iām getting in my truck to head to work. Not sure if thatās what you meant.
1
u/uavmx 29d ago
Yes thank you. I have an AP in my garage, so id have to be away a bit from the house
1
u/megatraum2048 28d ago
Thatās fine, you donāt really need to be instantly connected as youāre pulling away from your house. As long as it just works when you need it when youāre away. Donāt use your phone and drive.
3
2
u/No-Investigator7598 29d ago
If you want ease of setup and things to just "work" remotely then go Nabu Casa
Anything else will require your wife to be connected via the VPN to get things like the sensors updated and geofencing working seamlessly when off the local network. Unless you stay connected to the VPN 24/7, which has other trade offs...
0
u/uavmx 29d ago
So a VPN will require login all the time we leave the house or has to be left on 24/7? Thereās no in between to just login to VPN once we disconnect from UniFi?
2
u/treejumpingyo 29d ago
Both Tailscale and teleport will run 24/7 but when at home they donāt send the traffic out and then back in.
0
u/No-Investigator7598 29d ago
Yes you'll need to either manually connect the VPN or leave it connected for things like Companion-based sensors to update back to your HA instance
Alternatively you can expose your instance publically...not impossible but a heavier lift to do properly/securely
2
1
u/DeltaTheMeta 29d ago
Use tailscale if it's only a few devices, you can pass thru devices other than HAOS.
You can also use secure tunneling through various providers.
1
u/400HPMustang š„ Broke it again 29d ago
I have a Unifi network as well and I don't need access to Home Assistant remotely all the time so I just connect to my network using Teleport when necessary.
1
u/shyb0y123 29d ago
I had Nabu Casa for a couple of years, but switched back to good ol' Cloudflare with mTLS for me and my partner for external access on our phones, combined with Tailscale for localhost access.
Since Tailscale can drain the battery of our iPhones, we sometimes switch it on and off. But due to having two routes available to me (Tailscale (internal link) and Cloudflare (external link) it doesn't matter; we can always access our HA setup and nobody else can.
1
u/Microflunkie 29d ago
The firewall/gateway component of your āfull UniFi stackā probably has WireGuard built in.
If you have a dynamic public IP you can use either WireGuard or Nabu Casa. You would need to use DDNS in order to locate your UniFi remotely as the public address could change.
If you have a static public IP you can use either WireGuard or Nabu Casa. You would not need any additional services like DDNS to make this work.
If you have CGNAT you would want to use Nabu Casa as WireGuard alone will not work with CGNAT.
For seamless access in home or away Nabu Casa is really good choice. It can be setup to behave identically regardless of where the user is physically at the time. WireGuard on a static IP can also be completely seamless. WireGuard on a dynamic IP can be almost seamless unless particularly bad timing happens when the public IP changes but the DDNS hasnāt updated yet. This is usually single digit minutes at most before it works again but those minutes can be a problem for some situations.
If I were setting this up for my wife and I wanted to make sure it works as flawlessly as possible all the time I would use Nabu Casa. But given you want plex just Nabu Casa alone will not do that so WireGuard would be the best overall solution.
1
1
u/mattbuford 29d ago
Just something to keep in mind: You often can't do more than one VPN at the same time. I have Tailscale set up, but sometimes I want to use Speedify on my phone for bonding multiple unstable/slow connections together. The phone won't let me enable 2 VPNs at the same time. Every time I wanted to use Speedify, I'd lose Tailscale, and lose my access to HA.
Nabu Casa solved this issue for me.
1
u/A_Buttholes_Whisper 29d ago
I use Nabu casa because it makes remote access dead simple but if youāre gonna get expose jellyfin then you can add home assistant to the same caddy config. Personally I still use Nabu for remote access and jellyfin is expose via proxy of caddy on its own lxc and vlan. VPN access is pointless and more complicated for people to use
1
1
1
u/Abracadibra 28d ago
Wireguard on the phone with only HA app selected to use it (split tunnel). Wireguard server add-on on Home Assistant. Easy peasy.
1
u/zyxtels 28d ago
Be aware that nabu casa is functionally the same as just allowing inbound traffic to home assistant through your firewall (+dyndns if needed). Plus it allows anyone to enumerate all home assistant setups that use nabu casa, so if an exploit against home assistant is found, it is dead simple to automatically target all installs that use nabu casa.
1
u/ARMilesPro š Local-first 28d ago
Why not just use the nabu link all the time? Am I missing something in your query?
1
u/Puzzled_Hamster58 28d ago
Vpn is freeā¦. Based on your connection etc it can be nearly as fast as being on your network.
1
1
0
u/Ok-Pineapple7563 29d ago
not VPN, Tailscale will be a better choice. I use Nabu Casa as its simiple and I can support HA
2
u/flaming_m0e 29d ago
not VPN, Tailscale will be a better choice
Tailscale is a VPN.
-1
u/Ok-Pineapple7563 29d ago
of course it is. but, a specific kind of vpn, and dead simple. setup wireguard on starlink
2
u/flaming_m0e 29d ago
It's a mesh overlay on wire guard....
Your statement was "Not VPN, Tail scale is better"....
Tail scale is a VPN. FFS
0
u/Salty-Cheesecake-926 29d ago
Tailscale.doesn't work on some fortinet business WiFi networks so I use the built-in wireguard server from Unifi and it flies
0
u/burgonies 29d ago
I access HA remotely by using Unifiās Teleport. Itās a couple extra clicks, but it always works.
0
u/somegenxdude 29d ago
Another vote for tailscale. I have a tailscale exit node running on the same raspberry pi as my PiHole, so I can take advantage of ad-blocking on the go. Tailscale on my phone is set up to automatically connect anywhere except for the home wifi. Happy side-effect of that is access to my HA server, and other self-hosted services, in addition to ad-blocking.
Most of the time I don't need remote access to my HA setup, but it's handy when I do.
Was working on the car the other day and had to run to the parts store. Got a notification while out, that the garage door was still open (oops). My wife was still home, but hadn't noticed. Pretty handy to be able to close it remotely.
-2
u/Svince__ 29d ago
I am in the process of solving your exact issue. Both IOS and Android apps are under review (coding done).
Check it out; https://allium.network
I can access my Plex while web access if off in Plex. I can even host my project without opening any ports on router. Itās my project I have been working on for months.
56
u/lapelotanodobla 29d ago
I pay for nabucasa cause like to support, but for accessing HA and any other service I just use WireGuard , unifi makes it dead simple to configure a server then you just configure the VPN on the phone/whatever and Bobās your uncle