nixos/netbird: openFirewall for remote DNS resolver

This commit is contained in:
Krzysztof Nazarewski 2025-06-26 11:55:00 +02:00
parent fdc7bb0f4f
commit 70e91e0956
No known key found for this signature in database
GPG Key ID: 985C1ACE088CC9F4

View File

@ -12,6 +12,7 @@ let
escapeShellArgs
filterAttrs
getExe
listToAttrs
literalExpression
maintainers
makeBinPath
@ -471,6 +472,16 @@ in
toClientList (client: optional client.openFirewall client.port)
);
# Ports opened on a specific
networking.firewall.interfaces = listToAttrs (
toClientList (client: {
name = client.interface;
value.allowedUDPPorts = optionals client.openFirewall [
5353 # required for the DNS forwarding/routing to work
];
})
);
systemd.network.networks = mkIf config.networking.useNetworkd (
toClientAttrs (
client: