Re: iptables blocks dns

Posted by TrevorH on 2011/12/8 20:31:48
Quote:

iptables -A OUTPUT -p udp -o eth0 --dport 53 --sport 1024:65535 -j ACCEPT
iptables -A INPUT -p udp -i eth0 --sport 53 --dport 1024:65535 -j ACCEPT


If these rules are on a DNS server then they are the wrong way round (your INPUT rule should be your OUTPUT rule and vice versa).

This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=55&topic_id=34640&post_id=148986