aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_download_rules.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-11-24 00:03:21 -0800
committerrobiscool <robrob2626@yahoo.com>2009-11-24 00:03:21 -0800
commitf1c0379a5678842736ae8c6bc6e142e5108d57f9 (patch)
treea3a472cba2f419fec13170511dfabcec3086a2c7 /config/snort-dev/snort_download_rules.php
parent904ca0c758b5e399c15c80267bbe4e0f27f5c891 (diff)
downloadpfsense-packages-f1c0379a5678842736ae8c6bc6e142e5108d57f9.tar.gz
pfsense-packages-f1c0379a5678842736ae8c6bc6e142e5108d57f9.tar.bz2
pfsense-packages-f1c0379a5678842736ae8c6bc6e142e5108d57f9.zip
snort-dev, add misc files, add emty rule checks
Diffstat (limited to 'config/snort-dev/snort_download_rules.php')
-rw-r--r--config/snort-dev/snort_download_rules.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/snort-dev/snort_download_rules.php b/config/snort-dev/snort_download_rules.php
index a5b2daae..688b89a7 100644
--- a/config/snort-dev/snort_download_rules.php
+++ b/config/snort-dev/snort_download_rules.php
@@ -729,6 +729,9 @@ exec("/usr/local/bin/perl /usr/local/bin/create-sidmap.pl /usr/local/etc/snort/r
/* Start the proccess for every interface rule */
/* TODO: try to make the code smother */
+
+if (!empty($config['installedpackages']['snortglobal']['rule'])) {
+
$rule_array = $config['installedpackages']['snortglobal']['rule'];
$id = -1;
foreach ($rule_array as $value) {
@@ -743,9 +746,9 @@ $if_real = convert_friendly_interface_to_real_interface_name($result_lan);
/* run oinkmaster for each interface rule */
oinkmaster_run();
-
-}
+ }
+}
/* open oinkmaster_conf for writing" function */
function oinkmaster_conf() {