]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
iptables: Create guardian's chains after the CUSTOM* chains.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2013 13:38:39 +0000 (15:38 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:15:32 +0000 (14:15 +0200)
src/initscripts/init.d/firewall

index 33afbef7f7df631171eca3da771ec9d5ba7a46fb..1cbca2db8508a4560aef37fb2e3bb7238921ccd2 100644 (file)
@@ -83,9 +83,6 @@ iptables_init() {
        # CUSTOM chains, can be used by the users themselves
        /sbin/iptables -N CUSTOMINPUT
        /sbin/iptables -A INPUT -j CUSTOMINPUT
-       /sbin/iptables -N GUARDIAN
-       /sbin/iptables -A INPUT -j GUARDIAN
-       /sbin/iptables -A FORWARD -j GUARDIAN
        /sbin/iptables -N CUSTOMFORWARD
        /sbin/iptables -A FORWARD -j CUSTOMFORWARD
        /sbin/iptables -N CUSTOMOUTPUT
@@ -99,6 +96,11 @@ iptables_init() {
        /sbin/iptables -t nat -A POSTROUTING -j CUSTOMPOSTROUTING
        /sbin/iptables -t nat -A POSTROUTING -j OVPNNAT
 
+       # Guardian (IPS) chains
+       /sbin/iptables -N GUARDIAN
+       /sbin/iptables -A INPUT -j GUARDIAN
+       /sbin/iptables -A FORWARD -j GUARDIAN
+
        # Block OpenVPN transfer networks
        /sbin/iptables -N OVPNBLOCK
        for i in INPUT FORWARD OUTPUT; do