Simple definition….
The NAT allows several devices in a local network to use a single public address to access the Internet.
Technical definition….
A router or firewall rewrites packet addresses and, for port-based NAT, transport-layer ports. SNAT changes the source address, while DNAT changes the destination. Port forwarding is a common DNAT use case.
What’s the point?… ?
Save public IPv4 addresses and publish certain services in a controlled manner.
Concrete example…
For example, devices on 192.168.1.0/24 can access the Internet using one public IPv4 address through source NAT.
Common problems….
- Redirect to the wrong internal address
- Port already used
- Double NAT
- Confusion between NAT and the Rule ofGart
Related terms….
Note: Exact settings and behavior depend on the product, software version and network environment.