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

pfSense Plus and SG-3100

Scheduled Pinned Locked Moved Official Netgate® Hardware
152 Posts 31 Posters 45.4k 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.
  • A
    artooro @NokkieF
    last edited by May 12, 2021, 3:37 PM

    Doesn't look like it helped anything. After another reboot php-cgi started to core dump when simply syncing the firewall. Now getting Configuring firewall.Segmentation fault (core dumped)

    So far we've had to re-install the OS on quite a few SG-3100 appliances and currently have a policy of keeping them on 2.4.5-p1 until there is a more stable pfSense release.

    N L 2 Replies Last reply May 12, 2021, 3:47 PM Reply Quote 1
    • N
      NokkieF @artooro
      last edited by May 12, 2021, 3:47 PM

      @artooro Sadly I had the same result, the firewall was worse off than before. I decided to just roll back the whole thing to factory settings. I am now running pfBlocker with a bunch of lists without any issues. I no longer see the php errors.
      I will add haproxy and the openvpn later to see if it screws it up again.

      1 Reply Last reply Reply Quote 1
      • L
        Luketa @artooro
        last edited by May 12, 2021, 4:20 PM

        @artooro @NokkieF ,
        I am researching a lot before updating 2.4.5-p1, and I came to the conclusion that I am not going to update, my client is a 24 hour clinic and with this many problems I can get complicated.

        N 1 Reply Last reply Jun 2, 2021, 10:31 AM Reply Quote 0
        • N
          NokkieF @Luketa
          last edited by Jun 2, 2021, 10:31 AM

          So after I went back to the factory settings and set it up again I had no problems with pfBlocker installed. Recently I set up an OpenVPN client and I am seeing the php cor edumps again. So maybe it is related to openvpn?

          1 Reply Last reply Reply Quote 0
          • B
            bmeeks
            last edited by bmeeks Jun 2, 2021, 1:59 PM Jun 2, 2021, 1:57 PM

            The problem is within PHP itself on 32-bit ARM platforms. It will manifest itself in different packages at somewhat randomly differing places. Almost every installed package in pfSense makes use of PHP GUI code at some point. Depending on exactly what parts and pieces of PHP are in operation at any given moment, the bug may surface- or it may not.

            In the case of the Snort and Suricata packages, the bug is triggered by successive calls to the preg_match() regex function of PHP.

            So trying to find a particular package to blame is pointless, unless you pin it where the actual problem lives -- in PHP itself. Adding or removing particular packages, or reinstalling them, or reconfiguring them may appear to give temporary relief, but it's not a real fix. The only fix is within PHP itself.

            If you remove all packages and run a plain-vanilla pfSense setup on your SG-3100, it will probably run fine. That's because the base pfSense code, for the most part, appears to not be using the PHP functions that cause the problem on 32-bit ARM platforms. But a number of the add-on packages will call those troublesome PHP functions and thus trigger the bug.

            1 Reply Last reply Reply Quote 0
            • A
              artooro
              last edited by Jun 2, 2021, 5:49 PM

              Looks like pfSense Plus 21.05 just came out, and this issue is still not fixed. And no word from anyone at Netgate either in this forum or the redmine issue.

              1 Reply Last reply Reply Quote 1
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Jun 3, 2021, 3:27 PM

                Try the patch to disable PHP PCRE JIT on #11466 Note 32.

                You can install the System Patches package and then create an entry for the patch URL https://redmine.pfsense.org/attachments/download/3707/patch-disable-pcrejit-arm.diff to apply the fix.

                Then run console menu options 16 and 11 to restart PHP and the GUI, or reboot.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                M 1 Reply Last reply Jun 3, 2021, 3:38 PM Reply Quote 2
                • M
                  mcury @jimp
                  last edited by Jun 3, 2021, 3:38 PM

                  Applied the patch, thanks Jimp.

                  Can you confirm if the D28821 fix was ported to 21.05 version?
                  I got a few php dumps before installing packets, while reloading filters.

                  dead on arrival, nowhere to be found.

                  J 1 Reply Last reply Jun 3, 2021, 3:42 PM Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate @mcury
                    last edited by Jun 3, 2021, 3:42 PM

                    @mcury said in pfSense Plus and SG-3100:

                    Applied the patch, thanks Jimp.

                    Can you confirm if the D28821 fix was ported to 21.05 version?
                    I got a few php dumps before installing packets, while reloading filters.

                    Yes, the patch from https://reviews.freebsd.org/D28821 is present in the FreeBSD source for 21.05.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    N 1 Reply Last reply Jun 5, 2021, 2:17 PM Reply Quote 4
                    • C
                      Cornel
                      last edited by Jun 5, 2021, 9:20 AM

                      @jimp has this patch been confirmed as a workaround for the php issue?

                      S 1 Reply Last reply Jun 5, 2021, 2:25 PM Reply Quote 0
                      • N
                        NokkieF @jimp
                        last edited by Jun 5, 2021, 2:17 PM

                        @jimp Do I need to run the patch for the new release, or is it already part of it?

                        1 Reply Last reply Reply Quote 0
                        • S
                          SteveITS Galactic Empire @Cornel
                          last edited by Jun 5, 2021, 2:25 PM

                          @cornel The patch for the PHP crashing issue is in note 32 here and is not in 21.05. Apply via the System Patches package.

                          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!

                          M 1 Reply Last reply Jun 5, 2021, 2:44 PM Reply Quote 2
                          • M
                            mcury @SteveITS
                            last edited by Jun 5, 2021, 2:44 PM

                            I was getting php errors in 21.05, so I applied this patch.. No more problems noticed.. It seems pretty stable now..
                            pfblockerng is running perfectly with this patch, along with openvpn and ipsec.

                            383882be-d2d5-4b16-a059-6b7131906f85-image.png

                            Didn't test snort/suricata..

                            dead on arrival, nowhere to be found.

                            C N 2 Replies Last reply Jun 5, 2021, 4:22 PM Reply Quote 2
                            • C
                              Cornel @mcury
                              last edited by Cornel Jun 5, 2021, 4:31 PM Jun 5, 2021, 4:22 PM

                              @mcury Thanks!

                              I bit the bullet and pressed update...

                              Update was a total failure. Fortunately the pfSense support team is very responsive. A link for the download image was sent in the same minute as I created the ticket. Installed image, restored from backup, applied the patch and up and running again!

                              Errors I got in console after I pressed update were many lines of:
                              UFS /dev/diskid/DISK-E937110023s2a (/) cylinder checksum failed: cg 124, cgp: 0x0 != bp: 0xe911d0ad
                              UFS /dev/diskid/DISK-E937110023s2a (/) cylinder checksum failed: cg 125, cgp: 0x0 != bp: 0x381abb22
                              UFS /dev/diskid/DISK-E937110023s2a (/) cylinder checksum failed: cg 126, cgp: 0x0 != bp: 0x4eeb7142

                              1 Reply Last reply Reply Quote 1
                              • N
                                NokkieF @mcury
                                last edited by Jun 6, 2021, 2:58 PM

                                I updated to 21.05 too, had no problems updating. Also applied the patch. Thanks for the help!

                                1 Reply Last reply Reply Quote 1
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                  This community forum collects and processes your personal information.
                                  consent.not_received