aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-12-28 15:56:52 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-28 15:56:52 -0500
commitc7b2fcd5a689cec5cd151556f37eabadb0cb286d (patch)
tree2a91ba44b495fff4f463c45c45fba3406acb3a10
parente21ee2ef12f1302f454df38f030ea8c70dbaa411 (diff)
downloadpfsense-packages-c7b2fcd5a689cec5cd151556f37eabadb0cb286d.tar.gz
pfsense-packages-c7b2fcd5a689cec5cd151556f37eabadb0cb286d.tar.bz2
pfsense-packages-c7b2fcd5a689cec5cd151556f37eabadb0cb286d.zip
Check for ET IQRisk update once every 6 hours instead of once daily.
-rw-r--r--config/suricata/suricata_ip_list_mgmt.php2
-rw-r--r--config/suricata/suricata_post_install.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_ip_list_mgmt.php b/config/suricata/suricata_ip_list_mgmt.php
index ca7f85cf..37decaad 100644
--- a/config/suricata/suricata_ip_list_mgmt.php
+++ b/config/suricata/suricata_ip_list_mgmt.php
@@ -101,7 +101,7 @@ 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")) {
- 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);
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php
index 5000a17d..d5c771be 100644
--- a/config/suricata/suricata_post_install.php
+++ b/config/suricata/suricata_post_install.php
@@ -127,7 +127,7 @@ if ($config['installedpackages']['suricata']['config'][0]['autogeoipupdate'] !=
if ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'on') {
log_error(gettext("[Suricata] Installing Emerging Threats IQRisk IP List..."));
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");
}
// remake saved settings if previously flagged