Update of /cvsroot/netpass/NetPass-Snort/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12386/NetPass-Snort/bin
Modified Files:
npsnortd.pl
Log Message:
added a test cmd to check the validity of generated rules.
if the test fails, the backup rules file will be restored.
Index: npsnortd.pl
===================================================================
RCS file: /cvsroot/netpass/NetPass-Snort/bin/npsnortd.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- npsnortd.pl 16 Aug 2005 21:23:28 -0000 1.2
+++ npsnortd.pl 4 Jan 2006 16:02:09 -0000 1.3
@@ -15,6 +15,7 @@
-p pidfile snort pid file
-f cmd command used to start/stop snort
-t refreshrate amount of time to wait before refreshing the list of networks we are watching
+ -T test script script used to test whether changes to the snort config are valid
-b rules file containing the pcap rules to be sent to snort on startup
-q include pcap filters in snort for filtering quarantine traffic
-h this message
@@ -72,7 +73,7 @@
my $TIMEOUT = 300;
my $DEFAULTSNORTPID = "/var/run/snort_dag0.pid";
-getopts('s:S:p:P:r:l:f:t:b:qDh?', \%opts);
+getopts('s:S:p:P:r:l:f:t:T:b:qDh?', \%opts);
pod2usage(2) if exists $opts{'h'} || exists $opts{'?'};
pod2usage(2) if !exists $opts{'s'} || !exists $opts{'S'};
|