[GH-ISSUE #4106] Help configuration network routing #8737

Closed
opened 2026-08-05 01:19:21 -04:00 by saavagebueno · 6 comments
Owner

Originally created by @bigboss59400 on GitHub (Jul 5, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4106

Hi,

I'm struggling for several days now, I'm sure I'm missing some routing but I'm not an expert at all in network
So basically my Home assistant setup is composed of one host with several dockers such as nginx, let's encrypt for reverse proxy and certificate. All containers are on the same network subnet.
I have a local dns resolution (on my router) for my homeassistant.domain.com

This setup is working properly when a client is connected locally

I would like to connect to my home assistant outside of my local network hence the choice of net bird

However when I'm connected through net bird I can only ping the net bird host ip from my net bird client that's all.
When I'm inside the net bird container I can see that dns resolution to my homeassistant.domain.com is ok thanks to a dnsmasq docker

I hope it's clear enough and hopefully someone will give me some advice

PS : I also try to run net bird without docker but no success

Originally created by @bigboss59400 on GitHub (Jul 5, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4106 Hi, I'm struggling for several days now, I'm sure I'm missing some routing but I'm not an expert at all in network So basically my Home assistant setup is composed of one host with several dockers such as nginx, let's encrypt for reverse proxy and certificate. All containers are on the same network subnet. I have a local dns resolution (on my router) for my [homeassistant.domain.com](http://homeassistant.domain.com/) This setup is working properly when a client is connected locally I would like to connect to my home assistant outside of my local network hence the choice of net bird However when I'm connected through net bird I can only ping the net bird host ip from my net bird client that's all. When I'm inside the net bird container I can see that dns resolution to my homeassistant.domain.com is ok thanks to a dnsmasq docker I hope it's clear enough and hopefully someone will give me some advice PS : I also try to run net bird without docker but no success
Author
Owner

@Cikaros commented on GitHub (Jul 5, 2025):

I still don't understand your usage scenario. Can you describe it more detailed?

<!-- gh-comment-id:3039474566 --> @Cikaros commented on GitHub (Jul 5, 2025): I still don't understand your usage scenario. Can you describe it more detailed?
Author
Owner

@bigboss59400 commented on GitHub (Jul 5, 2025):

I have edit my post hopefully you will understand my usage now

The solutions I found and try to work without success due to lack of skills :

  • macvlan
  • bridge in my netbird container between netbird virutal interface and netbird docker interface

Here's the docker netbird for refernece but basically it's the same as net bird example

netbird: image: netbirdio/netbird:latest container_name: netbird cap_add: - NET_ADMIN - SYS_ADMIN - SYS_RESOURCE environment: - NB_SETUP_KEY=3dddddddddddddddddddddddddC1 volumes: - /opt/netbird/:/etc/netbird <<: *common-env

<!-- gh-comment-id:3040202805 --> @bigboss59400 commented on GitHub (Jul 5, 2025): I have edit my post hopefully you will understand my usage now The solutions I found and try to work without success due to lack of skills : - macvlan - bridge in my netbird container between netbird virutal interface and netbird docker interface Here's the docker netbird for refernece but basically it's the same as net bird example ` netbird: image: netbirdio/netbird:latest container_name: netbird cap_add: - NET_ADMIN - SYS_ADMIN - SYS_RESOURCE environment: - NB_SETUP_KEY=3dddddddddddddddddddddddddC1 volumes: - /opt/netbird/:/etc/netbird <<: *common-env`
Author
Owner

@Cikaros commented on GitHub (Jul 6, 2025):

Am I correct in understanding your requirement as follows:

You have deployed Home Assistant within your local network (LAN), where it is accessible via the domain homeassistant.domain.com. You now aim to access this service from external networks (WLAN) by connecting through Netbird?

<!-- gh-comment-id:3041540865 --> @Cikaros commented on GitHub (Jul 6, 2025): Am I correct in understanding your requirement as follows: You have deployed Home Assistant within your local network (LAN), where it is accessible via the domain homeassistant.domain.com. You now aim to access this service from external networks (WLAN) by connecting through Netbird?
Author
Owner

@bigboss59400 commented on GitHub (Jul 6, 2025):

So I finally end up with the netbird network feature, I just faced with some weird behavior with the netbird android app

For the sake of completeness, I generate a diagram that represent my setup

Image
<!-- gh-comment-id:3042179272 --> @bigboss59400 commented on GitHub (Jul 6, 2025): So I finally end up with the netbird network feature, I just faced with some weird behavior with the netbird android app For the sake of completeness, I generate a diagram that represent my setup <img width="574" height="468" alt="Image" src="https://github.com/user-attachments/assets/8abb7e04-e080-41c9-bac5-2c876e9b2f79" />
Author
Owner

@Cikaros commented on GitHub (Jul 7, 2025):

If I were to handle this issue, I would do the following:

  1. Configure Netbird's Networks feature to open 172.18.0.2 as a Resource for a specific Group (here, corresponding port Policies need to be configured)
  2. Configure custom DNS for the specific Group, pointing home.yourdomain.com to 172.18.0.2

This can be accessed directly on the mobile end at home.yourdomain.com

<!-- gh-comment-id:3043539063 --> @Cikaros commented on GitHub (Jul 7, 2025): If I were to handle this issue, I would do the following: 1. Configure Netbird's Networks feature to open 172.18.0.2 as a Resource for a specific Group (here, corresponding port Policies need to be configured) 2. Configure custom DNS for the specific Group, pointing home.yourdomain.com to 172.18.0.2 This can be accessed directly on the mobile end at home.yourdomain.com
Author
Owner

@Cikaros commented on GitHub (Jul 7, 2025):

This configuration ensures that in an internal network scenario, closing the Netbird VPN can restore the mapping relationship of home.yourdomain.com, ensuring normal access within the internal network. At the same time, it also ensures that in an external environment, logging into the Netbird VPN can change the mapping relationship of home.yourdomain.com, allowing it to function normally in external network environments.

<!-- gh-comment-id:3043544690 --> @Cikaros commented on GitHub (Jul 7, 2025): This configuration ensures that in an internal network scenario, closing the Netbird VPN can restore the mapping relationship of home.yourdomain.com, ensuring normal access within the internal network. At the same time, it also ensures that in an external environment, logging into the Netbird VPN can change the mapping relationship of home.yourdomain.com, allowing it to function normally in external network environments.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8737