fix: firewall rules for forward

This commit is contained in:
Patrick 2024-12-27 17:50:44 +01:00
parent 423e8477ea
commit 2c8b67b8f9
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 4 additions and 5 deletions

View file

@ -1558,11 +1558,10 @@
"locked": {
"lastModified": 1734643696,
"narHash": "sha256-W5JSWhhThI9erzhZmpHy1gZGwSxEGPKYmOUBEXH/WGA=",
"ref": "refs/heads/main",
"owner": "oddlama",
"repo": "nixos-extra-modules",
"rev": "6a4736e0773a1852b0b6c5f71cbe96dd39c3caf1",
"revCount": 40,
"type": "git",
"url": "file:///home/patrick/repos/nix/nixos-extra-modules"
"type": "github"
},
"original": {
"owner": "oddlama",

View file

@ -43,7 +43,7 @@ let
"home"
];
to = [ service ];
"allowed${toUpper protocol}Ports" = ports;
"allowed${toUpper protocol}Ports" = if fport != null then [ fport ] else ports;
};
};
};