aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_list_view.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-08-27 18:15:44 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-08-27 18:15:44 -0400
commitce07b15de33b4847df5498f9bbae93e2b1e893ca (patch)
tree9d78a73c101f5b8d0fde9535c314e2fa64e14211 /config/suricata/suricata_list_view.php
parent0d2f8f00a6a442f5672e5fe8f62a1f4d21da6a9b (diff)
downloadpfsense-packages-ce07b15de33b4847df5498f9bbae93e2b1e893ca.tar.gz
pfsense-packages-ce07b15de33b4847df5498f9bbae93e2b1e893ca.tar.bz2
pfsense-packages-ce07b15de33b4847df5498f9bbae93e2b1e893ca.zip
Improve HOME_NET and EXTERNAL_NET variable generation.
Diffstat (limited to 'config/suricata/suricata_list_view.php')
-rw-r--r--config/suricata/suricata_list_view.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/suricata/suricata_list_view.php b/config/suricata/suricata_list_view.php
index 722bf47a..dc5a2b04 100644
--- a/config/suricata/suricata_list_view.php
+++ b/config/suricata/suricata_list_view.php
@@ -58,6 +58,11 @@ if (isset($id) && isset($wlist)) {
$contents = str_replace("\r", "", base64_decode($list['suppresspassthru']));
$title = "Suppress List";
}
+ elseif ($type == "externalnet") {
+ $list = suricata_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!");
}