Hi,
so DB is running inside, but where is WebSpeed?
If WebSpeed is running at the web server, than you have to go through firewall just with the ports you used for the database (inclusive min- an maxport range).
Otherwise you have to open the ports used by the messenger.
But you...