netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Blažej Krajňák" <krajnak@levonet.sk>
Cc: netfilter@vger.kernel.org
Subject: Re: Performing NAT 1:1 without connection tracking
Date: Tue, 21 Nov 2023 10:21:49 +0100	[thread overview]
Message-ID: <ZVx2rV3XcNZPy1wf@calendula> (raw)
In-Reply-To: <860A059C-354B-45F3-9BCA-5387927F1D1E@levonet.sk>

On Tue, Nov 21, 2023 at 09:52:33AM +0100, Blažej Krajňák wrote:
> 
> Hello everyone,
> 
> I’m wondering if is it possible to perform NAT 1:1 without using conntrack table/module at all?
> Of course using nftables / iptables.

There is stateless NAT, if that is what you are searching for.

https://wiki.nftables.org/wiki-nftables/index.php/Performing_Network_Address_Translation_(NAT)#Stateless_NAT

> Because for now I see xdp/bpf as the only way. 
> 
> 
> 
> Thanks
> Blažej

      reply	other threads:[~2023-11-21  9:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-21  8:52 Performing NAT 1:1 without connection tracking Blažej Krajňák
2023-11-21  9:21 ` Pablo Neira Ayuso [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=ZVx2rV3XcNZPy1wf@calendula \
    --to=pablo@netfilter.org \
    --cc=krajnak@levonet.sk \
    --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 read-only IMAP folder(s) and NNTP newsgroup(s).