From e41b651b4a3b79bb072ac94835e96432ac1968dd Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 17 Jun 2013 10:21:24 +0200 Subject: [PATCH 1/1] Forward Firewall: changed order of LOG and DROP rules for INPUT Chain --- src/initscripts/init.d/firewall | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/initscripts/init.d/firewall b/src/initscripts/init.d/firewall index a7d258a56..5a8cfb171 100644 --- a/src/initscripts/init.d/firewall +++ b/src/initscripts/init.d/firewall @@ -283,11 +283,10 @@ case "$1" in /usr/sbin/firewall-policy - /sbin/iptables -A INPUT -j DROP -m comment --comment "DROP_INPUT" - if [ "$DROPINPUT" == "on" ]; then /sbin/iptables -A INPUT -m limit --limit 10/minute -j LOG --log-prefix "DROP_INPUT" fi + /sbin/iptables -A INPUT -j DROP -m comment --comment "DROP_INPUT" if [ "$DROPFORWARD" == "on" ]; then /sbin/iptables -A FORWARD -m limit --limit 10/minute -j LOG --log-prefix "DROP_FORWARD" fi -- 2.39.2