What is NAT?
NAT stands for Network Address Translation. It’s a method used by routers to translate private IP addresses into a public IP address.
What is a simple analogy for NAT?
NAT is like a mailroom clerk who adds a name to each outgoing letter and keeps track of who sent what.
Why do we use NAT?
We use NAT because we’re running out of public IPv4 addresses, it allows many devices to share one public IP, and it adds a layer of security.
What are the types of NAT?
The types of NAT include Static NAT, Dynamic NAT, and PAT (NAT Overload).
What does Static NAT do?
Static NAT maps one private IP to one public IP.
Example: 192.168.1.10 → 203.0.113.10
What does Dynamic NAT do?
Dynamic NAT uses a pool of public IPs to map private IPs temporarily.
Example: 192.168.1.20 → any free IP from a pool
What does PAT (NAT Overload) do?
PAT maps many private IPs to one public IP using ports.
Example: 192.168.1.5:1234 → 203.0.113.1:56789
How does NAT work with PAT?
When you open a website, your router changes the source IP to its public IP and adds a unique port number for routing responses back.
What are the benefits of NAT?
The benefits of NAT include saving IP addresses, adding privacy, and enabling internal-only addressing.
What are the drawbacks of NAT?
Drawbacks of NAT include breaking some apps that need end-to-end visibility, making peer-to-peer connections harder, and not working natively with end-to-end encryption or IPv6.
What is the TL;DR of NAT?
NAT is a translator between private and public IPs, allows many devices to share one public IP, and most home networks use PAT.