* dns replies (udp) blocked but why ?
@ 2003-08-25 12:57 Tom Van Overbeke
2003-08-25 13:36 ` Ramin Dousti
0 siblings, 1 reply; 3+ messages in thread
From: Tom Van Overbeke @ 2003-08-25 12:57 UTC (permalink / raw)
To: Netfilter (E-mail)
Hi,
I'm seeing a lot of these messages in my iptables logs lately:
Aug 25 14:46:21 dobermann kernel: -drop_the_rest-IN= OUT=eth1 SRC=172.21.3.1
DST=172.21.3.10 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=53
DPT=3412 LEN=42
however, the iptables config should accept it:
i have this rule on the firewall (which is also the dns server, hence the
'INPUT')
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -p udp -s 172.21.0.0/16 --source-port
024:65535 --destination-port 53 -m state --state NEW -j ACCEPT
the 172.21.3.10 is the only one causing problems, i noticed howerver that
this is udp, whereas most dns related traffic i can see is tcp.
could it be a connection tracking problem ?
thx,
Tom.
PS. iptables is 1.2.4 (on redhat advanced server 2.1)
****************************************************************************
Disclaimer:
This electronic transmission and any files attached to it are strictly
confidential and intended solely for the addressee. If you are not
the intended addressee, you must not disclose, copy or take any
action in reliance of this transmission. If you have received this
transmission in error, please notify the sender by return and delete
the transmission. Although the sender endeavors to maintain a
computer virus free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages
resulting from any virus transmitted.
Thank You.
****************************************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dns replies (udp) blocked but why ?
2003-08-25 12:57 dns replies (udp) blocked but why ? Tom Van Overbeke
@ 2003-08-25 13:36 ` Ramin Dousti
2003-08-25 14:00 ` Tom Van Overbeke
0 siblings, 1 reply; 3+ messages in thread
From: Ramin Dousti @ 2003-08-25 13:36 UTC (permalink / raw)
To: Tom Van Overbeke; +Cc: Netfilter (E-mail)
On Mon, Aug 25, 2003 at 02:57:35PM +0200, Tom Van Overbeke wrote:
> Hi,
>
> I'm seeing a lot of these messages in my iptables logs lately:
>
> Aug 25 14:46:21 dobermann kernel: -drop_the_rest-IN= OUT=eth1 SRC=172.21.3.1
> DST=172.21.3.10 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=53
> DPT=3412 LEN=42
>
>
> however, the iptables config should accept it:
>
> i have this rule on the firewall (which is also the dns server, hence the
> 'INPUT')
>
> $IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> $IPTABLES -A INPUT -p udp -s 172.21.0.0/16 --source-port
> 024:65535 --destination-port 53 -m state --state NEW -j ACCEPT
I can't understand the topology of your network and what 172.21.0.0/16
should represent but a server to server query might be from port 53.
Why are you filtering based on the source port?
>
> the 172.21.3.10 is the only one causing problems, i noticed howerver that
> this is udp, whereas most dns related traffic i can see is tcp.
Most DNS traffic you see should be UDP though. Why are you seeing more
TCP than UDP?
> could it be a connection tracking problem ?
If 172.21.3.10 is too slow in replying and the reply time exceeds the
UDP conntrack timeout you'd see this behaviour. Maybe that's the reason.
Ramin
>
>
>
> thx,
>
>
> Tom.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: dns replies (udp) blocked but why ?
2003-08-25 13:36 ` Ramin Dousti
@ 2003-08-25 14:00 ` Tom Van Overbeke
0 siblings, 0 replies; 3+ messages in thread
From: Tom Van Overbeke @ 2003-08-25 14:00 UTC (permalink / raw)
To: 'Ramin Dousti'; +Cc: 'Netfilter (E-mail)'
:
>
> > Hi,
> >
> > I'm seeing a lot of these messages in my iptables logs lately:
> >
> > Aug 25 14:46:21 dobermann kernel: -drop_the_rest-IN=
> OUT=eth1 SRC=172.21.3.1
> > DST=172.21.3.10 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF
> PROTO=UDP SPT=53
> > DPT=3412 LEN=42
> >
> >
> > however, the iptables config should accept it:
> >
> > i have this rule on the firewall (which is also the dns
> server, hence the
> > 'INPUT')
> >
> > $IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> > $IPTABLES -A INPUT -p udp -s 172.21.0.0/16 --source-port
> > 024:65535 --destination-port 53 -m state --state NEW -j ACCEPT
>
> I can't understand the topology of your network and what 172.21.0.0/16
> should represent but a server to server query might be from port 53.
> Why are you filtering based on the source port?
172.21.0.0/16 is our lan. i made a habit of limiting the source ports that
can connect to a service to the upper 1024 ports. it was recommended
somewhere i thought as a security measure. anyway, that's not really the
problem here.
>
> >
> > the 172.21.3.10 is the only one causing problems, i noticed
> howerver that
> > this is udp, whereas most dns related traffic i can see is tcp.
>
> Most DNS traffic you see should be UDP though. Why are you seeing more
> TCP than UDP?
you're right. i misinterpreted the output of tcpdump, it is indeed mostly
udp.
>
> > could it be a connection tracking problem ?
>
> If 172.21.3.10 is too slow in replying and the reply time exceeds the
> UDP conntrack timeout you'd see this behaviour. Maybe that's
> the reason.
it's the opposite. 172.21.3.10 was the client and 172.21.3.1 was the server.
so what was being dropped was the reply from the dns server to the client.
the client is an nt4, whereas 99% of our computers are either win2k or aix
or linux. maybe that's the reason ?
anyway, as a test, i added a rule which would allow all traffic from the dns
server on port 53 to a port > 1024 on our lan (like in the days of ipchains,
where you needed an 'in' rule and a 'out' rule for each 'logical' rule), and
i watched if it would trigger some traffic.
it actually did:
Aug 25 15:56:19 dobermann kernel: - dns_udp_reverse - IN= OUT=eth1
SRC=172.21.3.1 DST=172.21.3.10 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF
PROTO=UDP SPT=53 DPT=3574 LEN=42
so this strenghtens my belief that it's a connection tracking issue...
>
> Ramin
>
> >
> >
> >
> > thx,
> >
> >
> > Tom.
>
****************************************************************************
Disclaimer:
This electronic transmission and any files attached to it are strictly
confidential and intended solely for the addressee. If you are not
the intended addressee, you must not disclose, copy or take any
action in reliance of this transmission. If you have received this
transmission in error, please notify the sender by return and delete
the transmission. Although the sender endeavors to maintain a
computer virus free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages
resulting from any virus transmitted.
Thank You.
****************************************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-25 14:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-25 12:57 dns replies (udp) blocked but why ? Tom Van Overbeke
2003-08-25 13:36 ` Ramin Dousti
2003-08-25 14:00 ` Tom Van Overbeke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox