| Summary: | Guardian SnortPriorityLevel Not Working - Core116 | ||
|---|---|---|---|
| Product: | IPFire | Reporter: | Douglas Charles Duckworth <dod2014> |
| Component: | --- | Assignee: | Stefan Schantl <stefan.schantl> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | Major Usability | ||
| Priority: | Will affect an average number of users | CC: | dod2014, matthias.fischer, michael.tremer, peter.mueller |
| Version: | 2 | ||
| Hardware: | unspecified | ||
| OS: | Unspecified | ||
| Attachments: | guardian | ||
|
Description
Douglas Charles Duckworth
2017-11-11 19:15:24 UTC
Hi,
I took a quick look at the sources and found this in '/usr/lib/perl5/site_perl/5.12.3/Guardian/Parser.pm' (line 111-116):
...
# Loop through all lines of the current alert.
foreach my $line (@alert) {
# Check Priority Level and skip the alert if it is to low.
#if ($line =~ /.*\[Priority: (\d+)\].*/) {
#return unless($1 < $priority);
#}
...
The IMHO critical lines are commented.
Intentional?
Best,
Matthias
Hi I don't know why this would be commented out since Guardian has a feature to skip alerts based upon threshold. After removing comments: user@ipfire[~]$ sudo /etc/init.d/guardian start Starting Guardian... Global symbol "$priority" requires explicit package name at /usr/lib/perl5/site_perl/5.12.3/Guardian/Parser.pm line 115. Compilation failed in require at /usr/sbin/guardian line 35. |