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