master
parent
58cadfeca3
commit
2a85eecd82
|
@ -38,8 +38,8 @@ echo -n "Adding blocked IPs: "
|
||||||
if [ $BLOCKEDIP ]; then
|
if [ $BLOCKEDIP ]; then
|
||||||
for i in `grep -v "\#" $BLOCKEDIP`; do
|
for i in `grep -v "\#" $BLOCKEDIP`; do
|
||||||
echo -n "$i"
|
echo -n "$i"
|
||||||
$IPTABLES -A INPUT -s $i -j DENY
|
$IPTABLES -A INPUT -s $i -j DROP
|
||||||
$IPTABLES -A OUTPUT -d $i -j DENY
|
$IPTABLES -A OUTPUT -d $i -j DROP
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue