Module 6: NAT for IPv4 Flashcards
What does NAT stand for?
Network Address Translation?
What purpose does NAT have?
To allow networks to use private IPv4 addressess internally and providing translation to a public address only when needed.
What is a NAT pool?
One or more valid public IPv4 addresses configured on a NAT-enabled router.
Where does a NAT router typically operate?
Within the border of a stub network (a network with only one exit point to the internet)
What happens when a device inside the stub network wants to communicate with a device outside of the stub network?
It’s packets are forwarded to the border router, which performs the NATprocess, translating the internal private address to a public outside routable address.
What is the “Inside network” and what is the “Outside network”?
Inside Network = The private network subject to translation
Outside Network = All other networks
What is a “Demarcation point”?
The point where the inside network becomes the outside network.
What are meant by the acroynyms “SA” and “DA”?
Source Address and Destination Address
What is the “Inside address”?
The address of the device which is being translated by NAT.
What is the “Outside address”?
The address of the destination device.
What is a “Local address”?
A local address is any address that appears on the inside portion of the network.
What is a “Global address”?
A global address is any address that appears on the outside portion of the network.
What four columns of addresses does NAT use?
- Inside local address
- Inside global address
- Outside local address
- Outside global address
What is an “Inside local address”?
The address of the source as seen from inside the network.
What is an “Inside global address”?
The address of the source as seen from outside the network.
What is an “Outside global address”?
The address of the destination as seen from outside the network.
What is an “Outside local address”?
The address of the destination as seen from inside the network.
True or False?
The outside local and outside global address are translated.
False.
The outside local and outside global address is the destination (outside device) which is not typically translated because it is already a public IPv4 address.
True or False?
The inside local address is translated to an inside global address.
True.
The private internal IP address is translated by the NAT router into a publically routable private ip address.
A remote Web Server has an IP address of 209.165.201.10 what type of NAT address is this?
Outside Global
A local PC1 has an IP address of 192.168.10.10 what type of NAT address is this?
Inside Local
Local PC1 has had it’s IP address of 192.168.10.10 translated into 209.165.200.226 what type of NAT address is this?
Inside Global
How does Static NAT map local and global addresses?
One-to-One Mapping, so that each local address has its own global address
When is Static NAT typically used? Name some examples
For services that require a consistent address accessible from the internet, such as web servers, SSH access, VPN access.
Why might you not want to (or be able to) use static NAT?
You might not have enough static global addresses to map them one-to-one for each local address
How does Dynamic NAT map local and global addresses?
Using a NAT pool of global (public) IP addresses dynamically given out on a first-come first-served basis.
Why is Dynamic NAT considered a legacy system that is not used in most real world scenarios?
The cost of public IP addresses, and the existance of PAT (Port Address Translation), make the need for randomly assigned inside global addresses redundant.
What does PAT stand ford?
Port Address Translation
What is another name for Port Address Translation?
NAT Overload
How does PAT map local and global addresses?
Port Address Translation maps multiple private IP addresses to a single public IP address. It then differentiates the local devices by also assigning them a port number.
Why, and how, does PAT assign port numbers?
It assigns a unique port number to each session (not each device). The source port is randomly generated and stored, so that on the return trip the destination port maps to the internal session that generated it.
In what way does PAT add a level of security?
The port number used is randomly generated and must match the source port number that is stored. So incoming packets must be in response and match outgoing packets.
Using PAT, what happens when a device tries to use a port number that has already been used by another session?
PAT attempts to preserve the original source port, but uses the ‘Next Available Port’ if it cannot.
So if PC1 sends a packet as 192.168.10.10:1445 and then PC2 tries to send a packet as 12.168:10.11:1445 then PC will actually use port :1446 instead.
A device using PAT has had it’s port changed from :1445 to :1446 due to Next Available Port. What happens when the packet is received back from port :1446?
It gets changed back to port :1445 by the NAT router before being sent back to the source device.
What is the difference between NAT and PAT?
NAT translates inside local addresses to unique inside global addresses, either one-to-one via static NAT or from a pool via dynamic NAT.
PAT instead translates inside local addresses to a single inside global address, using the port number to uniquely identifiy them.
How does PAT translate packets without a Layer 4 Segment?
Packets without a TCP/UDP segment, such as an ICMPv4 echo request and replies, instead used a Query ID to uniquely identify each request with its corresponding reply.