Here is a howto with a Configuration on startup section. Looks like you can just create a rules file and have the networking make the iptables calls https://help.ubuntu.com/community/IptablesHowTo -- "There's plenty of room for all God's creatures... Right next to the mashed potatoes."