How to detect host not responding or firewall rule not implemented

Is there any scriptable way to know why a connection failed from the source? For example when a failure occurs...to know whether the connection was blocked by the firewall or it made it through but the remote host was not listening.

I submitted some firewall rules today which will be implemented before all the destination hosts are live on the network. In the past I put a perl script on each source server and controlled them from a central location to initiate a connection to each of the destinations to check the connectivity. In this case that will not work.

-Inet

Reply to
inetquestion
Loading thread data ...

It may also depend on whether the fw is in stealth mode or not, ie. was the connection actively refused, or did the connection sit there and timeout. both scenarios could happen in both situations.

Flamer.

Reply to
die.spam

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.