Minor tweaks

master
bbruns 2010-08-22 02:23:51 +00:00
parent 1d9ce04f06
commit ff9c601d22
1 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,8 @@ if [ "$BLOCKTCPPORTS" ] || [ "$BLOCKUDPPORTS" ]; then
if [ "$BLOCKTCPPORTS" ]; then
for i in $BLOCKTCPPORTS; do
echo -en "\E[35mTCP\E[37m/\E[32m$i "
#echo -en "\E[35mTCP\E[37m/\E[32m$i "
echo -en "${PURPLE}TCP${DEFAULT_COLOR}/${GREEN}$i "
$IPTABLES -A OUTPUT -p tcp --dport $i --syn -j DROP
if [ "$NATRANGE" ]; then
for src in $NATRANGE; do
@ -162,7 +163,8 @@ if [ "$BLOCKTCPPORTS" ] || [ "$BLOCKUDPPORTS" ]; then
fi
if [ "$BLOCKUDPPORTS" ]; then
for i in $BLOCKUDPPORTS; do
echo -en "\E[34mUDP\E[37m/\E[32m$i "
#echo -en "\E[34mUDP\E[37m/\E[32m$i "
echo -en "${BLUE}UDP${DEFAULT_COLOR}/${GREEN}$i "
$IPTABLES -A OUTPUT -p udp --dport $i -j DROP
if [ "$NATRANGE" ]; then
for src in $NATRANGE; do