Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    More frequent CRON interval options

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 542 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rtw915
      last edited by rtw915

      Recently the company I work for has had an increase in malicious activity. The web developers have created a system to look through the IIS logs and back end SQL query to identify bad actors that slipped by SNORT and our existing reputation lists managed by pfBlockerNG. They ended up having a database of bad actors we identified internally and then have a separate process to write the source IPs to a text file which we ingest into the firewall using pfBlockerNG. Everything is working and it was even fun to set up! The problem is that file is updated every 5 minutes so pfblockerNG is at most 55 minutes behind. Is there a way to increase the update frequency to 10 to 15 min, so we don't have to run it manually so frequently?

      Thank you

      1 Reply Last reply Reply Quote 0
      • R
        rtw915
        last edited by

        I am still stuck on this. Under the CRON jobs I tried to edit this from this:

        0	*	*	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1
        

        to this:

        */15	*	*	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1
        

        However, the Updates tab in pfBlockerNG says that the CRON job is missing, and then deletes the job and creates a new one with the hourly update interval.

        So this does not work

        029fc370-1673-415e-aaf3-b14ace3414de-image.png

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @rtw915
          last edited by

          @rtw915 said in More frequent CRON interval options:

          I am still stuck on this. Under the CRON jobs I tried to edit this from this:

          0	*	*	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1
          

          to this:

          */15	*	*	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1
          

          However, the Updates tab in pfBlockerNG says that the CRON job is missing, and then deletes the job and creates a new one with the hourly update interval.

          So this does not work

          You should not change these cron entries.
          They are set and maintained by the pfblockerng package.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.