Skip to contentSkip to conversation

Iptables Problem on DNS Server

DISCUSSION Antony Stone 2 participants 2 messages Jun 22, 2002 – Jun 23, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

--__--__--
Message: 2
From: Antony Stone <[email protected]>
Organization: Software Solutions
To: <[email protected]>
Subject: Re: Iptables Problem on DNS Server
Date: Sat, 22 Jun 2002 14:39:14 +0100

Quoted 2 lines · Joe de Vera Jr.
Quoted 2 lines · Joe de Vera Jr.
Quoted 1 line

here's my ruleset in my machine... seen anything wrong or lacking

here?

Quoted 1 line
Quoted 1 line
Quoted 1 line

just to remind you guys my problem is that.. when my firewall is

running

Quoted 11 lines
Quoted 8 lines
Quoted 1 line

my DNS don't work... thanks!

Can we just clarify that last bit ?

Do you mean that your firewall cannot resolve names by contacting an external
DNS server, or that you are running DNS on your firewall, and other machines cannot contact *it* as a DNS server ?

yep,, i'm running DNS on that machine also.. an that exactly my client can't resolve from it.. so all the DNS record on that server can't

function

Quoted 1 line

due to this problem.. so i force not to run a firewall for a meantime...

Okay - the answer is simple, then. You have no rule allowing udp packets
into the machine on port 53.

Antony.

oic... so now how will i going to add that udp packets allow to my ruleset? what parameter that i supposed to put on my iptables command...

thanks in advance...

joe

#2 lore raw
Quoted 7 lines · Joe de Vera
Quoted 4 lines

From: Antony Stone <[email protected]>

Okay - the answer is simple, then. You have no rule allowing udp packets
into the machine on port 53.

oic... so now how will i going to add that udp packets allow to my ruleset? what parameter that i supposed to put on my iptables command...

In the middle of your listing earlier was:

ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:53 state NEW

which must be from a rule something like:

iptables -A INPUT -p tcp --dport 53 -m state --state NEW -j ACCEPT

find that rule, copy it, and change the tcp for a udp:

iptables -A INPUT -p udp --dport 53 -m state --state NEW -j ACCEPT

Antony.