diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-08-27 18:15:44 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-08-27 18:15:44 -0400 |
commit | ce07b15de33b4847df5498f9bbae93e2b1e893ca (patch) | |
tree | 9d78a73c101f5b8d0fde9535c314e2fa64e14211 /config/suricata/suricata_generate_yaml.php | |
parent | 0d2f8f00a6a442f5672e5fe8f62a1f4d21da6a9b (diff) | |
download | pfsense-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_generate_yaml.php')
-rw-r--r-- | config/suricata/suricata_generate_yaml.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/suricata/suricata_generate_yaml.php b/config/suricata/suricata_generate_yaml.php index 91dc06a5..05d6dea8 100644 --- a/config/suricata/suricata_generate_yaml.php +++ b/config/suricata/suricata_generate_yaml.php @@ -68,11 +68,11 @@ foreach ($suricata_files as $file) { $home_net_list = suricata_build_list($suricatacfg, $suricatacfg['homelistname']); $home_net = implode(",", $home_net_list); $home_net = trim($home_net); -$external_net = '!$HOME_NET'; +$external_net = 'any'; if (!empty($suricatacfg['externallistname']) && $suricatacfg['externallistname'] != 'default') { - $external_net_list = suricata_build_list($suricatacfg, $suricatacfg['externallistname']); + $external_net_list = suricata_build_list($suricatacfg, $suricatacfg['externallistname'], false, true); $external_net = implode(",", $external_net_list); - $external_net = trim($external_net); + $external_net = '[' . trim($external_net) . ']'; } // Set the PASS LIST and write its contents to disk |