mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
firewall: Move the IPS back to INPUT/FORWARD/OUTPUT
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user