Config Options
The config options are used to specify global configuration parameters for
snort. Currently there are only two, although more will be added in the
future to encompass many of the commandline options. The syntax for a config
option is:
config $option: $args
The available options are order and alertfile.
Order
The order option is used to specify the order that the various ruletypes
are evaluated. If any of the ruletypes are not specified in the argument list
then those types are added to the end of the list in the order there were
created. The default order is:
activation->dynamic->alert->log->pass
To change this from the default, you would include a line like:
config order: dynamic pass activation alert log
And specify the desired order. This option will be overidden if the -o
commandline option is specified.
Alertfile
The alertfile option is used to specify the alertfile to use. This
value will only be used if either, (1) one of the -A commandline options
is specified, or (2) no alert commandline option is given AND there are no
alert output plugins in the rule file. If the filename argument is relative,
then either /var/log or the specified log directory is prepended to it.
The default alert file is /var/log/snort.alert in daemon mode and
$log_dir/alert otherwise. This example will set the alert file to
/var/snort/snort.alert:
config alertfile: /var/snort/snort.alert