Figure 3: NAT Inside Source Translation The following process describes the inside source address translation, as shown in the figure above: 1. The user at host 10.1.1.1 opens a connection to Host B in the outside network. 2. NAT module intercepts the corresponding packet and attempts to translate the packet. The following scenarios are possible based on the presence or absence of a matching NAT rule: • If a matching static translation rule exists, the packet gets translated to the corresponding inside global address. Otherwise, the packet is matched against the dynamic translation rule and in the event of a successful match, it gets translated to the corresponding inside global address.
The NAT module inserts a fully qualified flow entry corresponding to the translated packet, into its translation database. This facilitates fast translation and forwarding of the packets corresponding to this flow, in either direction. • The packet gets forwarded without any address translation in the absence of a successful rule match. • The packet gets dropped in the event of failure to obtain a valid inside global address even-though we have a successful rule match. Note If an ACL is employed for dynamic translation, NAT evaluates the ACL and ensures that only the packets that are permitted by the given ACL are considered for translation. 3.
The device replaces the inside local source address of host 10.1.1.1 with the inside global address of the translation, 203.0.113.2, (only the packet-relevant checksums get updated and all other fields in the packet remain unchanged) and forwards the packet. 4. The NAT module inserts a fully qualified flow entry corresponding to the translated packet flow, into its translation database. This facilitates fast translation and forwarding of packets corresponding to the flow in either direction. 5.
Host B receives the packet and responds to host 10.1.1.1 by using the inside global IP destination address (DA) 203.0.113.2 Configuring Network Address Translation Using Network Address Translation to Route Packets to the Outside Network (Inside Source Address Translation) Configuring Network Address Translation 7