aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort_alerts.php2
-rw-r--r--config/snort/snort_blocked.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index df894b05..ea5c6cb5 100644
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -306,7 +306,7 @@ if (file_exists("/var/log/snort/snort_{$if_real}{$snort_uuid}/alert")) {
<td class='listr' width='5%' >{$alert_priority}</td>
<td class='listr' width='3%'>{$alert_proto}</td>
<td class='listr' width='7%' >{$alert_class}</td>
- <td class='listr' width='15%'>{$alert_ip_src}:{$alert_src_p}</td>
+ <td class='listr' width='15%'>{$alert_ip_src}</td>
<td class='listr' width='5%'>{$alert_src_p}</td>
<td class='listr' width='15%'>{$alert_ip_dst}</td>
<td class='listr' width='5%'>{$alert_dst_p}</td>
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php
index 295b5b2d..70838ed8 100644
--- a/config/snort/snort_blocked.php
+++ b/config/snort/snort_blocked.php
@@ -230,12 +230,12 @@ if ($pconfig['brefresh'] == 'on')
if (isset($tmpblocked[$fields[6]])) {
if (!is_array($src_ip_list[$fields[6]]))
$src_ip_list[$fields[6]] = array();
- $src_ip_list[$fields[6]][] = "{$fields[4]} - {$fields[0]}";
+ $src_ip_list[$fields[6]][] = "{$fields[4]} - " . substr($fields[0], 0, -8);
}
if (isset($tmpblocked[$fields[8]])) {
if (!is_array($src_ip_list[$fields[8]]))
$src_ip_list[$fields[8]] = array();
- $src_ip_list[$fields[8]][] = "{$fields[4]} - {$fields[0]}";
+ $src_ip_list[$fields[8]][] = "{$fields[4]} - " . substr($fields[0], 0, -8);
}
}
fclose($fd);