From e9423bf7fb424aad2474a07a01b5623859ba73ca Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Sat, 13 Sep 2014 15:26:20 -0400 Subject: Improve HOME_NET and EXTERNAL_NET generation and allow viewing of results. --- config/snort/snort_list_view.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config/snort/snort_list_view.php') diff --git a/config/snort/snort_list_view.php b/config/snort/snort_list_view.php index 8c3d0134..54f4d7f1 100644 --- a/config/snort/snort_list_view.php +++ b/config/snort/snort_list_view.php @@ -66,6 +66,20 @@ if (isset($id) && isset($wlist)) { $contents = str_replace("\r", "", base64_decode($list['suppresspassthru'])); $title = "Suppress List"; } + elseif ($type == "externalnet") { + if ($wlist == "default") { + $list = snort_build_list($a_rule, $a_rule['homelistname']); + $contents = ""; + foreach ($list as $ip) + $contents .= "!{$ip}\n"; + $contents = trim($contents, "\n"); + } + else { + $list = snort_build_list($a_rule, $wlist, false, true); + $contents = implode("\n", $list); + } + $title = "EXTERNAL_NET"; + } else $contents = gettext("\n\nERROR -- Requested List Type entity is not valid!"); } -- cgit v1.2.3