From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org, eric@garver.life, phil@nwl.cc,
kadlec@netfilter.org
Subject: Re: [PATCH nf 1/2] selftests: nft_nat: add udp hole punch test case
Date: Tue, 12 Oct 2021 01:42:59 +0200 [thread overview]
Message-ID: <YWTMA8I7XeiGhulm@salvia> (raw)
In-Reply-To: <20210923131243.24071-2-fw@strlen.de>
On Thu, Sep 23, 2021 at 03:12:42PM +0200, Florian Westphal wrote:
> Add a test case that demonstrates port shadowing via UDP.
>
> ns2 sends packet to ns1, from source port used by a udp service on the
> router, ns0. Then, ns1 sends packet to ns0:service, but that ends up getting
> forwarded to ns2.
>
> Also add three test cases that demonstrate mitigations:
> 1. disable use of $port as source from 'unstrusted' origin
> 2. make the service untracked. This prevents masquerade entries
> from having any effects.
> 3. add forced PAT via 'random' mode to translate the "wrong" sport
> into an acceptable range.
Applied, thanks
next prev parent reply other threads:[~2021-10-11 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-23 13:12 [PATCH nf 0/1.5 RFC] netfilter: nat: source port shadowing Florian Westphal
2021-09-23 13:12 ` [PATCH nf 1/2] selftests: nft_nat: add udp hole punch test case Florian Westphal
2021-10-11 23:42 ` Pablo Neira Ayuso [this message]
2021-09-23 13:12 ` [PATCH RFC 2/2] netfilter: nf_nat: don't allow source ports that shadow local port Florian Westphal
2021-10-01 13:21 ` Florian Westphal
2021-10-04 10:16 ` Pablo Neira Ayuso
2021-10-04 10:41 ` 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=YWTMA8I7XeiGhulm@salvia \
--to=pablo@netfilter.org \
--cc=eric@garver.life \
--cc=fw@strlen.de \
--cc=kadlec@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
/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.