Tonight I figured out how to use Firewall Builder, a GUI for creating firewalls (with iptables, in my case). The GUI is fairly easy to use and lets you quickly write very complicated firewall rules. I highly recommend this GUI.