Project

General

Profile

Actions

Bug #10431

closed

pfBlockerNG Cron Job wrong - Clear IP / DNSBL Statistics

Added by Luki TJ over 4 years ago. Updated about 3 years ago.

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

0%

Estimated time:
Plus Target Version:
Affected Version:
2.4.4-p3
Affected Plus Version:
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

Actions #1

Updated by Luki TJ over 4 years 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
Actions #2

Updated by Jim Pingle over 4 years ago

  • Project changed from pfSense to pfSense Packages
  • Category changed from Dashboard to pfBlockerNG
Actions #3

Updated by Viktor Gurov about 3 years ago

  • Status changed from New to Resolved

no such issue with pfBlockerNG-devel 3.1.0 (fixed):

# grep pfblocker /etc/crontab
0    0    *    *    7    root    /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php clearip >/dev/null 2>&1
0    0    *    *    7    root    /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cleardnsbl >/dev/null 2>&1

Actions

Also available in: Atom PDF