diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-13 15:26:20 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-13 15:26:20 -0400 |
commit | e9423bf7fb424aad2474a07a01b5623859ba73ca (patch) | |
tree | e496b63cf36f6513da9a65ce3f6629098799316d /config/snort/snort_list_view.php | |
parent | 132ee0dc4278e6f5a521259d06c7572bf9258f3e (diff) | |
download | pfsense-packages-e9423bf7fb424aad2474a07a01b5623859ba73ca.tar.gz pfsense-packages-e9423bf7fb424aad2474a07a01b5623859ba73ca.tar.bz2 pfsense-packages-e9423bf7fb424aad2474a07a01b5623859ba73ca.zip |
Improve HOME_NET and EXTERNAL_NET generation and allow viewing of results.
Diffstat (limited to 'config/snort/snort_list_view.php')
-rw-r--r-- | config/snort/snort_list_view.php | 14 |
1 files changed, 14 insertions, 0 deletions
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!"); } |