All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: "Kamil Jońca" <kjonca@op.pl>
Cc: netfilter@vger.kernel.org
Subject: Re: Question about "masquerade"
Date: Mon, 9 May 2022 18:49:57 +0200	[thread overview]
Message-ID: <20220509164957.GB12438@breakpoint.cc> (raw)
In-Reply-To: <875ymeepq4.fsf@alfa.kjonca>

Kamil Jońca <kjonca@op.pl> wrote:
> 
> Maybe I miss something obvious in documentation.
> How stable is "masquerade"
> I know that it translates addresses.
> But what about ports? Changes them somehow? Keepos original?

Depends.  Default behaviour is to change the port if keeping it
the same would result in a conflicting mapping.

See MASQUERADE --random in iptables-extensions man page or
random flag in nft man page.

  reply	other threads:[~2022-05-09 16:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-09 14:37 Question about "masquerade" Kamil Jońca
2022-05-09 16:49 ` Florian Westphal [this message]
2022-05-10 11:34 ` Maximiliano Estudies

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=20220509164957.GB12438@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=kjonca@op.pl \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.