Firewall on Asterisk

Has anyone successfully implemented the shorewall firewall on an Asterisk system in order to secure from intrusion etc. I wish to implement the firewall on my Asterisk system to be able to allow only specific ports / applications access.