nixos/netbird: openFirewall for remote DNS resolver
This commit is contained in:
parent
fdc7bb0f4f
commit
70e91e0956
@ -12,6 +12,7 @@ let
|
|||||||
escapeShellArgs
|
escapeShellArgs
|
||||||
filterAttrs
|
filterAttrs
|
||||||
getExe
|
getExe
|
||||||
|
listToAttrs
|
||||||
literalExpression
|
literalExpression
|
||||||
maintainers
|
maintainers
|
||||||
makeBinPath
|
makeBinPath
|
||||||
@ -471,6 +472,16 @@ in
|
|||||||
toClientList (client: optional client.openFirewall client.port)
|
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 (
|
systemd.network.networks = mkIf config.networking.useNetworkd (
|
||||||
toClientAttrs (
|
toClientAttrs (
|
||||||
client:
|
client:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user