Click here to get back home

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

 HomeNewsGroups | Search

comp.lang.perl.misc - PERL programming language 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl firewall test script - detect whether host not responding or firewall rule not implemented inetquestion 05-05-2009
Posted by inetquestion on May 5, 2009, 10:15 pm
Please log in for more thread options
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
Please log in for more thread options

show/hide quoted text

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


Similar ThreadsPosted
Webmin-firewall produces perl error after apt-get upgrade June 4, 2005, 3:35 am
LWP and firewall January 10, 2006, 11:59 am
Windows firewall administration June 19, 2008, 9:11 pm
PERL CGI Script Responding to Link December 29, 2007, 11:44 am
Test Sending Emails Via CGI from PC (local host): Is It Possible? May 19, 2005, 2:33 am
Perl script not enterpreting images after moving site to different host September 4, 2006, 1:18 pm
How do I detect if I have incoming data in when I pipe somethingto my perl script ? August 5, 2004, 2:45 pm
Weak references are not implemented in the version of perl at /tmp/replacebinary/Getopt/LL/DLList/Node.pm line 11 November 3, 2007, 11:30 pm
simple response not implemented August 1, 2007, 7:08 am
HTTP stops responding after FTP upload February 1, 2006, 1:29 pm

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

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy