Re: NAT - how external source port is selected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux