Skip to content

Commit

Permalink
unbound: Add AF_NETLINK to allowed address families.
Browse files Browse the repository at this point in the history
Unbound throws the following error:

--8<---------------cut here---------------start------------->8---
error: failed to list interfaces: getifaddrs: Address family not supported by protocol
fatal error: could not open ports
--8<---------------cut here---------------end--------------->8---

The solution is pulled from upstream:
NLnetLabs/unbound#351

(cherry picked from commit 3cd1a67)
  • Loading branch information
Peng Mei Yu authored and WilliButz committed Apr 29, 2021
1 parent f228b3f commit 823e127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/unbound.nix
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ in
RuntimeDirectory = "unbound";
ConfigurationDirectory = "unbound";
StateDirectory = "unbound";
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ];
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_NETLINK" "AF_UNIX" ];
RestrictRealtime = true;
SystemCallArchitectures = "native";
SystemCallFilter = [
Expand Down

0 comments on commit 823e127

Please sign in to comment.