public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* iptables and tcpdump
@ 2001-10-29  1:10 Rolf Fokkens
  2001-10-30  4:28 ` Rusty Russell
  0 siblings, 1 reply; 8+ messages in thread
From: Rolf Fokkens @ 2001-10-29  1:10 UTC (permalink / raw)
  To: linux-kernel

Hi!

I've been "tcpdumping" traffic that passes through a NAT box based on
netfilter. Everything works wonderful, but tcpdump presents confusing data.
With the help of google I found out that tcpdump sees the data right after
the NF_IP_PRE_ROUTING and the NF_IP_POST_ROUTING hooks. This explains it all,
but results in a new question: why does tcpdump "see" the data after the
NF_IP_PRE_ROUTING hook instead of before, which more accurately reflects the
data that's on the wire?

I can imagine this has been explained before, but I haven't found the full
explanation. Could someone enlighten me?

Another thing is /proc/net/ip_conntrack. It shows also some confusing
information like this:

icmp 1 29 src=145.66.17.200 dst=10.13.92.231 ... [UNREPLIED]
src=130.130.92.231 dst=145.66.17.200 ...

One half shows an unNATted dst, the second half shows the NATted src.
Logically speaking they should match but now they don't.

So everything works fine, but it's presented in a confusing way (tcpdump,
ip_conntrack). This may be intentionally but it seems a little accidentally
to me.

Rolf

-------------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-11-06 23:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-29  1:10 iptables and tcpdump Rolf Fokkens
2001-10-30  4:28 ` Rusty Russell
2001-10-30  5:31   ` David S. Miller
2001-10-31  5:45     ` Rolf Fokkens
2001-10-31  6:28     ` Rusty Russell
2001-10-31 13:34       ` kuznet
2001-11-06 23:40       ` David S. Miller
2001-10-30 17:31   ` kuznet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox