When applying firewall rules at L3 I tend to become unsure of where to place specific information. For example, a blanket drop on in-interface=WAN will block, presumably, the return path of traffic from the WAN resulting in no internet connectivity. So you might specify “block all input on ether1 when src-IP is not in LAN-list”. But then you can get into the weeds of “from what perspective” input/output? And how might that implicate the need for a further rule or changing the one you intended to make? This boils down to not really understanding packet flow, but reading the docs, I still feel there’s a need for illustrative examples to grasp. It is complex.
So as a teaching aid can somebody illustrate the traversal taking place for a simple ping to the Google DNS? So your computer sends a ping outbound, this passes the WAN interface, Google’s servers return ICMP and the router returns that back to your computer. What does the firewall/iptables chain/traversal for this look like in terms of INPUT/OUTPUT, SRC-IP/DST-IP? Bearing in mind you will also have IP masquerading taking place to have all inbound/outbound traffic over the WAN replaced with or destined to the WAN interface IP rather than what’s behind it (your private LAN IP’s).
What does this look like?