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

    Trying to run pfBlockerNG-devel update automatically after reboot

    Scheduled Pinned Locked Moved pfBlockerNG
    2 Posts 1 Posters 191 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.
    • provelsP
      provels
      last edited by

      Good morning. Kind of struggling here, since I'm pretty FreeBSDumb. I run /var and /tmp in ramdisk, therefore my blacklists are getting wiped after every reboot (a VM rebooting only because of Windows updates). I see a list of parameters that can be passed to
      /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php
      like 'update', 'updateip', 'updatednsbl', 'dc', 'dcc', 'bu', 'uc', 'gc', 'al', 'bl', 'bls', 'cron', 'ugc', and looking at the PHP it seems that 'update' would be the one I want. It runs fine from the shell and updates all the feeds, but when I put it in a cron job running @reboot all it seems to do is update the MaxMind IPs. I think I'm looking for the command executed with the "Reload" and "All" radio buttons on the Update page? Thanks for reading and I appreciate any input.

      7c24d056-1105-4807-81fc-fb3651c0732e-image.png

      Peder

      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

      1 Reply Last reply Reply Quote 0
      • provelsP
        provels
        last edited by provels

        Just bumping this in case someone has a thought on it. I've also tried running this script as a shellcmd, but w/o success.

        #!/bin/sh
        sleep 120
        /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php update >> /var/log/pfblockerng/pfblockerng.log
        exit
        

        Peder

        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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