Project

General

Profile

Bug #10431

pfBlockerNG Cron Job wrong - Clear IP / DNSBL Statistics

Added by Luki TJ 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Very Low
Assignee:
-
Category:
pfBlockerNG
Target version:
-
Start date:
04/05/2020
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.4.4-p3
Affected Architecture:
amd64

Description

Configuring on the pfBlockerNG Widget the Statistic clearance on a weekly frequency results in this cron config:

  • 0 * * 7 root /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php clearip >/dev/null 2>&1
  • 0 * * 7 root /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cleardnsbl >/dev/null 2>&1

The Jobs are defined to run on Sunday every minute from 0:00AM to 0:59AM. The timer should be:

minute hour mday month wday
0 0 * * 7

Tested on pfBlockerNG-devel 2.2.5_29

History

#1 Updated by Luki TJ 4 months ago

Preview function is your friend. Cron looks like

*     0     *     *     7     root     /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php clearip >/dev/null 2>&1

But shoud be

minute  hour    mday    month   wday    who     command
0       0       *       *       7       root    /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php clearip >/dev/null 2>&1

#2 Updated by Jim Pingle 4 months ago

  • Project changed from pfSense to pfSense Packages
  • Category changed from Dashboard to pfBlockerNG

Also available in: Atom PDF