Allow internet access to DNS Server public address. Lets go ahead and create the rules needed.
Lets Create the nat dns Chain :
sudo iptables -N dns
!
Allow local access to NaT traffic out to internet DNS Servers.
Allow POSTROUTING Chain, DNS Traffic to jump to Chain dns
!
sudo iptables -I POSTROUTING 19 -i eth0 -s 10.10.0.0/16 -p udp -m udp –dport 53 –j dns
!
Allow local access to Public DNS Server to ACCEPT :
sudo iptables –I dns -i eth1 -d 80.84.86.80 -p udp -m udp –dport 53 –j ACCEPT
sudo iptables -I dns -i eth1 -d 80.84.86.81 -p udp -m udp –dport 53 -j ACCEPT
Comments
(There are currently no comments for this post.)