From: Adam Rosi-Kessel <adam@rosi-kessel.org>
To: netfilter@lists.netfilter.org
Subject: Re: Why would certain packets not reach nat PREROUTING chain?
Date: Mon, 14 Nov 2005 09:53:48 -0500 [thread overview]
Message-ID: <20051114145348.GA12841@bostoncoop.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0511101739320.30250@blackhole.kfki.hu>
On Thu, Nov 10, 2005 at 17:44:16 CET, Jozsef Kadlecsik wrote:
> > > Under what conditions would inbound packets not be routing through
> > > the nat PREROUTING chain?
> > That's a problem that puzzles me too.
> Packets which cannot be associated with any existing connection
> known by the conntrack subsystem will traverse the NAT table.
> If a packet is related to any connection, which can mean:
> - the packet belongs to a connection
> - it is an ICMP error packet about a connection
> - it is a packet of a channel (like FTP data), which can be
> associated to a connection by an appropriate helper module
> then that packet won't enter the NAT table.
The packets in question:
- do show up in tcpdump (so they're at least passing by the network card)
- do show up if logged in the mangle PREROUTING table (so iptables at
least knows about them)
- are UDP port 500 packets -- so that rules out the latter two options
above, right? They are not ICMP error packets, and they are not
packets recognized by a channel like FTP data. I have no conntrack
module loaded other than the main one and the FTP one.
- do not show up in /proc/net/ip_conntrack. There in fact are no
inbound entries at all in /proc/net/ip_conntrack for the IP address of the
remote server or for any traffic on port 500 at all.
Yet, they do not enter the nat PREROUTING table.
I even added a raw table and a NOTRACK destination to packets travelling
on port 500 to every chain in the raw table. Still, the packets do not
show up in nat PREROUTING.
Any suggestions for how to figure out why they're not getting to nat
PREROUTING? Or are they perhaps being tracked in a way that I am not
noticing?
--
Adam Rosi-Kessel
http://adam.rosi-kessel.org
next prev parent reply other threads:[~2005-11-14 14:53 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 1:57 Why would certain packets not reach nat PREROUTING chain? Adam Rosi-Kessel
2005-11-10 1:59 ` Adam Rosi-Kessel
2005-11-10 3:18 ` Alexander Samad
2005-11-10 3:27 ` Adam Rosi-Kessel
[not found] ` <3063e50511100055m41abd50hc3af78a67896db7d@mail.gmail.com>
2005-11-10 12:44 ` Adam Rosi-Kessel
2005-11-10 10:15 ` Sandro Dentella
2005-11-10 16:44 ` Jozsef Kadlecsik
2005-11-14 14:53 ` Adam Rosi-Kessel [this message]
2005-11-14 15:03 ` Jozsef Kadlecsik
2005-11-14 15:09 ` Adam Rosi-Kessel
2005-11-15 9:07 ` Jozsef Kadlecsik
2005-11-15 13:43 ` Adam Rosi-Kessel
2005-11-15 14:00 ` Jozsef Kadlecsik
2005-11-15 23:53 ` Adam Rosi-Kessel
2005-11-15 23:57 ` Adam Rosi-Kessel
2005-11-16 0:02 ` Adam Rosi-Kessel
2005-11-16 9:42 ` Jozsef Kadlecsik
2005-11-18 1:52 ` Adam Rosi-Kessel
2005-11-18 11:07 ` Jozsef Kadlecsik
2005-11-19 3:46 ` Adam Rosi-Kessel
2005-11-19 20:34 ` Jozsef Kadlecsik
2005-11-20 17:20 ` Adam Rosi-Kessel
2005-11-24 11:00 ` Jozsef Kadlecsik
2005-11-24 13:36 ` Adam Rosi-Kessel
2005-12-17 22:59 ` Adam Rosi-Kessel
2005-12-18 6:42 ` Leonardo Rodrigues Magalhães
-- strict thread matches above, loose matches on Subject: below --
2005-11-10 13:13 Gabriel
2005-11-10 13:45 Adam Rosi-Kessel
2005-11-10 14:50 ` Sandro Dentella
[not found] <20051218055403.002CDA00EA@bostoncoop.net>
2005-12-18 13:16 ` Adam Rosi-Kessel
2005-12-19 15:39 ` Re[2]: " Marcin Krol
2005-12-19 15:40 ` Adam Rosi-Kessel
2006-01-25 1:16 ` Adam Rosi-Kessel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051114145348.GA12841@bostoncoop.net \
--to=adam@rosi-kessel.org \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.