From [1], I got two references [2,3]。 Reference [2] is the primary source for building up firewalls using iptables commands.
Ref. [4] provides a very brief introduction of firewall using iptables commands.
Ref. [5] also shows that iptables commands are the most popular firewall commands used in Linux systems. There is a packet flow diagram showing the details of packet flows.