Networking, DNS & TLS
NAT and PAT
Explain how NAT and PAT rewrite addresses and ports through a binding table, why inbound access needs a static mapping, and why idle bindings can expire while the link is healthy.
What you will be able to do
- Explain how a NAT binding maps a private address and port to a public one.
- Decide what static mapping and keepalive a server needs to be reachable from outside.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- Routing tablesIntermediate · 4 min
Explain how a routing table picks the longest matching prefix, what route types and proto fields show, and how to ask the kernel which route a destination uses.
- Policy routingIntermediate · 4 min
Explain how policy rules run in priority order and select a routing table by source address or fwmark, so a host with two uplinks sends replies out the right link.
- Conntrack table exhaustionIntermediate · 4 min
Explain how the conntrack table tracks each flow, why its timeouts decide how many entries stay, and how to tell a full table from a CPU or memory limit.
- TCP three way handshakeIntermediate · 4 min
Explain the TCP three-way handshake and what each SYN, SYN-ACK and ACK packet carries, and how a one-second pause before a connection can point to a lost SYN.
- TCP retransmissionAdvanced · 4 min
Explain how TCP computes its retransmission timeout from round-trip time and its variation, doubles it after each timeout, and how to measure loss before tuning anything.
- UDP behaviorAdvanced · 4 min
Explain what the UDP header contains and what UDP leaves out, such as acknowledgement and retransmission, and how to find datagrams dropped silently at a full receive…