From 3e99c60333f4a1cd5f5c57f1ecc36e857d653485 Mon Sep 17 00:00:00 2001
From: bmeeks8
Date: Sat, 25 Jan 2014 20:53:15 -0500
Subject: Mimic all DNS lookup features of F/W log with Alerts
---
config/snort/snort_alerts.php | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index 7e8c3a6c..8b00bf00 100755
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -264,16 +264,14 @@ include_once("head.inc");
?>
-
+
\n";
-?>
-
-' . $pgtitle . '
';}
+if($pfsense_stable == 'yes'){echo '' . $pgtitle . '
';}
/* Display Alert message */
if ($input_errors) {
print_input_errors($input_errors); // TODO: add checks
@@ -403,8 +401,11 @@ if (file_exists("/var/log/snort/snort_{$if_real}{$snort_uuid}/alert")) {
$alert_ip_src = $fields[6];
/* Add zero-width space as soft-break opportunity after each colon if we have an IPv6 address */
$alert_ip_src = str_replace(":", ":", $alert_ip_src);
- /* Add Reverse DNS lookup icon */
- $alert_ip_src .= "
";
+ /* Add Reverse DNS lookup icons */
+ $alert_ip_src .= "
";
+ $alert_ip_src .= "";
+ $alert_ip_src .= " ";
$alert_ip_src .= "";
/* Add icons for auto-adding to Suppress List if appropriate */
@@ -430,8 +431,11 @@ if (file_exists("/var/log/snort/snort_{$if_real}{$snort_uuid}/alert")) {
$alert_ip_dst = $fields[8];
/* Add zero-width space as soft-break opportunity after each colon if we have an IPv6 address */
$alert_ip_dst = str_replace(":", ":", $alert_ip_dst);
- /* Add Reverse DNS lookup icon */
- $alert_ip_dst .= "
";
+ /* Add Reverse DNS lookup icons */
+ $alert_ip_dst .= "
";
+ $alert_ip_dst .= "";
+ $alert_ip_dst .= " ";
$alert_ip_dst .= "";
/* Add icons for auto-adding to Suppress List if appropriate */
--
cgit v1.2.3