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

    pfBlockerNG-devel v3.2.0 crashing repeatedly on pfSense 23.01

    Scheduled Pinned Locked Moved pfBlockerNG
    25 Posts 11 Posters 2.1k 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.
    • X
      xpxp2002
      last edited by

      @BBcan177 dug in and identified the behavior is coming from code outside of pfBlockerNG and forwarded that info to a pfSense dev.

      I have several IPv6 VIPs that were in the short form (e.g. along the lines of fd00:0:0:1::1/64). The :: abbreviation seems to trigger the issue when pfb_local_ip() function runs.

      I changed those VIPs to a more expanded string (fd00:0:0:1:0:0:0:1/64, for example) to see if that works around the issue. So far, I have not encountered an error, but I'll know for sure after an hour or so passes.

      1 Reply Last reply Reply Quote 0
      • P
        paoloest @BBcan177
        last edited by

        @bbcan177
        Just updated and pfblockerng-devel is not starting anymore.

        
        PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng.php, Line: 1980, Message: Uncaught TypeError: sort(): Argument #1 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng.php:1980
        Stack trace:
        #0 /usr/local/www/pfblockerng/pfblockerng.php(1980): sort(NULL, 2)
        #1 /usr/local/pkg/pfblockerng/pfblockerng_install.inc(40): pfblockerng_get_countries()
        #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): include_once('/usr/local/pkg/...')
        #3 /etc/inc/pkg-utils.inc(781): eval()
        #4 /etc/inc/pkg-utils.inc(899): eval_once('include_once('/...')
        #5 /etc/rc.packages(76): install_package_xml('pfBlockerNG-dev...')
        #6 {main}
        
        

        Thanks for your work and commitment delivering such a wonderful package

        NightlySharkN S 2 Replies Last reply Reply Quote 1
        • dotOneD
          dotOne
          last edited by

          After reboot issue persists…

          Uncaught ValueError: str_repeat(): Argument #2 ($times) must be greater than or equal to 0 in /usr/local/share/pear/Net/IPv6.php:684

          X 1 Reply Last reply Reply Quote 0
          • S
            slever
            last edited by

            My error seems to have gone away. Reboot perhaps?

            1 Reply Last reply Reply Quote 0
            • NightlySharkN
              NightlyShark @paoloest
              last edited by

              @paoloest I have a suspicion that something is not getting set correctly by the install script from the browser because of a lack of a check for it, or, part of the installer page is not updated in browser (loaded from cache from a previous version)? Maybe try with another browser (one that has never connected to pfsense) or clear cache and cookies in browser? Just a thought.

              1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @paoloest
                last edited by

                @paoloest said in pfBlockerNG-devel v3.2.0 crashing repeatedly on pfSense 23.01:

                #1 /usr/local/pkg/pfblockerng/pfblockerng_install.inc(40): pfblockerng_get_countries()

                Per https://redmine.pfsense.org/issues/13950, will be fixed in v3.2.0_2.

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

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

                  Out of curiosity….those having issues, did you uninstall pfblocker before the upgrade? If not make sure you do. You will avoid these issues.

                  P dotOneD 2 Replies Last reply Reply Quote 1
                  • P
                    paoloest @William 0
                    last edited by

                    @william-0
                    nope, have not installed any package.

                    Deleted pfblockerng-devel and installed the non-devel, but no change. I hope for next version to fix this

                    1 Reply Last reply Reply Quote 0
                    • dotOneD
                      dotOne @William 0
                      last edited by

                      @william-0 Unfortunately that is not the case.
                      I did my other firewalls, removed the package before upgrading and reinstalled afterwards.
                      Same issue.

                      Hope this will be resolved quickly

                      1 Reply Last reply Reply Quote 0
                      • X
                        xpxp2002 @dotOne
                        last edited by

                        @dotone said in pfBlockerNG-devel v3.2.0 crashing repeatedly on pfSense 23.01:

                        After reboot issue persists…

                        Uncaught ValueError: str_repeat(): Argument #2 ($times) must be greater than or equal to 0 in /usr/local/share/pear/Net/IPv6.php:684

                        Did you happen to check for any short-form IPv6 addresses or VIPs in your environment? In my post above, it was the collapsed (::) format in some VIPs I had configured that the code didn't like. Expanding those to a full 8 segments resolved the issue for me.

                        https://forum.netgate.com/post/1087014

                        dotOneD 1 Reply Last reply Reply Quote 0
                        • dotOneD
                          dotOne @xpxp2002
                          last edited by

                          @xpxp2002 I changed all CARP IPv6 address to full notation.
                          That did the job.

                          Although, I see pfBlockerNG inserts an incorrect formatted IPv6 address.
                          The leading double colon is correct, 2nd part of the address is dotted notation.

                          IMG_0139.jpeg

                          Thanks

                          BBcan177B 1 Reply Last reply Reply Quote 1
                          • BBcan177B
                            BBcan177 Moderator @dotOne
                            last edited by

                            @dotone I have a fix for this now. Working on packaging this for the next version:

                            curl -o /usr/local/pkg/pfblockerng/pfblockerng.inc "https://gist.githubusercontent.com/BBcan177/b735258a1267995046aab45aeaedc210/raw"
                            

                            "Experience is something you don't get until just after you need it."

                            Website: http://pfBlockerNG.com
                            Twitter: @BBcan177  #pfBlockerNG
                            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              paoloest @BBcan177
                              last edited by

                              @bbcan177

                              the new version fixed my issue

                              thanks a lot. Great and super duper fast job

                              1 Reply Last reply Reply Quote 0
                              • P posix referenced this topic on
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.