This commit is contained in:
commit
30ce0dafc2
195 changed files with 8902 additions and 0 deletions
14
services/bind/firewall.nix
Normal file
14
services/bind/firewall.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.machine.bind;
|
||||
in
|
||||
with lib; mkIf cfg.enable {
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ cfg.port ];
|
||||
allowedUDPPorts = [ cfg.port ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue