[Snort-devel] 'check config file' feature

Dirk Geschke Dirk_Geschke at ...802...
Wed Jun 2 02:19:01 EDT 2004


Hi Daniel,

> Here is a patch which provides a 'Check Config' feature.
> 
> Patch tested on:
> snort-2.1.2
> 
> Execution:
> snort -Z -c /your/config/file

what is bad with the -T option of snort?

       -T     Snort will start up in self-test mode, checking all
              the supplied command line switches and rules  files
              that  are  handed  to it and indicating that every­
              thing is ready to proceed.  This is a  good  switch
              to use if daemon mode is going to be used, it veri­
              fies that the Snort configuration that is about  to
              be  used is valid and won't fail at run time. Note,
              Snort   looks   for   either   /etc/snort.conf   or
              ./snort.conf.   If your config lives elsewhere, use
              the -c option to specify a valid config-file.

I think this is nearly the same as your patch offers?

Best regards

Dirk





More information about the Snort-devel mailing list