Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Philip Craig <philipc@snapgear.com>
To: Stephen Hemminger <stephen.hemminger@vyatta.com>
Cc: Patrick McHardy <kaber@trash.net>, netfilter@vger.kernel.org
Subject: Re: NAT packets leaking out with source address
Date: Thu, 06 Mar 2008 12:01:34 +1000	[thread overview]
Message-ID: <47CF507E.2070203@snapgear.com> (raw)
In-Reply-To: <20080305165231.505bdd44@speedy>

Stephen Hemminger wrote:
> QA is seeing some (not all packets) going through a NAT router with the
> original source address.  Is this a known problem? or a configuration issue?
> 
> The packets are ICMP echo requests coming in at almost line rate, so some
> table could be getting overloaded?

First step is to check the conntrack table for an unnatted and unreplied
entry.

If the first ICMP was sent before the NAT rule was installed, and you never
get a reply (presumably because it is was not NATted), then subsequent ICMP
packets will use the same conntrack entry and not be NATted either.  These
will also refresh the timeout on the conntrack, so it never expires until
you stop pinging.

If this is the problem, the solution is to make sure you have the NAT rules
installed before the filter rules allow the packets.

      reply	other threads:[~2008-03-06  2:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06  0:52 NAT packets leaking out with source address Stephen Hemminger
2008-03-06  2:01 ` Philip Craig [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=47CF507E.2070203@snapgear.com \
    --to=philipc@snapgear.com \
    --cc=kaber@trash.net \
    --cc=netfilter@vger.kernel.org \
    --cc=stephen.hemminger@vyatta.com \
    /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