Click here to get back home

Perl firewall test script - detect whether host not responding or firewall rule not implemented

 HomeNewsGroups | Search

get this group's latest topics as an RSS feed  comp.lang.perl.misc - PERL programming language

please rate
this thread
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by inetquestion on May 5, 2009, 10:15 pm
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.

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.

-Inet

Posted by Ben Morrow on May 6, 2009, 12:18 am



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.

Ben



Subject Author Date
Perl firewall test script - detect whether host not responding or firewall rule not implemented inetquestion 05-05-2009
If you were  Registered and logged in, you could reply and use other advanced thread options
  • Subject
  • Date

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

1-Script XML SitemapXML Sitemap
Privacy Policy