DNAT and SNAT

Rewriting packet addresses: DNAT changes the destination, as in port forwarding, while SNAT and masquerade change the source so private hosts can share one public address.

In more detail

Port address translation lets many hosts share one address by giving each connection its own port. A Linux router also needs net.ipv4.ip_forward set to 1.

Related terms

Taught in

References

Certification courses