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 43.6k 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.
    • bmeeksB
      bmeeks @Biggy823
      last edited by

      @biggy823 said in pfSense Plus and SG-3100:

      @nocling Is Snort fixed in this version?

      No. Snort and Suricata both are still victims of the PHP bug on ARM 32-bit hardware such as the SG-3100.

      S 1 Reply Last reply Reply Quote 0
      • N
        NokkieF @mcury
        last edited by NokkieF

        @mcury Not that I am aware of. Where can I see the cronjobs listed for the pfSense? crontab -l shows no cronjobs for root
        cat of /etc/crontab shows
        */1 * * * * root /usr/sbin/newsyslog

        M 1 Reply Last reply Reply Quote 0
        • M
          mcury @NokkieF
          last edited by mcury

          @nokkief said in pfSense Plus and SG-3100:

          @mcury Not that I am aware of. Where can I see the cronjobs listed for the pfSense? crontab -l shows no cronjobs for root
          cat of /etc/crontab shows
          */1 * * * * root /usr/sbin/newsyslog

          There is a package in package manager, cron
          Install cron and check what is running every 15 minutes.. It will show all cron tasks
          Did you set pfblockerng to update the lists every 15 minutes?

          dead on arrival, nowhere to be found.

          N 1 Reply Last reply Reply Quote 0
          • N
            NokkieF @mcury
            last edited by

            @mcury No, once a day. I will instal cron and see what it does

            N 1 Reply Last reply Reply Quote 0
            • N
              NokkieF @NokkieF
              last edited by

              Looks like it's doing this
              0,15,30,45 * * * * root /etc/rc.filter_configure_sync

              M 1 Reply Last reply Reply Quote 0
              • M
                mcury @NokkieF
                last edited by

                @nokkief said in pfSense Plus and SG-3100:

                Looks like it's doing this
                0,15,30,45 * * * * root /etc/rc.filter_configure_sync

                hm.. are you on 21.02 p2, right?
                Because the problem with filter reload was happening only in 21.02 p1

                dead on arrival, nowhere to be found.

                N 1 Reply Last reply Reply Quote 0
                • N
                  NokkieF @mcury
                  last edited by

                  @mcury Yeah, I am
                  21.02.2-RELEASE (arm)
                  built on Mon Apr 12 07:50:07 EDT 2021
                  FreeBSD 12.2-STABLE

                  The system is on the latest version.
                  Version information updated at Mon Apr 26 9:02:50 CEST 2021

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mcury @NokkieF
                    last edited by mcury

                    @nokkief said in pfSense Plus and SG-3100:

                    @mcury Yeah, I am
                    21.02.2-RELEASE (arm)
                    built on Mon Apr 12 07:50:07 EDT 2021
                    FreeBSD 12.2-STABLE

                    The system is on the latest version.
                    Version information updated at Mon Apr 26 9:02:50 CEST 2021

                    hm, it is strange..
                    now I'm not sure if there is something particular about your setup that is triggering it, or if I'm not triggering it by luck and this bug is waiting to happen here, hidden..

                    Edit: Did you enable these options in DNS Resolver?

                    f4fe132e-671a-46f3-8045-a137788964d8-image.png

                    dead on arrival, nowhere to be found.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      NokkieF @mcury
                      last edited by

                      @mcury No, but I did enable the python module. But with or without is not making a difference.

                      1 Reply Last reply Reply Quote 0
                      • S
                        s0m3f00l @bmeeks
                        last edited by s0m3f00l

                        @bmeeks said in pfSense Plus and SG-3100:

                        PHP bug on ARM 32-bit

                        Has anyone tried rebuilding php from source for the 3100? I am still stuck on 2.4.5p1 because we use suricata. If I wanted just a router firewall without any NGFW stuff I could have build an openwrt box.

                        1 Reply Last reply Reply Quote 1
                        • artooroA
                          artooro @stephenw10
                          last edited by

                          @stephenw10 we've had issues with several SG-3100s upgrading them to pfSense 21.02.2, just working on one right now. I just tried clearing all the files in /var/db/aliastables to ensure that it wasn't a large table causing the issue but after a reboot I am still seeing kernel: pid 404 (php-cgi), jid 0, uid 0: exited on signal 11 (core dumped)

                          The two symptoms I've seen after multiple SG-3100 upgrades is that

                          1. The default gateway is missing
                          2. When connecting via console the menu interface doesn't load and it jumps straight to a shell.

                          Am I correct in there being no workaround at this time for these SG-3100 issues?

                          artooroA 1 Reply Last reply Reply Quote 0
                          • artooroA
                            artooro @artooro
                            last edited by

                            I just found that commenting out the following lines from /etc/rc.bootup resolved the php-cgi crash issue and on reboot both the default route and console are working correctly.
                            I figured it must be OpenVPN because of when the error shows up in system.log.

                            //echo "Syncing OpenVPN settings...";
                            //openvpn_resync_all();
                            //echo "done.\n";
                            

                            Still need to determine what about OpenVPN would be triggering this.

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              NokkieF @artooro
                              last edited by

                              @artooro Thanks, I will give it a try and see if it 'fixes' the error for me too.

                              artooroA 1 Reply Last reply Reply Quote 0
                              • artooroA
                                artooro @NokkieF
                                last edited by

                                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 LuketaL 2 Replies Last reply Reply Quote 1
                                • N
                                  NokkieF @artooro
                                  last edited by

                                  @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
                                  • LuketaL
                                    Luketa @artooro
                                    last edited by

                                    @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 Reply Quote 0
                                    • N
                                      NokkieF @Luketa
                                      last edited by

                                      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
                                      • bmeeksB
                                        bmeeks
                                        last edited by bmeeks

                                        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
                                        • artooroA
                                          artooro
                                          last edited by

                                          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
                                          • jimpJ
                                            jimp Rebel Alliance Developer Netgate
                                            last edited by

                                            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 Reply Quote 2
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.