]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
firewall: Move the IPS back to INPUT/FORWARD/OUTPUT
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Sep 2024 02:04:07 +0000 (04:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Sep 2024 08:44:24 +0000 (08:44 +0000)
We cannot use the PREROUTING/POSTROUTING chains here because Suricata
will fail to track NAT-ed connections.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/firewall

index 7dbbe38cb334d110341291c736eeb1a605f5e58a..ab4833a7f1df7851995dbdb8c046e211c37e472e 100644 (file)
@@ -378,7 +378,7 @@ iptables_init() {
        # IPS (Suricata) chains
        iptables -t mangle -N IPS
 
-       for chain in PREROUTING POSTROUTING; do
+       for chain in INPUT FORWARD OUTPUT; do
                iptables -t mangle -A "${chain}" -j IPS
        done