Forward Firewall: reordered some rules to get rid of INPUT_DROP messages in log when connected to webinterface

This commit is contained in:
Alexander Marx
2013-04-30 08:13:54 +02:00
committed by Michael Tremer
parent 04abd8d958
commit 3e79f33fc2

View File

@@ -303,11 +303,10 @@ case "$1" in
if [ -x /etc/sysconfig/firewall.local ]; then
/etc/sysconfig/firewall.local stop
fi
/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