Vol. I · No. 46The hardware sectionSat, 10 Oct 2026
Layer 3 · Network device

NAT Gateway

the address translator

A NAT gateway lets many private hosts share one public IP address. It rewrites the source address of outgoing packets, tracks each connection in a table, and maps the replies back to the right host — the reason your whole home shares one address.

A NAT gateway hides many private addresses behind one public IP and steers each reply back to its host.

Operates at
Layer 3
Network
Rewrites
The source
address + port
Maps
Many → one
private → public
Side effect
Hides hosts
from outside

How it works

Many private addresses, one public one
Private LAN
10.0.0.0/24
many hosts
private source
NAT
rewrite source
+ remember
public source
The internet
sees one address
203.0.113.7
The translation table
10.0.0.9 : 51000 ← match203.0.113.7 : 40001
10.0.0.12 : 52000203.0.113.7 : 40002

Each host’s private address and port are rewritten to the one public IP with a unique port. The gateway remembers the mapping, so when a reply arrives it knows exactly which host to hand it back to.

The main points

What a NAT gateway does, step by step

1
Packet leaves the LAN

A host sends out a packet with its private source address.

2
Rewrite the source

The gateway swaps in the public IP and a fresh source port.

3
Record the mapping

It stores private ↔ public in its translation table.

4
Translate the reply

When the reply returns, it looks up the port and restores the private address.

In cybersecurity

NAT hides the internal network as a side effect — useful, but not a firewall on its own.

Implicit hiding

Outside hosts can’t address internal machines directly.

Not a firewall

Add real filtering; NAT enforces no policy by itself.

Port-forwarding risk

Every port you open is a hole punched inward.

Connection tracking

The state table is a target for exhaustion attacks.

CGNAT & logging

Attribution needs port-level logs at scale.

Pair with a firewall

Run NAT and a firewall together, never NAT alone.

Protocols it runs

IPv4TCPUDP

Sits beside

RouterFirewall

On the bench

A photograph of a nat gateway belongs here