netbirdio / netbird

Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
9.83k stars 425 forks source link

DNS Issue with MacOS Firewall and Netbird #2219

Open ykorzikowski opened 4 days ago

ykorzikowski commented 4 days ago

First, I really like seeing this project getting more stable every day :)

Describe the problem

Setup: A Bind DNS Server for resolving internal dns A records. With enabled MacOS Firewall, I can not resolve this internal dns records.

Maybe related to #608

I can not resolve

To Reproduce

  1. Having a custom dns configured in netbird
  2. Enabling the macos firewall
  3. Netbird should ask for permission
  4. problems resolving the custom dns entries

Expected behavior

Records should be resolved.

Are you using NetBird Cloud?

Self Hosted Netbird netbird:

https://hub.docker.com/r/netbirdio/management/tags

server: 0.27.7
coturn: 4
# https://hub.docker.com/r/netbirdio/dashboard
dashboard_ng: v2.3.0

NetBird version

0.28.3

NetBird status -d output:

Because its working after I disable the firewall, I don't think its an issue of netbird itself.

Screenshots

Screenshot 2024-07-01 at 09 35 56 Screenshot 2024-07-01 at 09 36 19 image Screenshot 2024-07-01 at 09 39 19 Screenshot 2024-07-01 at 09 38 36

Additional context

ykorzikowski commented 3 days ago

Some update: I notice this behavior does not occur on my other macbook. So maybe its a bug in macOS itself.

I notice, even with disabled firewall I get this problem after a clean reboot, but changing the firewall state by turning it on will fix the dns issue.