hosts: Add firewall
This commit is contained in:
parent
c6bf13e9a1
commit
500284c1cf
@ -55,6 +55,16 @@ let
|
|||||||
"${network.nishimiya}" = [ "nishimiya.local" ];
|
"${network.nishimiya}" = [ "nishimiya.local" ];
|
||||||
"${network.ayame}" = [ "ayame.local" ];
|
"${network.ayame}" = [ "ayame.local" ];
|
||||||
"${network.tamaki}" = [ "tamaki.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
|
||||||
|
]));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user