What is NAT and why is it used?
BeginnerConceptNAT, Firewalls & VPN
Answer
Network Address Translation rewrites IP addresses (and often ports) as packets cross a boundary. It lets many private hosts share one public IP and hides internal addressing. The device keeps a translation table so replies are mapped back.
It is not a security feature by itself; it just happens to block unsolicited inbound connections because there is no mapping for them.
More on NAT, Firewalls & VPN
What is the difference between SNAT, DNAT and PAT?AdvancedHow does an AWS NAT gateway work, and what are its limits?AdvancedWhy is NAT gateway cost a common surprise and how do you reduce it?IntermediateWhat is conntrack and what happens when its table fills up?AdvancedWhat is the difference between a stateful and a stateless firewall?BeginnerWhat is a security group and how does it differ from a network ACL?Beginner