Oops, wrong order of options
parent
87f9cb929c
commit
bb17458fb4
|
@ -182,7 +182,7 @@ if [ $BLOCKEDIP ]; then
|
|||
FWD) DIRECTION="FORWARD" ;;
|
||||
*) DIRECTION="INPUT" ;;
|
||||
esac
|
||||
${IPTABLES} -A ${DIRECTION} ${SRCIF} ${SRCIP} ${SRCPORT} ${DSTIF} ${DSTIP} ${DSTPORT} ${PROTO} -j DROP
|
||||
${IPTABLES} -A ${DIRECTION} ${PROTO} ${SRCIF} ${SRCIP} ${SRCPORT} ${DSTIF} ${DSTIP} ${DSTPORT} -j DROP
|
||||
else
|
||||
$IPTABLES -A INPUT -s $i -j DROP
|
||||
$IPTABLES -A OUTPUT -d $i -j DROP
|
||||
|
|
Loading…
Reference in New Issue