From: Florian Westphal <fw@strlen.de>
To: Marcin Kabiesz <marcin.kabiesz@smarthost.pl>
Cc: Florian Westphal <fw@strlen.de>, netfilter@vger.kernel.org
Subject: Re: NAT translation problem - leakage of packets with original source address
Date: Fri, 11 Mar 2022 13:53:26 +0100 [thread overview]
Message-ID: <20220311125326.GA10646@breakpoint.cc> (raw)
In-Reply-To: <039c7dc8fed7947df5a7e72ead9a9627@smarthost.pl>
Marcin Kabiesz <marcin.kabiesz@smarthost.pl> wrote:
> Chain POSTROUTING (policy ACCEPT 1170K packets, 1616M bytes)
> pkts bytes target prot opt in out source
> destination
> 84216 8212K ACCEPT all -- * eth0.2 192.168.10.0/24
> 0.0.0.0/0
> 552K 46M ACCEPT all -- * eth0.2 192.168.11.0/24
> 0.0.0.0/0
> 0 0 ACCEPT all -- * eth0.2 192.168.12.0/24
> 0.0.0.0/0
> 0 0 DROP all -- * eth0.2 192.168.0.0/16
> 0.0.0.0/0
> 0 0 DROP tcp -- * eth0.2 0.0.0.0/0
> 0.0.0.0/0 state INVALID
I suspect you need to move the INVALID rule to the beginning,
else packets might get accepted by earlier rule.
next prev parent reply other threads:[~2022-03-11 12:53 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
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 [this message]
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=20220311125326.GA10646@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox