Been setting up pfblocker to block unwanted IPlists from my Network, but encountered a “not enough” memory error when adding big lists.
In short I used the build in file manager from Diagnostics – Edit File to modify 2 files:
Do yourself a favor and make a note on what you change, as shown below.
/etc/inc/config.inc and changed ini_set("memory_limit","128M"); to 500M
/usr/local/pkg/pfblocker.inc and added ini_set('memory_limit', '490M');
Setting Suhosin memory limit.
The above is not enoug in itself, as we also need to raise the Suhosin memory cap in php.ini
I’m using Diagnostics – File Manager to find the file. File Manager is a Package you can install from System – Packages:
Edit the php.ini file located in /usr/local/lib/php.ini
Now we need to restart the Webgui for settings to take effect. Either reboot the entire pfsense or use this command to restart the webgui:
killall -9 php; killall -9 lighttpd; /etc/rc.restart_webgui
Source for pfblocker memory setting:
Source for Suhosin memory setting: