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

    PfBlockerNG v2.0 w/DNSBL

    Scheduled Pinned Locked Moved pfBlockerNG
    1.1k Posts 192 Posters 1.7m 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.
    • RonpfSR
      RonpfS
      last edited by

      Well during installation pfBlockerNG download the MaxMind GeoIP database … it probably crashes and the installation doesn't complete.  :o

      2.4.5-RELEASE-p1 (amd64)
      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

      1 Reply Last reply Reply Quote 0
      • Q
        q54e3w
        last edited by

        do you see stability if you reduce the number of lists you have active? My 16GB runs along fine at 40% utilisation with a fair few lists thrown at it and I recall from my casual observation it uses more whilst it processes them too.

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by

          @RonpfS:

          @haleakalas:

          I have an identical situation except the line "(tried to allocate 20 bytes)" reads 27 bytes. Also, the PHP Errors block repeats itself a few times.
          I tried to reinstall pfBlockerNG through the package manager, it claimed to have reinstalled but it no longer shows under the Firewall menu of pfSense. I uninstalled and reinstalled in two steps, again using the package manager, same result. For now I removed the package. My hardware is based on 32 bit N270 and I have 1GB of RAM, tons of HD space.
          Prior to upgrading pfSense to 2.3.2 everything worked flawlessly for over a month so I assume that it has something to do with pfSense upgrade. I don't recall when I got pfBlockerNG upgraded.
          I hope mine is not an isolated case.

          Maybe it is too late, but did you get any errors while removing or installing pfBlockerNG?

          No, there was no error messages during the reinstall, removal or installation. But, the weird thing is that although pfSense said the installation (or the reinstallation) was a success, pfBlockerNG was nowhere to be found; in the menus nor in the service status, watchdog, etc. So, I  assume that it didn't install properly. But the dashboard says that only 20% of the RAM is used, so I doubt that this is a memory issue. Plus, I have been using pfBlockerNG on this same hardware for some time, so unless the last version has changed something drastically 1GB has been fine.
          Meanwhile, I restored a raw copy backup of my system prior to 2.3.2 upgrade. That works like a charm. It has pfBlockerNG 2.0.17 on pfSense 2.3.1-p5 (i386). PfBlocker definitely works as it blocks access to and from China, Russia, etc.
          So, until the dust settles oldies are the best way to go for me.

          1 Reply Last reply Reply Quote 0
          • G
            Gerard64
            last edited by

            Here is always worked fine with my 4GB of ram but since the last update it started to give problems i disbaled PFblocker for now and wait maybe it get fixed if not then i gave to sadly uninstall uninstall.

            1 Reply Last reply Reply Quote 0
            • RonpfSR
              RonpfS
              last edited by

              Here is a fix for the MaxMind errors https://forum.pfsense.org/index.php?topic=116307.msg644910#msg644910
              please use that thread for this issue

              2.4.5-RELEASE-p1 (amd64)
              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

              1 Reply Last reply Reply Quote 0
              • G
                Gerard64
                last edited by

                Above tip of Ronpfs worked.
                But after the last re-install of pfblocker it didn't reinstall correct. It doesn't show up in the menu and it gives a error at the end of the reinstall.

                pkg: POST-INSTALL script failed

                Is there a way i can install a previous version of pfblocker?

                1 Reply Last reply Reply Quote 0
                • RonpfSR
                  RonpfS
                  last edited by

                  @Gé:

                  Above tip of Ronpfs worked.
                  But after the last re-install of pfblocker it didn't reinstall correct. It doesn't show up in the menu and it gives a error at the end of the reinstall.

                  pkg: POST-INSTALL script failed

                  Is there a way i can install a previous version of pfblocker?

                  I do not think you can revert to a previous version  :(
                  And even with the previous version it would be the same as the change comes from MaxMind GeoIP change, not from pfblockerNG code.

                  Can you try https://forum.pfsense.org/index.php?topic=115966.0

                  2.4.5-RELEASE-p1 (amd64)
                  Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                  Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gerard64
                    last edited by

                    Thank you again Ronpfs.
                    I did what you suggested on that other thread it did not work. I increased to 750M but no joy :(

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      @RonpfS:

                      Here is a fix for the MaxMind errors https://forum.pfsense.org/index.php?topic=116307.msg644910#msg644910
                      please use that thread for this issue

                      Solving the problem by throwing more memory at it worries me a bit. I hate to sound old-school, but 1GB or RAM on a router/firewall is a lot of memory. Allocating upwards of 300MB for one particular function, if that is on exclusive basis, would worry me that the implementation of that function is less than optimal.

                      As for the installation issue, it is still there. I can no longer install the latest version of pfBlockerNG; although pfSense claims that it's installed it doesn't show anywhere in the menus.

                      1 Reply Last reply Reply Quote 0
                      • RonpfSR
                        RonpfS
                        last edited by

                        @Gé:

                        Thank you again Ronpfs.
                        I did what you suggested on that other thread it did not work. I increased to 750M but no joy :(

                        The patch was made for someone with pfBlockerNG installed. You could probably revert it.
                        I posted another similar patch for the case when pfBlockerNG isn't installed.

                        2.4.5-RELEASE-p1 (amd64)
                        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                        1 Reply Last reply Reply Quote 0
                        • RonpfSR
                          RonpfS
                          last edited by

                          @haleakalas:

                          @RonpfS:

                          Here is a fix for the MaxMind errors https://forum.pfsense.org/index.php?topic=116307.msg644910#msg644910
                          please use that thread for this issue

                          Solving the problem by throwing more memory at it worries me a bit. I hate to sound old-school, but 1GB or RAM on a router/firewall is a lot of memory. Allocating upwards of 300MB for one particular function, if that is on exclusive basis, would worry me that the implementation of that function is less than optimal.

                          As for the installation issue, it is still there. I can no longer install the latest version of pfBlockerNG; although pfSense claims that it's installed it doesn't show anywhere in the menus.

                          We are just trying to get a fix until BBcan177 can find a proper fix when he comes back.

                          there is a thread for the installation failure https://forum.pfsense.org/index.php?topic=115966.0

                          pfBlockerNG with DNSBL requires load of memory as it handle 1M+ table. So 1GB is really not that much memory for this kind or usage.

                          2.4.5-RELEASE-p1 (amd64)
                          Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                          Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                          1 Reply Last reply Reply Quote 0
                          • G
                            Gerard64
                            last edited by

                            @RonpfS:

                            The patch was made for someone with pfBlockerNG installed. You could probably revert it.
                            I posted another similar patch for the case when pfBlockerNG isn't installed.

                            Oke I tried that mod and went up to 1500M but no success I can't install Pfblocker.
                            Oh and BTW i have a 64bit system with 4GB ram.

                            >>> Installing pfSense-pkg-pfBlockerNG... 
                            Updating pfSense-core repository catalogue...
                            pfSense-core repository is up-to-date.
                            Updating pfSense repository catalogue...
                            pfSense repository is up-to-date.
                            All repositories are up-to-date.
                            Checking integrity... done (0 conflicting)
                            The following 5 package(s) will be affected (of 0 checked):
                            
                            New packages to be INSTALLED:
                            	pfSense-pkg-pfBlockerNG: 2.1.1_2 [pfSense]
                            	whois: 5.1.5 [pfSense]
                            	lighttpd: 1.4.39_1 [pfSense]
                            	grepcidr: 2.0 [pfSense]
                            	aggregate: 1.6_1 [pfSense]
                            
                            Number of packages to be installed: 5
                            
                            The process will require 2 MiB more space.
                            [1/5] Installing whois-5.1.5...
                            [1/5] Extracting whois-5.1.5: .......... done
                            [2/5] Installing lighttpd-1.4.39_1...
                            [2/5] Extracting lighttpd-1.4.39_1: .......... done
                            [3/5] Installing grepcidr-2.0...
                            [3/5] Extracting grepcidr-2.0: ..... done
                            [4/5] Installing aggregate-1.6_1...
                            [4/5] Extracting aggregate-1.6_1: .... done
                            [5/5] Installing pfSense-pkg-pfBlockerNG-2.1.1_2...
                            [5/5] Extracting pfSense-pkg-pfBlockerNG-2.1.1_2: .......... done
                            Saving updated package information...
                            done.
                            Loading package configuration... done.
                            Configuring package components...
                            Loading package instructions...
                            Custom commands...
                            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.
                            pkg: POST-INSTALL script failed
                            >>> Cleaning up cache... done.
                            Success
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • RonpfSR
                              RonpfS
                              last edited by

                              Well it doesn't fail at the GeoIP step …

                              can you run from the shell

                              php /usr/local/www/pfblockerng/pfblockerng.php dc

                              then try the reinstall ?

                              2.4.5-RELEASE-p1 (amd64)
                              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                              1 Reply Last reply Reply Quote 0
                              • G
                                Gerard64
                                last edited by

                                Sadely no success.
                                Still the same problem  :(

                                1 Reply Last reply Reply Quote 0
                                • RonpfSR
                                  RonpfS
                                  last edited by

                                  @Gé:

                                  Sadely no success.
                                  Still the same problem  :(

                                  Did you read your messages ?

                                  2.4.5-RELEASE-p1 (amd64)
                                  Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                  Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                  1 Reply Last reply Reply Quote 0
                                  • RonpfSR
                                    RonpfS
                                    last edited by

                                    @Gé:

                                    Sadely no success.
                                    Still the same problem  :(

                                    It looks like you are on a x64 system … so it maybe related to something else.

                                    2.4.5-RELEASE-p1 (amd64)
                                    Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                    Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      Gerard64
                                      last edited by

                                      @RonpfS:

                                      Did you read your messages ?

                                      Sorry didn´t saw you pm me.
                                      Gonna do that now what you suggested in the pm.
                                      Thanks man, you´re awesome!

                                      1 Reply Last reply Reply Quote 0
                                      • QinnQ
                                        Qinn
                                        last edited by

                                        @RonpfS:

                                        @haleakalas:

                                        @RonpfS:

                                        Here is a fix for the MaxMind errors https://forum.pfsense.org/index.php?topic=116307.msg644910#msg644910
                                        please use that thread for this issue

                                        Solving the problem by throwing more memory at it worries me a bit. I hate to sound old-school, but 1GB or RAM on a router/firewall is a lot of memory. Allocating upwards of 300MB for one particular function, if that is on exclusive basis, would worry me that the implementation of that function is less than optimal.

                                        As for the installation issue, it is still there. I can no longer install the latest version of pfBlockerNG; although pfSense claims that it's installed it doesn't show anywhere in the menus.

                                        We are just trying to get a fix until BBcan177 can find a proper fix when he comes back.

                                        there is a thread for the installation failure https://forum.pfsense.org/index.php?topic=115966.0

                                        pfBlockerNG with DNSBL requires load of memory as it handle 1M+ table. So 1GB is really not that much memory for this kind or usage.

                                        Thanks @RonpfS setting the memory_limit on line 236 to 300M fixed it. :)

                                        php /usr/local/www/pfblockerng/pfblockerng.php dc

                                        Country code update Start [ 08/04/16 8:02:02 ]
                                        Converting MaxMind Country databases for pfBlockerNG.
                                        Processing ISO IPv4 Continent/Country Data
                                        Processing ISO IPv6 Continent/Country Data
                                        Creating pfBlockerNG Continent XML files
                                        IPv4 Africa
                                        IPv6 Africa
                                        IPv4 Antarctica
                                        IPv6 Antarctica
                                        IPv4 Asia
                                        IPv6 Asia
                                        IPv4 Europe
                                        IPv6 Europe
                                        IPv4 North America
                                        IPv6 North America
                                        IPv4 Oceania
                                        IPv6 Oceania
                                        IPv4 South America
                                        IPv6 South America
                                        IPv4 Proxy and Satellite
                                        IPv6 Proxy and Satellite
                                        IPv4 TOP 20
                                        IPv6 TOP 20
                                        Saving pfBlockerNG Reputation TAB
                                        Country Code Update Ended - [ 08/04/16 8.10:13 ]

                                        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                        Firmware: Latest-stable-pfSense CE (amd64)
                                        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          wiz561
                                          last edited by

                                          @wiz561:

                                          @RonpfS:

                                          @wiz561:

                                          Thanks for the response.  Are you saying that I should change the…

                                          Firewall Maximum Table Entries: 2000000

                                          to

                                          Firewall Maximum Table Entries: 4000000

                                          I just wanted to make sure I'm changing the right thing.

                                          This looks like it  ;)
                                          Firewall Maximum Table Entries : Maximum number of table entries for systems such as aliases, sshlockout, snort, etc, combined.

                                          @wiz561:

                                          Also, when the cron jobs were running, I saw something with some large numbers of maybe the 200000 and I was at something like 150000…  Sorry I didn't make note of it.

                                          Thanks!

                                          You can review the log file by going to the Firewall/pfBlockerNG/Log Browser tab

                                          Thanks.  I saw that 20000 number get changed to 40000-something so I think it's working.  Hopefully this will fix it!

                                          I've been having some issues lately so I'm hoping that maybe this clears up some of the problems.  I think it's snort related, as the problems ceased when I stopped snort for a few days.

                                          Hi!  I've been having another strange problem.  I modified that parameter to the 40000-something the other day and rebooted pfsense.  It's been running OK now for maybe 3 or 4 days and this-morning, I am receiving the same message and a crash report…

                                          					Crash report begins.  Anonymous machine information:
                                          
                                          amd64
                                          10.3-RELEASE-p5
                                          FreeBSD 10.3-RELEASE-p5 #0 7307492(RELENG_2_3_2): Tue Jul 19 13:29:35 CDT 2016     root@ce23-amd64-builder:/builder/pfsense-232/tmp/obj/builder/pfsense-232/tmp/FreeBSD-src/sys/pfSense
                                          
                                          Crash report details:
                                          
                                          PHP Errors:
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP Fatal error:  Allowed memory size of 402653184 bytes exhausted (tried to allocate 72 bytes) in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 3868
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP Stack trace:
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP   1\. {main}() /etc/rc.start_packages:0
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP   2\. sync_package() /etc/rc.start_packages:90
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP   3\. eval() /etc/inc/pkg-utils.inc:631
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP   4\. sync_package_pfblockerng() /etc/inc/pkg-utils.inc(631) : eval()'d code:3
                                          [04-Aug-2016 00:18:40 America/Chicago] PHP   5\. array_merge() /usr/local/pkg/pfblockerng/pfblockerng.inc:3868
                                          
                                          Filename: /var/crash/minfree
                                          2048
                                          
                                          

                                          On the dashboard, I have "49% of 2gb" for the memory and 0% swap used.

                                          I'm wondering if my pfsense install is borked because it's been running kind of slow and php-fpm has about 90% utilization when browsing the web interface after an upgrade.

                                          1 Reply Last reply Reply Quote 0
                                          • W
                                            wiz561
                                            last edited by

                                            I'm actually going to move over to the memory posting in this forum since it sounds like there's others with similar issues…

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