From: Reindl Harald <h.reindl@thelounge.net>
To: Daniel <tech@tootai.net>, netfilter@vger.kernel.org
Subject: Re: NAT - how external source port is selected
Date: Wed, 18 Aug 2021 17:15:29 +0200 [thread overview]
Message-ID: <e8eda3b8-0870-7971-b537-e83525e90c02@thelounge.net> (raw)
In-Reply-To: <30dceaf1-7087-2f80-800d-129d6e0dcb59@tootai.net>
Am 18.08.21 um 16:50 schrieb Daniel:
> How is the magic done then ?
which magic?
a tuple is "src-ip:src-port dst-ip:dst-port" and as long there is no
collision it's 1:1, if there is a collison a random port is used -
that's what conntrack is for
you don't need to care on a nat router
> Le 18/08/2021 à 16:22, Reindl Harald a écrit :
>>
>>
>> Am 18.08.21 um 15:53 schrieb Daniel:
>>> how on a NAT firewall server using iptables or nftables, are the
>>> external source ports choosen?
>> NAT don't chose any ports at all
next prev parent reply other threads:[~2021-08-18 15:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-18 13:53 NAT - how external source port is selected Daniel
2021-08-18 14:22 ` Reindl Harald
2021-08-18 14:50 ` Daniel
2021-08-18 15:15 ` Reindl Harald [this message]
2021-08-18 14:46 ` Florian Westphal
2021-08-18 15:12 ` Daniel
[not found] ` <20210818161622.GS607@breakpoint.cc>
2021-08-18 16:43 ` Daniel
2021-08-18 14:52 ` AW: " Thomas Bätzler
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=e8eda3b8-0870-7971-b537-e83525e90c02@thelounge.net \
--to=h.reindl@thelounge.net \
--cc=netfilter@vger.kernel.org \
--cc=tech@tootai.net \
/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.