Issue:
pfBlockerNG on pfSense loses saved lists when the system is powered off or rebooted due to the use of a RAMdisk.
Error Message:
Unresolvable source alias ‘pfB_xxx_xxx’ for rule ‘XXXXXXX’ @ 2024-xx-xx 00:00:00
Attempted Solution:
Creating a cron job on reboot to reload the pfBlockerNG block lists lost on the RAMdisk.
Solution:
To ensure that pfBlockerNG lists are persistent despite system reboots, follow these steps:
Add the Script to the Firewall Cron:
Navigate to System > Cron in the pfSense web interface.
Add a new cron job with the following settings:
Schedule: @reboot
Command:
/bin/sleep 90 && /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log && /etc/rc.reload_all 2>&1