Hi, let me see if I can explain my problem

I have a Cisco PIX firewall on my local LAN, it opens 1025 ports for communication and I have a software that randomly uses 3 out of those 1025 opened ports for each session of the software. Now What I need to do is to control those ports, so when the software selects wich 3 port it is going to use, I need to close the other 1022 port, for security reasons...

Has anyone done somethig like this?, how can I achieve this using VB.

Please any help or suggestions would be appreciated.

Thanks in advance.

Alejandro.