ndelo
11-29-2000, 04:16 PM
I am having problems setting up DNS rules for ipchains on my machine. Here is the problem. I have set the default policy to deny all. Then I began setting up the rules as I need them--http, smtp, pop, outbound icmp (tracerout, fragmentation-needed, ping) etc. No problems at all. Then, when I set up rules for DNS I encounted massive packet loss. I am a client of my ISP's name servers. My rules go as follows--
ipchains -A output -i $EXTERNAL_NIC -p udp -s $IPADDR $UNPRIVPORTS -d $NS_1 53 -j ACCEPT
ipchains -A input -i $EXTERNAL_NIC -p udp -s $NS_1 53 -d $IPADDR $UNPRIVPORTS -j ACCEPT
In addition, I have rules set up for the occasional tcp lookup. Now, after installing these chains, I experience about 80% packet loss when trying to ping a machine next to me on the LAN. Not to mention that I ping it by its ip address and not its host name. And ,when I comment out the above DNS rules, the packet loss with ping stops. Also, no packet loss when pinging that machine from any other machine on the LAN. The problem is specific to my Linux box. Any suggestions. Am I setting up the client-side DNS chains wrong? And how would this effect ping when it runs on icmp and not udp? Host lookup works with these rules but not the way it should. Please help.
ipchains -A output -i $EXTERNAL_NIC -p udp -s $IPADDR $UNPRIVPORTS -d $NS_1 53 -j ACCEPT
ipchains -A input -i $EXTERNAL_NIC -p udp -s $NS_1 53 -d $IPADDR $UNPRIVPORTS -j ACCEPT
In addition, I have rules set up for the occasional tcp lookup. Now, after installing these chains, I experience about 80% packet loss when trying to ping a machine next to me on the LAN. Not to mention that I ping it by its ip address and not its host name. And ,when I comment out the above DNS rules, the packet loss with ping stops. Also, no packet loss when pinging that machine from any other machine on the LAN. The problem is specific to my Linux box. Any suggestions. Am I setting up the client-side DNS chains wrong? And how would this effect ping when it runs on icmp and not udp? Host lookup works with these rules but not the way it should. Please help.