nixos/netbird: openFirewall for remote DNS resolver
This commit is contained in:
parent
fdc7bb0f4f
commit
70e91e0956
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user