Masquerade (port-mapped) NAT

 

Port-mapped network address translation (NAT) is a variation of masquerade NAT.

In port-mapped NAT, you can specify both the IP address and the port number to translate. This enables both your internal personal computer and the external workstation to initiate IP traffic. You can use port-mapped NAT if the external workstation (or client) needs to access workstations or systems inside your network. Only IP traffic that matches both the IP address and the port number is allowed to access.

 

Internal initiation

When the internal personal computer with Address 1: Port 1 initiates traffic to an outside workstation, the translating code will check the NAT rule file for Address 1: Port 1. If both the source IP address (Address 1) and the source port number (Port 1) match the NAT rule, NAT starts the conversation and performs the translation. The specified values from the NAT rule replace the IP source address and source port number. Address 1: Port 1 is replaced with Address 2: Port 2.

 

External initiation

An external workstation initiates IP traffic with the destination IP address of Address 2. The destination port number is Port 2. The NAT server untranslates the datagram with or without an existing conversation. In other words, NAT automatically creates a conversation if one does not already exist. Address 2: Port 2 is untranslated to Address 1: Port 1.

The following list highlights the features of masquerade port-mapped NAT:

Notes:

 

Parent topic:

Network address translation