diff options
author | Ermal <eri@pfsense.org> | 2012-07-16 06:35:24 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-16 06:35:24 +0000 |
commit | 39e483f9ac54ffd15db993d9bea675879e8f5f8b (patch) | |
tree | 91fd7430b8a280a9498afe466a136aeb9f78f0fa /config | |
parent | 67774497e3947b6a38fe9952ce7ea15ed3dbd1b3 (diff) | |
download | pfsense-packages-39e483f9ac54ffd15db993d9bea675879e8f5f8b.tar.gz pfsense-packages-39e483f9ac54ffd15db993d9bea675879e8f5f8b.tar.bz2 pfsense-packages-39e483f9ac54ffd15db993d9bea675879e8f5f8b.zip |
Remove nanoseconds
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort_alerts.php | 2 | ||||
-rw-r--r-- | config/snort/snort_blocked.php | 4 |
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); |