If you don't understand iptables, you are cooked - Part 1: Building a Router
A hands-on deep dive into what iptables really is, and a lab that turns a plain Linux box into a NAT router with a single MASQUERADE rule.

A hands-on deep dive into what iptables really is, and a lab that turns a plain Linux box into a NAT router with a single MASQUERADE rule.

Two plain Linux hosts - no Docker - for building a container out of a network namespace and publishing its port with nothing but nat rules. Companion playground for the tutorial "If you don't understand iptables, you are cooked - Part 2".
Two VMs: no-internet sits on a private LAN with no route out; have-internet is dual-homed with real internet access. Turn have-internet into a NAT router for the tutorial "If you don't understand iptables, you are cooked - Part 1".