aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_uninstall.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-04-30 16:14:29 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-04-30 16:14:29 -0400
commitf15023b3676134fe19fd67bcaa97d9d243698f5a (patch)
tree7ad8c658e44f250ca1e00a27f2da6b5a61de6c3d /config/suricata/suricata_uninstall.php
parente92e5316b6452be27f6e4d6a10629562fbe160ee (diff)
downloadpfsense-packages-f15023b3676134fe19fd67bcaa97d9d243698f5a.tar.gz
pfsense-packages-f15023b3676134fe19fd67bcaa97d9d243698f5a.tar.bz2
pfsense-packages-f15023b3676134fe19fd67bcaa97d9d243698f5a.zip
Fix bug in cron task edit for 'rm_blocked' hosts
Diffstat (limited to 'config/suricata/suricata_uninstall.php')
-rw-r--r--config/suricata/suricata_uninstall.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/suricata/suricata_uninstall.php b/config/suricata/suricata_uninstall.php
index b8ea6097..558069be 100644
--- a/config/suricata/suricata_uninstall.php
+++ b/config/suricata/suricata_uninstall.php
@@ -35,6 +35,7 @@ $suricatadir = SURICATADIR;
$suricatalogdir = SURICATALOGDIR;
$rcdir = RCFILEPREFIX;
$suricata_rules_upd_log = RULES_UPD_LOGFILE;
+$suri_pf_table = SURICATA_PF_TABLE;
log_error(gettext("[Suricata] Suricata package uninstall in progress..."));
@@ -64,6 +65,7 @@ mwexec('/usr/sbin/pw userdel suricata; /usr/sbin/pw groupdel suricata', true);
/* Remove the Suricata cron jobs. */
install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/www/suricata/suricata_check_for_rule_updates.php", false);
install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_check_cron_misc.inc", false);
+install_cron_job("pfctl -t {$suri_pf_table} -T expire" , false);
/* See if we are to keep Suricata log files on uninstall */
if ($config['installedpackages']['suricata']['config'][0]['clearlogs'] == 'on') {