diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-29 11:08:44 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-29 11:08:44 -0200 |
commit | 28c552b11ab71035755720ff2a6092f45b961439 (patch) | |
tree | 6cfafb8f0a07535ef511d7f7f2cbea9e6dfd611d /config/suricata/suricata_ip_list_mgmt.php | |
parent | 6b948d63887c06c2ba4d8dc488c14b69df28322a (diff) | |
parent | 20518f1fbae82aee10ee617636f5fdb66209d324 (diff) | |
download | pfsense-packages-28c552b11ab71035755720ff2a6092f45b961439.tar.gz pfsense-packages-28c552b11ab71035755720ff2a6092f45b961439.tar.bz2 pfsense-packages-28c552b11ab71035755720ff2a6092f45b961439.zip |
Merge pull request #761 from bmeeks8/suricata-2.0.4-v2.1.2
Diffstat (limited to 'config/suricata/suricata_ip_list_mgmt.php')
-rw-r--r-- | config/suricata/suricata_ip_list_mgmt.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config/suricata/suricata_ip_list_mgmt.php b/config/suricata/suricata_ip_list_mgmt.php index ee3a7009..37decaad 100644 --- a/config/suricata/suricata_ip_list_mgmt.php +++ b/config/suricata/suricata_ip_list_mgmt.php @@ -101,11 +101,14 @@ if ($_POST['save']) { /* Toggle cron task for ET IQRisk updates if setting was changed */ if ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'on' && !suricata_cron_job_exists("/usr/local/pkg/suricata/suricata_etiqrisk_update.php")) { - include("/usr/local/pkg/suricata/suricata_etiqrisk_update.php"); - install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_etiqrisk_update.php", TRUE, 0, 0, "*", "*", "*", "root"); + install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_etiqrisk_update.php", TRUE, 0, "*/6", "*", "*", "*", "root"); } elseif ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'off' && suricata_cron_job_exists("/usr/local/pkg/suricata/suricata_etiqrisk_update.php")) install_cron_job("/usr/local/pkg/suricata/suricata_etiqrisk_update.php", FALSE); + + /* Peform a manual ET IQRisk file check/download */ + if ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'on') + include("/usr/local/pkg/suricata/suricata_etiqrisk_update.php"); } } @@ -287,7 +290,9 @@ if ($savemsg) height="17" border="0" title="<?php echo gettext('Import/Upload an IP List');?>"/></th> </tr> </thead> - <?php foreach ($ipfiles as $file): ?> + <?php foreach ($ipfiles as $file): + if (substr(strrchr($file, "."), 1) == "md5") + continue; ?> <tr> <td class="listr"><?php echo gettext($file); ?></td> <td class="listr"><?=date('M-d Y g:i a', filemtime("{$iprep_path}{$file}")); ?></td> |