Re: NAT - how external source port is selected

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

 



Le 18/08/2021 à 18:16, Florian Westphal a écrit :

Daniel <tech@xxxxxxxxxx> wrote:
Also, SNOM phones are systematically using port 2048 as source port of the
WAN ip. Is there a mechanism to allow such behavior ?
What do you mean? The initiator is free to pick whatever source port they like.
Well, how he will know that the port is free ?
bind() fails for listener socket, connect() fails for outgoing (if
everything is full).

On conntrack machine, connection tracking table gets queried after SNAT
to see if the new tuple is still unique.
Thanks to all for the explanation.

--
Daniel



[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