Port

Hi,
how can I know if a port is already closed by fire wall ?
And by which instruction to close or open this port ?
Many thanks before.

You will have to use a port scanner
To close a port, apply good rules to firewall or if they're in /etc/services comment them and restart inetd

vi /etc/services; refresh -s inetd