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

    pfBlockerNG not working

    Scheduled Pinned Locked Moved pfBlockerNG
    6 Posts 2 Posters 810 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.
    • U
      unknownName
      last edited by

      Hi,

      I installed pfBlockerNG on the netgate pfsense 6100 and rebooted the device, after the device came up it was showing this error under Crash Reporter. Now I am not able to make any configuration changes and to save them because it is displaying an error (see attached) [PHP_errors.log](Invalid file type. Allowed types are: .png, .jpg, .bmp, .txt, .gif, .xls, .gz, .zip, .pcap, .pcapng, .7z, .xml, .jpeg, .diff, .patch, .tgz, .tar, .0, .cap) or to install/remove packages from WEB GUI. Could you please help what can be the problem? PHP_errors.txt

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @unknownName
        last edited by Gertjan

        @unknownName said in pfBlockerNG not working:

        I installed pfBlockerNG ....

        What is your pfSense version ?

        bc9a727b-da5a-42cd-a1c9-2f4e3a786d9f-image.png

        right ?

        Preparation for the worst :
        Hook up the cable that came with your 6100, and access the console.
        Option 8 - and get a copy of the /cf/conf/config.xml file

        While you have the console open, try using option 15 : Restore recent configuration and restore a copy of the config just before you installed pfBlockerNG.

        edit : I forgot : You have a 6100 so you have pfSense plus.
        Go straight to the pfSense documentation, and learn how you can boot from another (hopefully) recent ZFS backup.

        Example : as soon as I have the 'wow, what does it work great during the last xx days, weeks" I hit de orange "+Create" button, add a useful comment, and 'clone' my pfSense drive.
        The day things go bad, I can go back with a 'click' to find myself a workable situation.
        You have one also ?
        Note : drives still die. Make a backup of the config.xml regularly - don't even trust 'acb backup' 😊

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        U 1 Reply Last reply Reply Quote 0
        • U
          unknownName @Gertjan
          last edited by unknownName

          @Gertjan

          Pfsense is showing the below errors and is not allowing to make any configuration changes or saving configs, even is not allowing to install/uninstall packages. What can be the issue? Please note that the version which the firewall is running is 23.05.

          PHP ERROR: Type: 1, File: /usr/local/sbin/acbupload.php, Line: 86, Message: Uncaught Error: Call to undefined function curl_file_create() in /usr/local/sbin/acbupload.php:86
          Stack trace:
          #0 /usr/local/sbin/acbupload.php(62): upload('fb307d7c8dd0b45...')
          #1 {main}

          PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 167, Message: Uncaught Error: Undefined constant "CURLOPT_USERAGENT" in /usr/local/pkg/pfblockerng/pfblockerng.inc:167
          Stack trace:
          #0 /usr/local/www/pfblockerng/pfblockerng.php(59): require_once()
          #1 {main}

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @unknownName
            last edited by

            @unknownName

            23.05 ….. and you have installed the latest version of pfBlockerng = 3.2.0_7 ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            U 1 Reply Last reply Reply Quote 0
            • U
              unknownName @Gertjan
              last edited by

              @Gertjan

              Yes, this is the pfBlockerNG version I've installed. And now is not allowing either to install/uninstall packages, save new config changes, etc., but the firewall is up and running, so it has internet connectivity. This is due to some PHP functions missing/not found based on error logs I am seeing, check below:

              PHP ERROR: Type: 1, File: /usr/local/sbin/acbupload.php, Line: 86, Message: Uncaught Error: Call to undefined function curl_file_create() in /usr/local/sbin/acbupload.php:86
              Stack trace:
              #0 /usr/local/sbin/acbupload.php(62): upload('fb307d7c8dd0b45...')
              #1 {main}

              PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 167, Message: Uncaught Error: Undefined constant "CURLOPT_USERAGENT" in /usr/local/pkg/pfblockerng/pfblockerng.inc:167
              Stack trace:
              #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(36): require_once()
              #1 /usr/local/www/index.php(430): include('/usr/local/www/...')
              #2 {main}

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @unknownName
                last edited by Gertjan

                @unknownName said in pfBlockerNG not working:

                Yes, this is the pfBlockerNG version I've installed. And now is not allowing either to install/uninstall packages, save new config changes, etc., but the firewall is up and running, so it has internet connectivity. This is due to some PHP functions missing/not found based on error logs ...

                The latest pfSEnse packages are build against the latest pfSense version.
                This means : with the news libraries, new or other functions etc.

                This is why : (to make a long story short ) you should not install/upgrade packages before you've updates pfSense itself. Doing so might break things;
                You've seen the results.

                The long story :

                Before, this was recalled whenever a pfSense upgrade was announced : see here for pfSense 2.7.2.

                On that page you'll find :

                Netgate has a detailed Upgrade Guide available in the pfSense documentation to help explain the process. Below are the high-level steps to perform the upgrade.

                Clicking on Upgrade guide brings you to the upgrade guide.

                Now click on "Packages" :

                95eddd8d-53dd-43e5-992d-a8a51325a7e7-image.png

                The Packages page starts with :

                Do not upgrade packages before upgrading pfSense® software. Either remove all packages or leave the packages alone before running the update.

                Great, right ? 😊

                IMHO : The fastest way out :
                Get a copy of 2.7.2.
                Save your config.
                Install 2.7.2 over 2.7.0 (this will wipe the disk etc but who cares ^^)
                Import your config.
                Done.

                Plan B : If de installing pfBlockerng is possible, do so.
                Now, use the GUI to upgrade.
                Re install pfBlockerng.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

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