aboutsummaryrefslogtreecommitdiffstats
path: root/config/pfblockerng/pfblockerng_alerts.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-08 08:18:41 -0300
committerRenato Botelho <renato@netgate.com>2015-09-08 08:18:41 -0300
commitaf08522a6f705b64c1d0ba91b10c63c0ac8ec46d (patch)
tree31b7de02355b2037ab9a2d16870ca4758d8a5db8 /config/pfblockerng/pfblockerng_alerts.php
parent85e9beb74e3184a72af621f9a4cf4b42d62de743 (diff)
parentd7152f8d965ed3b22f7b64eaadd6a4f77dfe58d8 (diff)
downloadpfsense-packages-af08522a6f705b64c1d0ba91b10c63c0ac8ec46d.tar.gz
pfsense-packages-af08522a6f705b64c1d0ba91b10c63c0ac8ec46d.tar.bz2
pfsense-packages-af08522a6f705b64c1d0ba91b10c63c0ac8ec46d.zip
Merge pull request #1033 from BBcan177/pfBlockerNG083015
Diffstat (limited to 'config/pfblockerng/pfblockerng_alerts.php')
-rw-r--r--config/pfblockerng/pfblockerng_alerts.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/pfblockerng/pfblockerng_alerts.php b/config/pfblockerng/pfblockerng_alerts.php
index bfb15c07..7253d04d 100644
--- a/config/pfblockerng/pfblockerng_alerts.php
+++ b/config/pfblockerng/pfblockerng_alerts.php
@@ -451,7 +451,7 @@ function conv_log_filter_lite($logfile, $nentries, $tail, $pfbdenycnt, $pfbpermi
}
// Skip Repeated Alerts
- if (($pfbalert[3] . $pfbalert[8] . $pfbalert[10]) == $previous_dstip || ($pfbalert[3] . $pfbalert[7] . $pfbalert[9]) == $previous_srcip) {
+ if (($pfbalert[1] . $pfbalert[3] . $pfbalert[7] . $pfbalert[8] . $pfbalert[10]) == $previous_alert) {
continue;
}
@@ -489,8 +489,7 @@ function conv_log_filter_lite($logfile, $nentries, $tail, $pfbdenycnt, $pfbpermi
}
// Collect Details for Repeated Alert Comparison
- $previous_srcip = $pfbalert[3] . $pfbalert[7] . $pfbalert[9];
- $previous_dstip = $pfbalert[3] . $pfbalert[8] . $pfbalert[10];
+ $previous_alert = $pfbalert[1] . $pfbalert[3] . $pfbalert[7] . $pfbalert[8] . $pfbalert[10];
}
unset ($pfbalert, $logarr);
return $fields_array;