How do I configure SMS to work through my firewall?
Here are some links that should help you:
SMS: How to Use Systems Management Server Through a Firewall
SMS: TCP and UDP Ports Used by Remote Control Have Changed in SP2
SMS: Network Ports Used by Remote Helpdesk Functions
This article also lists not only the SMS ports but other ports used by applications you might need to open on your firewall: