netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonio Ojea <antonio.ojea.garcia@gmail.com>
To: netfilter@vger.kernel.org
Subject: Query on nftables DNAT for localhost-to-localhost traffic in IPv6 or without route_localnet
Date: Fri, 1 Aug 2025 00:59:15 +0200	[thread overview]
Message-ID: <CABhP=tbrKeaQCAnKHbJoWNcgTthvmAEPEOcvux_W8eztR5QT1Q@mail.gmail.com> (raw)

Hi,

We (kubernetes) are currently exploring options for port forwarding
traffic that originates from localhost and is also destined for
localhost, to redirect it to a different destination IP address and
port [1].

We can use the route_localnet sysctl parameter, however, that does not
work for IPv6.

We are trying to avoid solutions that rely on eBPF or userspace
proxies to reduce the maintenance load, and hoping to find a solution
within the kernel's networking stack.

Any guidance or suggestions you could provide would be greatly appreciated.

[1]: https://github.com/kubernetes/kubernetes/issues/132955

             reply	other threads:[~2025-07-31 22:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-31 22:59 Antonio Ojea [this message]
2025-08-04  8:25 ` Query on nftables DNAT for localhost-to-localhost traffic in IPv6 or without route_localnet Florian Westphal
2025-08-11 20:08   ` Pablo Neira Ayuso
2025-08-12 11:17     ` Florian Westphal
2025-08-12 12:18       ` Pablo Neira Ayuso
2025-08-18 16:11         ` Antonio Ojea

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='CABhP=tbrKeaQCAnKHbJoWNcgTthvmAEPEOcvux_W8eztR5QT1Q@mail.gmail.com' \
    --to=antonio.ojea.garcia@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).