bruns@2mbit.com 2009-08-30 00:54:17 +00:00
parent 58cadfeca3
commit 2a85eecd82
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ echo -n "Adding blocked IPs: "
if [ $BLOCKEDIP ]; then
for i in `grep -v "\#" $BLOCKEDIP`; do
echo -n "$i"
$IPTABLES -A INPUT -s $i -j DENY
$IPTABLES -A OUTPUT -d $i -j DENY
$IPTABLES -A INPUT -s $i -j DROP
$IPTABLES -A OUTPUT -d $i -j DROP
done
fi