networking.firewall.enable = true; in NixOS enables the firewall, which uses iptables by default along with the nixos-firewall-tool.
Netbird uses nf_tables kernel module to set up IP rules, while the system uses iptables for firewall. This causes an issue where the Netbird routing table is removed from the rule list after resuming the system from suspend.
I have confirmed that switching to nftables for firewall fixes the issue, while having no side-effects with the NixOS firewall setup.
networking.firewall.enable = true;
in NixOS enables the firewall, which usesiptables
by default along with thenixos-firewall-tool
.Netbird uses
nf_tables
kernel module to set up IP rules, while the system usesiptables
for firewall. This causes an issue where the Netbird routing table is removed from the rule list after resuming the system from suspend.I have confirmed that switching to
nftables
for firewall fixes the issue, while having no side-effects with the NixOS firewall setup.