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
  • Loading branch information
Peng Mei Yu committed Dec 8, 2020
1 parent 652b3fa commit 3cd1a67
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 @@ -195,7 +195,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 3cd1a67

Please sign in to comment.