All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Daniel Collins <daniel.collins@smoothwall.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Possible bug when bridging traffic we just SNATed and sent to another router
Date: Fri, 5 Jun 2015 16:35:42 +0200	[thread overview]
Message-ID: <20150605143542.GH11015@breakpoint.cc> (raw)
In-Reply-To: <CAOmdcgX+niENv18DKyn8BVZfwhYXmNcBCBoHVnrsEYWEJTtrhg@mail.gmail.com>

Daniel Collins <daniel.collins@smoothwall.net> wrote:
> Hi
> 
> We have encountered problems when attempting to bridge packets that we
> just sent, then saw a second time as the receiving router forwarded
> them to another router attached to a different bridge port.

I have no idea what that means.
-v please.

> This only occurs when SNAT was used on the original connection, this
> seems to prevent the original conntrack entry from being used for the
> bridged packet,

Uhh.. what?
Not following, sorry :-/

> instead creating a new one for them, our router's

If a new conntrack is created, then the skb did not (yet) have a conntrack
entry or something has caused the conntrack to be destroyed/discarded.

The latter typically happens with veth, or other
virtualization/container use cases where skb_scrub_packet() is called.

> router then sends the replies directly to us (as you'd expect), but
> Linux only undoes the first layer of NAT and then discards the packet
> since a local socket for it doesn't exist.

again, no idea what that means.  Please explain in more detail or
provide some graph that describes what is connected where, how the
routing happens and where bridge(s) are sitting.

  reply	other threads:[~2015-06-05 14:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-05 14:14 Possible bug when bridging traffic we just SNATed and sent to another router Daniel Collins
2015-06-05 14:35 ` Florian Westphal [this message]
2015-06-05 14:49   ` Daniel Collins
2015-06-05 15:08     ` Florian Westphal
2015-06-05 15:27       ` Daniel Collins
2015-06-05 16:38         ` Florian Westphal

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=20150605143542.GH11015@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=daniel.collins@smoothwall.net \
    --cc=netfilter-devel@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 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.