bruns@2mbit.com 2010-06-22 05:27:02 +00:00
parent 7b1d7069c0
commit 8dc8c646c1
1 changed files with 4 additions and 4 deletions

View File

@ -101,8 +101,8 @@ if [ "$BLOCKTCPPORTS" ] || [ "$BLOCKUDPPORTS" ]; then
echo -en "\E[35mTCP\E[37m/\E[32m$i "
$IPTABLES -A OUTPUT -p tcp --dport $i --syn -j DROP
if [ "$NATRANGE" ]; then
for i in $NATRANGE; do
$IPTABLES -A FORWARD -p tcp -s $i --dport $i --syn -j DROP
for src in $NATRANGE; do
$IPTABLES -A FORWARD -p tcp -s $src --dport $i --syn -j DROP
done
fi
done
@ -112,8 +112,8 @@ if [ "$BLOCKTCPPORTS" ] || [ "$BLOCKUDPPORTS" ]; then
echo -en "\E[34mUDP\E[37m/\E[32m$i "
$IPTABLES -A OUTPUT -p udp --dport $i -j DROP
if [ "$NATRANGE" ]; then
for i in $NATRANGE; do
$IPTABLES -A FORWARD -p udp -s $i --dport $i -j DROP
for src in $NATRANGE; do
$IPTABLES -A FORWARD -p udp -s $src --dport $i -j DROP
done
fi
done