Skip to content

nat: force port remap to prevent shadowing well-known ports

Florian Westphal netfilter-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v31 patch 1 replySuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: conntrack: tag conntracks picked up in local out hookinclude/net/netfilter/nf_conntrack.h net/netfilter/nf_conntrack_core.c+4 -00 replies
2/2netfilter: nat: force port remap to prevent shadowing well-known portsnet/netfilter/nf_nat_core.c tools/testing/selftests/netfilter/nft_nat.sh+43 -51 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPhil SutterEric Garver
1/2
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH nf-next v4 0/2] nat: force port remap to prevent shadowing well-known ports

Hi,

This is a resend of the port remap change with auto-exception for locally originating connections.

This is done by adding a bit in nf_conn for LOCAL_OUT tracked entries.

Patch 1/2 is same as in v2.
Patch 2/2 is same as v3.
v3 only contained patch 2/2 by mistake.

Florian Westphal (2):
netfilter: conntrack: tag conntracks picked up in local out hook
netfilter: nat: force port remap to prevent shadowing well-known ports

 include/net/netfilter/nf_conntrack.h         |  1 +
 net/netfilter/nf_conntrack_core.c            |  3 ++
 net/netfilter/nf_nat_core.c                  | 43 ++++++++++++++++++--
 tools/testing/selftests/netfilter/nft_nat.sh |  5 ++-
 4 files changed, 47 insertions(+), 5 deletions(-)
Signature · 1 line
2.32.0