I try to update very large blocklist and I get error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10106374 bytes) in /usr/local/pkg/pfblocker.inc on line 248
Same list work with IP-blocklist.
The way pfBlocker downloads list is different then ipblocklist.
To increase php memory limit, edit php.ini:
php.ini location path is:
Edit the memory_limit cvar to 256
ie. memory_limit = 256
save file and reboot
And after I put some smaller bloclist I get another error:
php: : There were error(s) loading the rules: /tmp/rules.debug:21: cannot define table pfBlockerblocklist: Cannot allocate memory pfctl: Syntax error in config file: pf rules not loaded - The line in question reads : table <pfBlockerblocklist> persist file "/var/db/aliastables/pfBlockerblocklist.txt"
- Increase even more Firewall Maximum Table Entries
- clear ipblocklist table in diagnostics-> table
- check if the value of table-entries in /tmp/rules.debug is the same in Firewall Maximum Table Entries
- check also if table-entries is declared twice in /tmp/rules.debug
The most important thing is: read list description you are including and see if it is realy a bad guys or nasty list.
One example of not bad list
is leve1 ip-blocklist file.
See its description:Author's description:
Companies or organizations who are clearly involved with trying to stop filesharing.
Companies which anti-p2p activity has been seen from.
Companies that produce or have a strong financial interest in copyrighted material.
Government ranges or companies that have a strong financial interest in doing work for governments.
Legal industry ranges.
IPs or ranges of ISPs from which anti-p2p activity has been observed.