iptables' Four Tables and Five Chains and Basic Principles of NAT
As the most common userspace tool for controlling netfilter, the concepts of "four tables and five chains" in iptables can be confusing for beginners. This is the clearest article I've found so far that explains its structure and working process. Reproduced from https://tinychen.com/20200414-iptables-principle-introduction/.