Quick HOWTO : Ch14 : Linux Firewalls Using iptables – Linux Home Networking.
This site was also linked here last May but is so useful I needed to bring it to the top again. Here’s a pertinent figure that describes the iptables process that I seem to need to reference all the time when editing the iptables config file.