This commit is contained in:
soraefir
2026-05-08 01:18:02 +02:00
parent c55b06cca9
commit 65e3568072
2 changed files with 2 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ in{
ct state established,related accept
iifname "lo" accept
tcp dport {22} accept
${if cfg.db then ''tcp dport {5432, 6379} ip saddr { 10.0.0.0/8, 169.254.0.0/16 } accept'' else ""}
${if builtins.length cfg.db > 0 then ''tcp dport {5432, 6379} ip saddr { 10.0.0.0/8, 169.254.0.0/16 } accept'' else ""}
${if cfg.web then ''tcp dport {80, 443} accept
udp dport {80, 443} accept'' else ""}