nixos-module/firewall: fix allowing ospf on routers

This commit is contained in:
Astro 2024-02-05 03:52:02 +01:00
parent 19527e47fd
commit 65127a79aa
1 changed files with 3 additions and 4 deletions

View File

@ -3,12 +3,11 @@
let
hostConfig = config.site.hosts.${hostName};
in
lib.mkIf hostConfig.firewall.enable {
networking.firewall = {
in {
networking.firewall = lib.mkIf hostConfig.firewall.enable {
enable = true;
extraCommands = ''
${lib.optional hostConfig.isRouter ''
${lib.optionalString hostConfig.isRouter ''
ip46tables -I nixos-fw -p ospfigp -j ACCEPT
''}