Subject: Re: what is the NAT ports range for mapping one network?
To: None <netbsd-users@netbsd.org>
From: Dmitry Ivanov <dimss@solutions.lv>
List: netbsd-users
Date: 10/05/2005 15:55:12
On Wednesday 05 October 2005 15:25, Igor Sobrado wrote:
> map fxp0 192.168.2.0/24 -> 10.0.0.5/32 portmap tcp/udp 49152:65535
These are _source_ ports.
> 49152 - 65535 dynamic/private used by clients to establish a
> ports connection to a server
These are _destination_ ports.
Source and destination ports are entirely different concepts. Source
port number is just "socket ID" (randomly) selected by OS. Destination
port is more important thing because TCP/UDP servers listen for
incoming requests on specified destination ports.
Don't worry about NAT in this case.