I haven't gotten around to learning iptables yet, so I need some help on writing some rules to allow DNS queries to pass through the firewall. I'm running BIND 9.1.3 and iptables 1.2.3 on a Red Hat 7.2 box. I thought that you only needed to allow tcp port 53 through, but I've been reading that you also need to allow some other ports through for queries. This is the only rule that I've written for BIND so far…
/sbin/iptables -A INPUT -i eth0 -s 0/0 -d 0/0 -p tcp --dport 53 -j ACCEPT
Thanks for your help.
/sbin/iptables -A INPUT -i eth0 -s 0/0 -d 0/0 -p tcp --dport 53 -j ACCEPT
Thanks for your help.