hosts: Add firewall

This commit is contained in:
PapaTutuWawa 2021-09-11 20:06:19 +02:00
parent c6bf13e9a1
commit 500284c1cf

View File

@ -55,6 +55,16 @@ let
"${network.nishimiya}" = [ "nishimiya.local" ];
"${network.ayame}" = [ "ayame.local" ];
"${network.tamaki}" = [ "tamaki.local" ];
"${network.mashu}" = [ "mashu.local" ];
};
firewall = {
enable = true;
extraCommands = lib.concatStringsSep "\n"
(map (item: "iptables -A INPUT --source ${item} -j ACCEPT")
(with network; [
miku nishimiya tamaki ayame mashu
]));
};
};