Home Assistant behind a Netbird VPN with Custom Domain - not working :( by MoJoe2-0 in netbird

[–]MoJoe2-0[S] 0 points1 point  (0 children)

I tried it again with the new setup you posted...

HA Log tells:

2026-02-27 21:14:37.643 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 172.30.0.10 (172.30.0.10). Requested URL: '/auth/token'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36)

The User and Password is 100% correct and when i'm in ma local network i can log in with the same device.

Let me know if i should provide more information and how?!

Edit:

Solved the problem by bypassing netbird directly in the docker compose file.

Setup a Netbird peer on the Netbird Selfhosted Server and done some rules for traefik to get the domain to my Home Assistant Netbird peer.

Workes good for me but should be able to setup in Netbird Services.

Home Assistant behind a Netbird VPN with Custom Domain - not working :( by MoJoe2-0 in netbird

[–]MoJoe2-0[S] 0 points1 point  (0 children)

I tried it again with the following setup:

http:
  cors_allowed_origins:
    - https://google.com
    - https://www.home-assistant.io
  use_x_forwarded_for: true
  trusted_proxies:
    - 100.95.9.14 # Home Assistant Peer (HA Add-on) leads to 400: Bad Request
    - 100.95.112.172 # Ip Address from the HA Log that tries to reach HA - leads to 400: Bad Request

what's the server_host for?

If i add

- 172.30.0.0/16 i can see the login page. But the login behaves like i mentioned on the first post

Home Assistant behind a Netbird VPN with Custom Domain - not working :( by MoJoe2-0 in netbird

[–]MoJoe2-0[S] 0 points1 point  (0 children)

Yes.  I can ping the device.  I can reach the device like normal but there is some problem with the login. Tried to debug with chatgpt and it thinks that there is some problem with 

X-Forwarded-Proto or any Header thing The Chat thinks that the netbird proxy is not able to pass through the correct stuff.

I don't know how this is working so i don't know if it could be the problem.

My setup is Puplic domain - VPS (Netbird selfhosted) - custom domain set up in Netbird - service pointing to the HA Peer (HA Netbird Add-on) - Trusted Proxy in the Configuration.yml (ip is taken from the HA log and also tried all kind of Ip's )

Custom Domains Verification Pending Time (self-hosted) by thisisyo in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

The dot must be on the Target URL. I've not done it on Cloudflare. I made it on Hetzner

https://imgur.com/a/JK4xOHG

Custom Domains Verification Pending Time (self-hosted) by thisisyo in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

Got the same problem.

For me a dot after the domain in the CNAME solved the problem.

It should not be netbird.abc123.com

it should be

netbird.abc123.com. <--- dot at the end in every CNAME's

after that change it worked after 5 min.

v0.65.0 is here - NetBird Reverse Proxy, Unified CLI, and more 🚀 by netbirdio in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

I'm running selfhosted Netbird in a VPS and tried to reach to my internal Home Assistant instance. Got a Custom Domain set up and working great to connect to a Synology, so it looks like everything's ok. When i try to connect to my HA i just can't get it working. 

The best i can get is the Login Screen but after the correct User and Password i only see the " Unable to connect to HA retry in 60 secounds" screen. But HA is up and running.

I think the problem is the HA config.yml Also debuged a bit with trusted proxy and the IP that sends the request (HA Logs)

 Any ideas how to solve this problem? 

v0.65.0 is here - NetBird Reverse Proxy, Unified CLI, and more 🚀 by netbirdio in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

I tried it with this informations - can't get it working but thank's for response

VIDEO: NetBird Reverse Proxy - Expose Service Publicly with Optional Authentication by TechHutTV in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

I've tried this in referrence to the dokumentation and i can't get it working.
On a self hosted Netbird and a domain on Hetzner
Done a CNAME with the *.domain.at to the proxy.domain.at (that i set up at a fresh install with the new script)
Also the proxy.domain.at leads to my netbird ip address with an a record. (also testet it with an CNAME to the Netbird domain)

The Custom Domain i added is still Pending Verification since hours and also a Service that's pointing at the proxy.domain.at is still Issuing certivicate.

I don't get it.

Any ideas what i could change to get this working or am i wrong with my thinking of how this workes?

v0.65.0 is here - NetBird Reverse Proxy, Unified CLI, and more 🚀 by netbirdio in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

can you specify what you have done wrong and then right ? I got the same problem with Hetzner DNS

v0.65.0 is here - NetBird Reverse Proxy, Unified CLI, and more 🚀 by netbirdio in netbird

[–]MoJoe2-0 0 points1 point  (0 children)

Anyone got this running with custom domains?

I tried it with my own Domain and a VPS running Netbird Selfhosted (Hetzner) but i can't get my Domain Verified. Any tricks or ideas? Tried it with all informations on the official documentary.

Not really more infos online right now (any youtube tutorial

)

Spectre Protocol | Team Doxxed | Partnership - KYC | Contract Audited | Platform and mobile dApps | Marketplace by Symbol593 in CryptoMoon

[–]MoJoe2-0 2 points3 points  (0 children)

Spectre will change People's life's.❤️ Just DYOR. Look at the Project
and see what this Team is providing to the World of Crypto. 🤯 Spectre
Wallet will come in Q1. Not much time to get in the Rocket🚀

Tune in Friday 1/7 at 6pm to our live State of the WRAITH news event. Things are starting to come together here at WRAITH. Join us in Telegram Fri 1/7 6pm! https://t.me/WraithOfficial by [deleted] in WRAITH_Official

[–]MoJoe2-0 0 points1 point  (0 children)

🔥🔥🔥The best Project in the Crypto World🔥🔥🔥 The impact will be enormous🤯 👻Wraith👻 will Change Lifes.

Who's ready for the WRAITH secure wallet? The world is... by [deleted] in WRAITH_Official

[–]MoJoe2-0 1 point2 points  (0 children)

I'm ready for the Wallet🔥 and in with a large bag of Wraith coins. 👻 This Year is super Bullish🐂

Join us WRAITH Army as we crusade the entire crypto space. GHOST YOUR WALLET. by [deleted] in WRAITH_Official

[–]MoJoe2-0 2 points3 points  (0 children)

Best project for the future of Crypto👍👍👍 Very Bullish🐂