netbirdio / docs

BSD 3-Clause "New" or "Revised" License
11 stars 49 forks source link

docs: add note for NixOS installation #212

Closed Thunderbottom closed 3 months ago

Thunderbottom commented 3 months ago

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.

Thunderbottom commented 3 months ago

Will do some more testing and reopen.