Skip to content

netfilter updates for net-next

Florian Westphal netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5netfilter: nft_redir: use `struct nf_nat_range2` throughout and deduplicate eval call-backsinclude/net/netfilter/nf_nat_redirect.h net/netfilter/nf_nat_redirect.c net/netfilter/nft_redir.c +1 more+72 -960 repliesApplied
2/5netfilter: nft_masq: deduplicate eval call-backsnet/netfilter/nft_masq.c+29 -460 repliesApplied
3/5netfilter: xtables: disable 32bit compat interface by defaultnet/netfilter/Kconfig+0 -10 repliesApplied
4/5xtables: move icmp/icmpv6 logic to xt_tcpudpnet/ipv4/netfilter/ip_tables.c net/ipv6/netfilter/ip6_tables.c net/netfilter/xt_tcpudp.c+112 -1340 repliesApplied
5/5netfilter: keep conntrack reference until IPsecv6 policy checks are donenet/dccp/ipv6.c net/ipv6/ip6_input.c net/ipv6/raw.c +2 more+13 -110 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/5] netfilter updates for net-next

Hello,

This pull request contains changes for the *net-next* tree.

1. Change IPv6 stack to keep conntrack references until ipsec policy checks are done, like ipv4, from Madhu Koriginja.
This update was missed when IPv6 NAT support was added 10 years ago.

2. get rid of old 'compat' structure layout in nf_nat_redirect core and move the conversion to the only user that needs the old layout for abi reasons. From Jeremy Sowden.

3. Compact some common code paths in nft_redir, also from Jeremy.

4. Time to remove the 'default y' knob so iptables 32bit compat interface isn't compiled in by default anymore, from myself.

5. Move ip(6)tables builtin icmp matches to the udptcp one. This has the advantage that icmp/icmpv6 match doesn't load the iptables/ip6tables modules anymore when iptables-nft is used. Also from myself.

The following changes since commit 5c5945dc695c54f2b55a934a10b6c4e220f9c140:

selftests/net: Add SHA256 computation over data sent in tcp_mmap (2023-03-22 15:34:31 +0100)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/netfilter/nf-next main

for you to fetch changes up to b0e214d212030fe497d4d150bb3474e50ad5d093:

netfilter: keep conntrack reference until IPsecv6 policy checks are done (2023-03-22 21:50:23 +0100)

----------------------------------------------------------------
Florian Westphal (2):
netfilter: xtables: disable 32bit compat interface by default
xtables: move icmp/icmpv6 logic to xt_tcpudp

Jeremy Sowden (2):
netfilter: nft_redir: use struct nf_nat_range2 throughout and deduplicate eval call-backs
netfilter: nft_masq: deduplicate eval call-backs

Madhu Koriginja (1):
netfilter: keep conntrack reference until IPsecv6 policy checks are done

 include/net/netfilter/nf_nat_redirect.h |   3 +-
 net/dccp/ipv6.c                         |   1 +
 net/ipv4/netfilter/ip_tables.c          |  68 +-------------------
 net/ipv6/ip6_input.c                    |  14 ++--
 net/ipv6/netfilter/ip6_tables.c         |  68 +-------------------
 net/ipv6/raw.c                          |   5 +-
 net/ipv6/tcp_ipv6.c                     |   2 +
 net/ipv6/udp.c                          |   2 +
 net/netfilter/Kconfig                   |   1 -
 net/netfilter/nf_nat_redirect.c         |  71 ++++++++++-----------
 net/netfilter/nft_masq.c                |  75 +++++++++-------------
 net/netfilter/nft_redir.c               |  84 +++++++++---------------
 net/netfilter/xt_REDIRECT.c             |  10 ++-
 net/netfilter/xt_tcpudp.c               | 110 ++++++++++++++++++++++++++++++++
 14 files changed, 226 insertions(+), 288 deletions(-)