View Full Version : Firewall Problem
gazza1201
10th of January 2010 (Sun), 19:20
I'm trying to set-up a DNS server on my own (Debian Linux) server.
It works, providing I turn off the firewall - not an option!
So, I need a rule that allows DNS.
Does anyone know what that is?
Web searches haven't provided an answer.
Thanks
Gary.
wyofizz
10th of January 2010 (Sun), 19:37
That would depend on your firewall.
gazza1201
10th of January 2010 (Sun), 19:48
IPTABLES controlled with shorewall.
alduin
10th of January 2010 (Sun), 21:28
You need a rule that allows incoming connections on tcp/udp port 53.
tim
11th of January 2010 (Mon), 00:45
You may need to open the firewall so the dns server can talk to the next level DNS server, as well as allowing your PCs to query your DNS.
I probably wouldn't bother, personally. My router does DNS, it might cache some, it might not. My ISPs DNS servers are fast enough it doesn't matter.
gazza1201
11th of January 2010 (Mon), 07:38
Port 53 is open
S.Wood
11th of January 2010 (Mon), 07:54
I don't use shorewall, so this is just a guess based on a web search, but it seems this should do it assuming your zone names are the same
loc = local network
fw = firewall
ACCEPT loc fw udp 53
If you're answering queries from outside, perhaps:
ACCEPT net fw udp 53
I got this here: http://wiki.debian.org/HowTo/shorewall
Hope this helps.
Fenster
11th of January 2010 (Mon), 12:19
Your best bet would be to use Shorewall rather than working with iptables directly - as I remember from hard experience is it very easy to set a default of blocking all traffic.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.