Tring to setup my firewall for my lan as a DNS server!
Hi,
Ok i have a simple LAN. I have one machine connected to the INTERNET running Redhat 7.3(2.4.20) with iptables 1.2.7a (Firewall+Router) and 2 windows machines behind it(192.168.0.10 and 192.168.0.11)also with internet access. But the windows machines have there configuration set up soo that there DNS server is the ISP DNS servers 207.12.67.100
But i have the firewall machine set up as a DNS server. Sooo i want the windows machines to have the firewall machine as there DNS server.
What would be an example rule set for iptables for this? Soo the DNS request go from the windows machines to the Firewall machine instead of directly going to the internet!
Thanks
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Umm,
Why dont you just point the Windows machines DNS settings to your Redhat box's IP? No rules needed.
Eric
Quoted 21 lines · Silkk
Hi,
Ok i have a simple LAN. I have one machine connected to the INTERNET running Redhat 7.3(2.4.20) with iptables 1.2.7a (Firewall+Router) and 2 windows machines behind it(192.168.0.10 and 192.168.0.11)also with internet access. But the windows machines have there configuration set up soo that there DNS server is the ISP DNS servers 207.12.67.100
But i have the firewall machine set up as a DNS server. Sooo i want the windows machines to have the firewall machine as there DNS server.
What would be an example rule set for iptables for this? Soo the DNS request go from the windows machines to the Firewall machine instead of directly going to the internet!Thanks
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Quoted 4 lines
Umm,
Why dont you just point the Windows machines DNS settings to your Redhat
box's IP? No rules needed.
Except if he has default policy DROP on the INPUT chain, not having port 53 open.
Then you'd need :
# iptables -A INPUT -i <if_lan> -p udp --dport 53 -j ACCEPT You could also open port 53/tcp but AFAIK it will probably work just fine only using 53/udp.
Rob