r/netbird • u/truedevops • 4d ago
macOS client drops the exit node while the Mac sleeps, and dark wakes go out with the real IP
I run a self-hosted NetBird and use an exit node on a MacBook. With the lid closed, traffic leaves through Wi-Fi with my real IP instead of the exit node.
The reason is that the client runs a full down when macOS goes to sleep and comes back up only on a full wake. While the lid is closed macOS still wakes in the background for Power Nap and TCP keepalive, and the client does not react to those. During each of these wakes there is no tunnel and no route to the exit node.
I measured it twice by logging the default route once a second. On 0.82.0 the Mac spent 182 seconds online outside the tunnel in 24 minutes. On 0.83.2 it was 120 seconds in 64 minutes. The official WireGuard app on the same Mac keeps its route across sleep.
I opened a feature request for a fail-closed option, with log lines and the route trace. If you see the same, an upvote or a comment there would help.
https://github.com/netbirdio/netbird/discussions/8713
Until then, sudo pmset -a powernap 0 tcpkeepalive 0 womp 0 removes the background network activity. A few seconds at lid close and lid open remain.
Has anyone found a better workaround?
1
u/Rygor99 4d ago
I recently started having an issue where I have to disable then enable netbird when coming back from sleep or else no traffic makes it out to the internet. I’m using the brew version