PfBlockerNG v2.0 w/DNSBL
-
You have to edit the /usr/local/etc/php.ini, /etc/rc.php_ini_setup files to
suhosin.memory_limit = 805306368
-
no more crash reports after reinstall.
pfblokerNG back in the menu.
all back to normal !
thanks for helping :)
-
what was the file path for config.inc
-
/etc/inc/config.inc
I updated the previous post. -
You have to edit the /usr/local/etc/php.ini, /etc/rc.php_ini_setup files to
suhosin.memory_limit = 805306368
I'll try the rc.php_ini_setup when I get back home.
I changed to this(I'm running on a 64bit system)
// Set memory limit to 512M on amd64.
if ($ARCH == "amd64") {
ini_set("memory_limit", "768M");
} else {
ini_set("memory_limit", "128M");
} -
Thanks it worked!!
-
Hi all,
I'm also having this issue. However, I don't know where you guys are finding the file to edit. I see that the location of the file is /etc/inc/config.inc but how do I get to it to edit? I'm only familiar with pfsense through the web interface.
Thanks in advance for your help!
-
Hi all,
I'm also having this issue. However, I don't know where you guys are finding the file to edit. I see that the location of the file is /etc/inc/config.inc but how do I get to it to edit? I'm only familiar with pfsense through the web interface.
Thanks in advance for your help!
Maybe you should read this https://forum.pfsense.org/index.php?topic=102470.msg647719#msg647719 again
-
I made the mistake to reinstall the pkg. ( didn't take a snapshot before doing it) But I have a backup of the machine that I could restore and boot up.
My idea was if it could be done to export the settings from the backuped VM ( running ) and import it in my live system?
I can't find any way to extract the settings. found a way to sync the settings could try that but export import would be easier I think.
-
I made the mistake to reinstall the pkg. ( didn't take a snapshot before doing it) But I have a backup of the machine that I could restore and boot up.
My idea was if it could be done to export the settings from the backuped VM ( running ) and import it in my live system?
I can't find any way to extract the settings. found a way to sync the settings could try that but export import would be easier I think.
The settings for pfBlockerNG are stored in the config.xml file.
But on a new installation, restoring the config file without modifications will not work with DNSBL enabled. The Resolver service (unbound) will not start as the unbound <custom_options>will try to load /var/unbound/pfb_dnsbl.conf which doesn't exist on a new installation. Without DNS Resolver running, the reinstallation of package on reboot will fail.
One workaround is to```
touch /var/unbound/pfb_dnsbl.confEdit the config.xml to disable pfBlockerNG and DNSBL first. To disable pfBlockerNG in the config.xml change
<pfblockerng><config><enable_cb>on</enable_cb> <pfb_keep>on</pfb_keep></config></pfblockerng>
<pfblockerng><config><enable_cb><pfb_keep>on</pfb_keep></enable_cb></config></pfblockerng>
To disable DNSBL in the config.xml change
<pfblockerngdnsblsettings><config><pfb_dnsbl>on</pfb_dnsbl></config></pfblockerngdnsblsettings>
**AND** change custom_options :
<unbound><active_interface>lan,opt1,lo0</active_interface> <outgoing_interface>wan</outgoing_interface> <custom_options>c2VydmVyOmluY2x1ZGU6IC92YXIvdW5ib3VuZC9wZmJfZG5zYmwuY29uZg==</custom_options></unbound>
<unbound><active_interface>lan,opt1,lo0</active_interface> <outgoing_interface>wan</outgoing_interface></unbound>
On reboot the package installation should proceed and pfBlockerNG will rebuild the MaxMind database. If you had memory issues, you will have to apply the other fixes for memory issues https://forum.pfsense.org/index.php?topic=102470.msg647719#msg647719 **before** restoring the config.xml file to the new installation. Then you re enable pfBlockerNG and DNSBL, do a Force Update to download the Tables and rebuild the pfBlockerNG database.</custom_options>
-
Hey Ron,
Going to start following this thread. Hopefully BBCan will chime in soon; do we know if there is an optimal fix in-work to deal with the MaxMind changes? The workaround procedure worked for, but find it odd to see these tables growing at an alarming rate.
M
-
My system has 8GB of RAM. This is very frustrating.
I have adjusted the max table entries to 70000000
and in php.ini and php setup files suhosin.memory_limit = 1024000000
Also, changed the config.inc file so that AMD64 = 4096MThen reinstall pfBlockerNG and I still get this near the end. It is still
Executing custom_php_install_command()…
MaxMind GeoIP databases previously downloaded.
Adding pfBlockerNG Widget to the Dashboard... done.
Remove any existing and create link for DNSBL lighttpd executable... done.
Creating DNSBL web server start-up script... done.
Creating DNSBL web server config ... done.
Starting DNSBL Service... done.
Upgrading Adv. Inbound firewall rule settings ... no changes required ... done.
Custom commands completed ... done.
Executing custom_php_resync_config_command()...1 table created.
1/1 addresses added.
PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 3867, Message: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes)pkg: POST-INSTALL script failed -
It's not something I use all the time but I KNOW there used to be links on one of the pfBlockerNG screens to get you to an external lookup for finding AS numbers. Has that moved? Been dropped? I can't find it anywhere…..
-
Ahh ok, so I just thought I missed something well, and you was right when I turned on my backup it had the same settings as I hade after the reinstallation.
Everything is purring like kitten again. :)
-
I did notice that when I did a new install with the latest pfsense software and loaded pfblockerng that the floating rules for the VIP 10.10.10.1 were not created even though I had all the interfaces checked along with the floating rules box. I could not get any blocking until I manually created the floating rule for the vip.
I did try to check and recheck the settings and also restarted pfblockerng and restart the system multiple times until I discovered that the floating rule was missing.
Everything works as it should now, even blocking the youtube ads and porn.
I have been using pfsense and pfblockerng and before that the pfblocker. I love the package!!!
-
I did notice that when I did a new install with the latest pfsense software and loaded pfblockerng that the floating rules for the VIP 10.10.10.1 were not created even though I had all the interfaces checked along with the floating rules box. I could not get any blocking until I manually created the floating rule for the vip.
I did try to check and recheck the settings and also restarted pfblockerng and restart the system multiple times until I discovered that the floating rule was missing.
Everything works as it should now, even blocking the youtube ads and porn.
I have been using pfsense and pfblockerng and before that the pfblocker. I love the package!!!
A fix for this issue is being tested.
-
Also, changed the config.inc file so that AMD64 = 4096M
PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 3867, Message: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes)pkg: POST-INSTALL script failed
Did you reboot after making the modifications ? Maybe the ini settings are not loaded without the reboot.
134217728 show that the max memory configured somewhere is still 128M.
Maybe you are pushing the limit too far and it resets to 128M
Most users are running fine with 512M, 640M or maybe 768M, using 4096M per PHP process on a 4GB system doesn't make sense.Double check the modifications you made and try again.
-
Hi all,
I'm also having this issue. However, I don't know where you guys are finding the file to edit. I see that the location of the file is /etc/inc/config.inc but how do I get to it to edit? I'm only familiar with pfsense through the web interface.
Thanks in advance for your help!
Maybe you should read this https://forum.pfsense.org/index.php?topic=102470.msg647719#msg647719 again
I read it, but only for the amd64, not the i386. But started over and noticed it. Thanks again for your help and patience!
-
I read it, but only for the amd64, not the i386. But started over and noticed it. Thanks again for your help and patience!
I made modifications to the post in the last days to better explain the fixes.
-
Hey Ron,
Going to start following this thread. Hopefully BBCan will chime in soon; do we know if there is an optimal fix in-work to deal with the MaxMind changes? The workaround procedure worked for, but find it odd to see these tables growing at an alarming rate.
M
The tables are built from MaxMind GeoIPLite2 database, pfblockerNG just take the db and create the files for it's usage. MaxMind support has been contacted about the size being 3x larger than before.