mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
Forward Firewall: changed order of LOG and DROP rules for INPUT Chain
This commit is contained in:
committed by
Michael Tremer
parent
d9b691e18e
commit
e41b651b4a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user