Lion Cipher Lab

Trace your routing table and NAT: how a packet actually leaves your machine

Why it matters

Almost everyone who works with computers can say the words 'it goes to the router,' and almost nobody can say what that actually means: which router, chosen how, with what address on the packet, and why the reply ever finds its way home. That gap is where a surprising amount of real confusion lives. It is why people cannot explain why they can reach the internet but the internet cannot reach their laptop; why 'port forwarding' feels like magic instead of a table entry; why two houses can both use 192.168.1.10 with no conflict; why a VPN or a container suddenly 'can't see the network'; and why…

What you'll learn

Steps in this lab

  1. What a routing table is — and why the kernel consults it for every packet
  2. Read your own routing table
  3. Watch the kernel pick a route: loopback vs LAN vs the internet
  4. Private vs public: see NAT happen with your own eyes
  5. How the reply finds its way home: the NAT translation table (conntrack)
  6. The judgment step: NAT is not a firewall — plus CGNAT and port forwarding
  7. What you learned — and the deeper follow-on

Open the full interactive lab →