]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/system/firewall
firewall: Use seperate firewall chains for passing traffic to the IPS
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / firewall
index be6c9169f36ff42c125e860b8d9be87c88663a4b..da89857d8b17b75dbeda6515745d5068d9869204 100644 (file)
@@ -186,10 +186,12 @@ iptables_init() {
        iptables -A FORWARD -j GUARDIAN
 
        # IPS (suricata) chains
-       iptables -N IPS
-       iptables -A INPUT -j IPS
-       iptables -A FORWARD -j IPS
-       iptables -A OUTPUT -j IPS
+       iptables -N IPS_INPUT
+       iptables -N IPS_FORWARD
+       iptables -N IPS_OUTPUT
+       iptables -A INPUT -j IPS_INPUT
+       iptables -A FORWARD -j IPS_FORWARD
+       iptables -A OUTPUT -j IPS_OUTPUT
 
        # Block non-established IPsec networks
        iptables -N IPSECBLOCK