Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 6, 2009, 2:15 am
rate this thread
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.
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.
Re: Perl firewall test script - detect whether host not responding or firewall rule not implemented
That depends on what your firewall does when it blocks a connection, and
whether it rewrites packets that do get through. If you can identify
from (say) a tcpdump log whether a connection was firewalled or not, you
can do it from Perl; otherwise, you can't.
- » FAQ 6.19 Why does using $&, $`, or $' slow my program down?
- — Previous thread in » PERL Discussions