All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Marcin Kabiesz <marcin.kabiesz@smarthost.pl>
Cc: netfilter@vger.kernel.org
Subject: Re: NAT translation problem - leakage of packets with original source address
Date: Thu, 10 Mar 2022 13:08:09 +0100	[thread overview]
Message-ID: <20220310120809.GD26501@breakpoint.cc> (raw)
In-Reply-To: <0e142c6e43516aa01a9bcf6f6df9b31d@smarthost.pl>

Marcin Kabiesz <marcin.kabiesz@smarthost.pl> wrote:
> is it possible that with the OpenVPN interface tun0 every now and then some
> packets with a private source address are visible and forwarded to the
> router?

Yes, NAT is only applied to packets that conntrack considers sane/valid.

You can e.g. add a drop rule for INVALID packets.

  reply	other threads:[~2022-03-10 12:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10 11:40 NAT translation problem - leakage of packets with original source address Marcin Kabiesz
2022-03-10 12:08 ` Florian Westphal [this message]
2022-03-10 12:33   ` Marcin Kabiesz
2022-03-10 14:53     ` Florian Westphal
2022-03-11  9:11       ` Marcin Kabiesz
2022-03-11 12:53         ` Florian Westphal
2022-03-11 13:45           ` Marcin Kabiesz

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=20220310120809.GD26501@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=marcin.kabiesz@smarthost.pl \
    --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 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.