From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: Disabling conntrack on an interface
Date: Fri, 03 Jul 2009 01:46:00 +0200 [thread overview]
Message-ID: <4A4D46B8.4070401@plouf.fr.eu.org> (raw)
In-Reply-To: <1246548394.17132.19.camel@enterprise.ims-firmen.de>
Thomas Jacob a écrit :
>
> I do not get any conntrack entries from mirrored ports when
> I am port mirroring packets onto a Linux interface that is up
> but has no configured addresses.
You could get some, under some conditions.
> As long as these packets are not addressed to your machine the netfilter
> code never gets to see them, AFAIK.
The netfilter code, including conntrack, sees IPv4 packets on an
interface as soon as it is bound to the IPv4 stack. An interface does
not need to have an IP address to be bound to the IPv4 stack. Before
kernel 2.6.21, it just required that the interface had had an address in
the past (even though it was later removed) ; "ifconfig <interface>
0.0.0.0" did the trick too. Since kernel 2.6.21, interfaces are
automatically bound to the IPv4 (and IPv6) stack when they are created.
However... if a packet is not addressed to the machine *and* the machine
does not know what to do with it (e.g. IP forwarding is disabled or
there is no route to the destination), the packet will be dropped at the
input routing stage after PREROUTING, thus the conntrack entry won't be
confirmed and will be deleted.
prev parent reply other threads:[~2009-07-02 23:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 15:10 Disabling conntrack on an interface Terry Burton
2009-07-02 15:26 ` Thomas Jacob
2009-07-02 16:06 ` Terry Burton
2009-07-02 17:04 ` Thomas Jacob
2009-07-02 17:16 ` Terry Burton
2009-07-02 18:45 ` Pascal Hambourg
2009-07-02 21:35 ` Terry Burton
2009-07-02 23:46 ` Pascal Hambourg [this message]
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=4A4D46B8.4070401@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox