tobyheywood
IS-IT--Management
Hi all,
I am running a RH7 box which provides DNS (cacheing only), routing and firewall services. I have setup the following iptable rules
iptables -A INPUT -i eth1 -p tcp -m tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp -m tcp --dport 21 -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 53 -j ACCEPT
iptables -A INPUT -j DROP
In theory should the above not allow domain name resolution? If I remove the DROP rule DNS resolution works fine from within the network but not if the drop rule exists.
Do I need to setup a rule with the FORWARD table to allow connections through? Having said that I don't see why I should, as my Linux box is used for network wide DNS services.
Should it not be a case that the client talks to the server, the server then tries to resolve the name and returns the result to the client? If so there should be no need for anything in the FORWARD table.
I would be greatful if someone can suggestion what it is that I am doing wrong.
Thanks in advance and Merry Xmas.
Regards
Toby Heywood
I am running a RH7 box which provides DNS (cacheing only), routing and firewall services. I have setup the following iptable rules
iptables -A INPUT -i eth1 -p tcp -m tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp -m tcp --dport 21 -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 53 -j ACCEPT
iptables -A INPUT -j DROP
In theory should the above not allow domain name resolution? If I remove the DROP rule DNS resolution works fine from within the network but not if the drop rule exists.
Do I need to setup a rule with the FORWARD table to allow connections through? Having said that I don't see why I should, as my Linux box is used for network wide DNS services.
Should it not be a case that the client talks to the server, the server then tries to resolve the name and returns the result to the client? If so there should be no need for anything in the FORWARD table.
I would be greatful if someone can suggestion what it is that I am doing wrong.
Thanks in advance and Merry Xmas.
Regards
Toby Heywood