Networking, DNS & TLS
NAT: how private addresses reach the internet
How forty laptops with private addresses share one public IP, why nothing outside can start a connection to them, and what carrier-grade NAT changes.
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
- HTTP: requests, methods, status codes and headersBeginner · 5 min
What a request and a response actually contain, and how three digits tell you whether to look at the client, the proxy or the app.
- HTTPS and TLS: what the padlock provesBeginner · 5 min
What the browser actually checks before it shows a padlock, what a certificate contains, and why a valid padlock does not mean a site is trustworthy.
- ping and traceroute: is it reachable, and where does it stop?Beginner · 5 min
A one-minute method for deciding whether a failure is your laptop, your gateway, a router halfway, or the far server, and why a failed ping is not proof of anything on…
- curl: send an HTTP request and read the answerBeginner · 5 min
One command that shows DNS, the TCP connection, TLS and the HTTP exchange in order, and how its exit codes point at the layer that failed.
- ss: who is listening on which port?Beginner · 5 min
How to tell in ten seconds whether a service is really listening, on which address, and which process owns the port.
- SSH: logging in with key pairsBeginner · 5 min
How a key pair lets you log in without a password, where each half of the key lives, and the three-item checklist behind 'Permission denied (publickey)'.