Here is a quick link regarding Firewall ports used by SCCM 2012

http://go.microsoft.com/fwlink/?LinkID=391457