Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dns & firewall configuration question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nihilo
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 168
Location: berkeley, ca, usa

PostPosted: Sun Dec 29, 2002 5:02 am    Post subject: dns & firewall configuration question Reply with quote

I've checked google and the forums for firewall configuration to allow dns, but I cannot seem to get my firewall (iptables) configured properly so that the dns queries can get out and in. I have tried opening ports 53, 67, and 68, but dns still sometimes does not work. Stopping the firewall immediately fixes the problem. I have a cable modem (at&t broadband). Any other at&t broadband customers who could tell me how they have their firewall configured to use at&t's dns servers (which ports, protocols, etc.)??

thanks...
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sun Dec 29, 2002 5:34 am    Post subject: Reply with quote

Make sure port 53, UDP, can get in and out. Are you simply firewalling or doing some NAT as well?
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Xor
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2002
Posts: 144

PostPosted: Sun Dec 29, 2002 3:37 pm    Post subject: Reply with quote

my advise

these apply for TCP and UDP and are meant to be used in a statefull firewall

outbound: from highports and dns port to dns port
inbound: to dns port from highports and dns port

regards
xor
Back to top
View user's profile Send private message
TrippyZ
n00b
n00b


Joined: 04 Dec 2002
Posts: 38

PostPosted: Sun Dec 29, 2002 8:16 pm    Post subject: Reply with quote

Please post a copy of your setup script, or the output of iptables-save.

In the meantime, you only need to let the query out with a '-p udp --dport 53', as you usually let the replies reenter through a ' ESTABLISHED, RELATED -j ALLOW'

I alway like to have a sniff with tcpdump anyhow just to find out a bit more of whats going on.
Back to top
View user's profile Send private message
nihilo
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 168
Location: berkeley, ca, usa

PostPosted: Mon Dec 30, 2002 10:36 pm    Post subject: thanks, success Reply with quote

thanks for the help. I am using kmyfirewall, and it seems that the new script (with dns ports open) wasn't being used after all. Now that I made sure that outbound on 53 is allowed, it seems to be working.

thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum