Netdev List
 help / color / mirror / Atom feed
From: Ralf Lici <ralf@mandelbit.com>
To: Xavier HSINYUAN <XavierHsinyuan@outlook.com>
Cc: antonio@mandelbit.com, bgalvani@redhat.com,
	coreteam@netfilter.org, davem@davemloft.net, dsahern@kernel.org,
	dxld@darkboxed.org, edumazet@kernel.org, fw@strlen.de,
	horms@kernel.org, idosch@nvidia.com, kuba@kernel.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	netfilter-devel@vger.kernel.org, pabeni@redhat.com,
	pablo@netfilter.org, phil@nwl.cc, toke@kernel.org
Subject: Re: [RFC net-next v2 00/18] net: introduce ipxlat stateless IPv4/IPv6 translation
Date: Thu,  3 Dec 2026 19:05:51 +0100	[thread overview]
Message-ID: <20261203180552.924347-1-ralf@mandelbit.com> (raw)
In-Reply-To: <TYTPR01MB11000B5AC6D9C174AC489EA62CA452@TYTPR01MB11000.jpnprd01.prod.outlook.com>

Hi Xavier,

Sorry for the slow reply, I wanted a working prototype before answering.

On Mon, 23 Nov 2026 10:27:33 +0800, Xavier HSINYUAN <XavierHsinyuan@outlook.com> wrote:
> Hi Ralf,
>
> Thanks for looking into this!
>
> > Actually v2 has no netdevice attachment any more, the LWT is the only
> > harness in this series.
> >
>
> Ah, I was thinking of a possible future netdev attachment at the time.
> Thanks again for pointing that out.
>

Right, with the engine separate from the harness that is possible now,
and it may be a good follow-up for host CLAT deployments.

> > Which setup do you have in mind: SNAT before translation, filtering, or
> > accounting?
>
> My interest is mainly SNAT and counting before translation. Well,
> stateful SNAT seems a bit odd for IPv6, but with multiple upstreams we
> may need to adjust the source prefix based on the selected output
> interface for load balancing or failover.
>

That's a sensible setup, and v2 can't really do it because the selecting
route ends original-family processing before POST_ROUTING.

> That said, separating NAT and translation by utilizing netns and veth
> pairs could already provide this, but letting packets pass through
> original-family POST_ROUTING before translation would make setup (looks)
> simpler.
>

Agreed, that's why I decided to revisit the attachment point. v3
replaces the LWT harness with an nf_tables object (yet another model, I
know), referenced from filter chains at prerouting or postrouting
through objref. At postrouting the original family has already routed,
filtered and NATed the packet, and its conntrack entry is confirmed when
the packet leaves, so replies translated back are established and the
NAT is reversed. The translated packet then goes through the translated
family's routing and hooks, so interface-based decisions work there as
well.

During v1 I was wary of a netfilter attachment because of reinjecting
into the other family but patches 01-03 now take care of that and of the
fragmentation details, which made a hook far more tractable than it
looked. v3 docs will also spell out what each hook placement runs in
each family (which is the per-hook table I promised).

I plan to post v3 by early next week at the latest, with CLAT (NAT44 +
CLAT) and PLAT (NAPT66 + SIIT) examples and selftests covering both.
Your setup is a good real-world case, so feedback would be very welcome.

Thanks!

-- 
Ralf Lici
Mandelbit Srl

      reply	other threads:[~2026-12-03 18:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-24  9:25 [RFC net-next v2 00/18] net: introduce ipxlat stateless IPv4/IPv6 translation Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 01/18] lwtunnel: track callback dispatch separately from return value Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 02/18] ipv4/ipv6: add LWT receive helpers Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 03/18] ipv6: allow output fragmentation to reuse a Fragment Header Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 04/18] netfilter: preserve IPv6 refragmentation state across reassembly Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 05/18] net: ipxlat: add engine skeleton and configuration model Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 06/18] net: ipxlat: add RFC 6052 and EAM address translation Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 07/18] net: ipxlat: add packet metadata and header helpers Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 08/18] net: ipxlat: add IPv4 packet validation Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 09/18] net: ipxlat: add IPv6 " Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 10/18] net: ipxlat: add checksum and offload helpers Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 11/18] net: ipxlat: add IPv4/IPv6 header and transport translation Ralf Lici
2026-11-06 13:37   ` Xavier HSINYUAN
2026-11-14  9:28     ` Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 12/18] net: ipxlat: add translation preparation and dispatch Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 13/18] net: ipxlat: add translator-generated ICMP errors Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 14/18] net: ipxlat: add ICMP informational translation Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 15/18] net: ipxlat: add ICMP error and quoted-packet translation Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 16/18] net: ipxlat: add lightweight tunnel attachment Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 17/18] selftests: net: add ipxlat coverage Ralf Lici
2026-11-06 13:39   ` Xavier HSINYUAN
2026-11-14  9:31     ` Ralf Lici
2026-10-24  9:25 ` [RFC net-next v2 18/18] docs: networking: add ipxlat guide Ralf Lici
2026-11-06 14:17 ` [RFC net-next v2 00/18] net: introduce ipxlat stateless IPv4/IPv6 translation Xavier HSINYUAN
2026-11-14  9:47   ` Ralf Lici
2026-11-23  2:27     ` Xavier HSINYUAN
2026-12-03 18:05       ` Ralf Lici [this message]

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=20261203180552.924347-1-ralf@mandelbit.com \
    --to=ralf@mandelbit.com \
    --cc=XavierHsinyuan@outlook.com \
    --cc=antonio@mandelbit.com \
    --cc=bgalvani@redhat.com \
    --cc=coreteam@netfilter.org \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=dxld@darkboxed.org \
    --cc=edumazet@kernel.org \
    --cc=fw@strlen.de \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pablo@netfilter.org \
    --cc=phil@nwl.cc \
    --cc=toke@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