Recently there have been a number of questions about how to have SMS working with firewalls. These KBs and documents will help you set up your firewall correctly.

Scenarios and Procedures for Microsoft Systems Management Server 2003: Security
https://www.microsoft.com/downloads/details.aspx?FamilyID=3d81b520-a203-4376-a72d-fd34a6c4a44c&DisplayLang=en

 

Service overview and network port requirements for the Windows Server system
https://support.microsoft.com/kb/832017

 

Ports that Systems Management Server 2003 uses to communicate through a firewall or through a proxy server
https://support.microsoft.com/kb/826852

 

How To Restrict TCP/IP Ports on Windows 2000 and Windows XP

https://support.microsoft.com/kb/300083/