Added some ClamAV configuration, needs more research. Try to get nextcloud to be able to connect to itself.

This commit is contained in:
Raphaël Numbus
2026-02-27 17:24:16 +01:00
parent 346c2094a9
commit d9ee1967fd
2 changed files with 42 additions and 0 deletions
+8
View File
@@ -9,5 +9,13 @@
allowedTCPPorts = [ 53 80 443 ];
allowedUDPPorts = [ 53 443 ];
};
extraCommands = ''
# Accept HTTPS from podman network
${pkgs.nftables}/bin/nft add rule inet filter input ip saddr 10.89.0.0/16 tcp dport 443 ct state new,established accept || true
${pkgs.nftables}/bin/nft add rule inet filter input ip saddr 192.168.11.0/24 tcp dport 443 ct state new,established accept || true
${pkgs.nftables}/bin/nft add rule inet filter input ip saddr 192.168.27.0/24 tcp dport 443 ct state new,established accept || true
# Accept established responses
${pkgs.nftables}/bin/nft add rule inet filter input ct state established,related accept || true
'';
};
}