#!/bin/sh
PORTS="1024:65535"
LOCALIP="xxx.xxx.xxx.xxx"
LOCALNET="xxx.xxx.xxx.xxx/xx"
ANYNET="0.0.0.0/0"
LOOP="127.0.0.1"
EXEC="/sbin/ipchains"
#Flush all rules (allow all)
$EXEC -F
# Allow DNS connection from anywhere
$EXEC -A input -p TCP -s $ANYNET 53 -d $LOCALIP 53
-j ACCEPT
$EXEC -A input -p UDP -s $ANYNET 53 -d $LOCALIP 53
-j ACCEPT
$EXEC -A input -p TCP -s $ANYNET 53 -d $LOCALIP $PORTS
-j ACCEPT
$EXEC -A input -p UDP -s $ANYNET 53 -d $LOCALIP $PORTS
-j ACCEPT
As far as I know there's nothing wroug with these settings. When I up
the firewall up everything seems to working fine locally and other
networks in Hong Kong but when I use a machine in the US, I can't query
the server in Hong Kong using nslookup while the firewall is up. When
I disable the firewall then everything works fine.
What could be causing this problem? Any ideas or solusions?
Your help is highly appreciated. Many thanks.
Kent.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/