I'm pretty sure this actually gets taken care of for you by
system-config-printer or the gnome control center printer pref.
It's been a long time since I setup a printer, but I think it asks you
if you wish to modify your firewall and does so if you approve?
kevin