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

    Snort + SG-3100 = exited on signal 10

    Scheduled Pinned Locked Moved IDS/IPS
    64 Posts 13 Posters 13.3k 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
      last edited by

      @atrotter01:

      It looks like I am somehow getting a different binary.  I am running 2.4.2_1 of pfSense.

      [2.4.2-RELEASE][admin@pfsense]/root: ls -lusr/local/bin/snort
      -r-xr-xr-x  1 root  wheel  1377676 Jan 25 22:20 /usr/local/bin/snort
      [2.4.2-RELEASE][admin@pfsense]/root: md5 /usr/local/bin/snort
      MD5 (/usr/local/bin/snort) = 35d9aa2e1e46543242a4c404f015fc8d

      Running snort –help gives me this version:

      Version 2.9.11.1 GRE (Build 268) FreeBSD

      Package manager shows 3.2.9.6 installed with snort-2.9.11.1.

      Yes, your binary is different.  Let me investigate that and see what's going on.

      Bill

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        OK, the binary that is installing is not correct.  I will need to get with the pfSense team to find out why.

        In my case, because I had manually installed my "fixed" binary package during testing, when I removed the Snort package from my SG-3100 the actual binary was not getting deleted.  Thus even though I was removing the package and installing it fresh during subsequent testing today, my actual binary was not getting changed and my test version binary was being used again.  That's why it worked for me.  So the fix really works, but for some reason the build of the binary on the Netgate respository is not including my "fix".

        EDIT UPDATE: found out after some investigation that one of my patch files got omitted when everything was cherry-picked into the Netgate/pfSense repository.  I've notified the pfSense team and they should get things squared away soon.  When I get confirmation of the fixed binary being posted, I will post a message to this thread.  SG-3100 users can then once again remove and reinstall the Snort package to get the fixed binary.

        Sorry for the trouble …  ;).  I knew it was working on my end, so when I saw reports here to the contrary I was baffled at first.  Glad to figure out what actually happened.

        Bill

        1 Reply Last reply Reply Quote 0
        • A
          atrotter01
          last edited by

          @bmeeks:

          OK, the binary that is installing is not correct.  I will need to get with the pfSense team to find out why.

          In my case, because I had manually installed my "fixed" binary package during testing, when I removed the Snort package from my SG-3100 the actual binary was not getting deleted.  Thus even though I was removing the package and installing it fresh during subsequent testing today, my actual binary was not getting changed and my test version binary was being used again.  That's why it worked for me.  So the fix really works, but for some reason the build of the binary on the Netgate respository is not including my "fix".

          EDIT UPDATE: found out after some investigation that one of my patch files got omitted when everything was cherry-picked into the Netgate/pfSense repository.  I've notified the pfSense team and they should get things squared away soon.  When I get confirmation of the fixed binary being posted, I will post a message to this thread.  SG-3100 users can then once again remove and reinstall the Snort package to get the fixed binary.

          Sorry for the trouble …  ;).  I knew it was working on my end, so when I saw reports here to the contrary I was baffled at first.  Glad to figure out what actually happened.

          Bill

          Thanks for the update! I am glad it was something simple and not another issue!  :)

          1 Reply Last reply Reply Quote 0
          • M
            mcury Rebel Alliance
            last edited by

            Patch is ready or not?

            dead on arrival, nowhere to be found.

            1 Reply Last reply Reply Quote 0
            • bmeeksB
              bmeeks
              last edited by

              @mcury:

              Patch is ready or not?

              The patch has been ready since January 18th, but when my submitted files for the last Snort update got merged into the pfSense repository one of the patch files for the binary was accidentally omitted during the cherry pick process.  I notified the pfSense team this past Monday evening of the oversight and provided them another copy of the missing file.  The new package is not yet posted, though.

              Bill

              1 Reply Last reply Reply Quote 0
              • M
                mcury Rebel Alliance
                last edited by

                @bmeeks:

                @mcury:

                Patch is ready or not?

                The patch has been ready since January 18th, but when my submitted files for the last Snort update got merged into the pfSense repository one of the patch files for the binary was accidentally omitted during the cherry pick process.  I notified the pfSense team this past Monday evening of the oversight and provided them another copy of the missing file.  The new package is not yet posted, though.

                Bill

                Thanks Bill, I almost installed the previous version, I`ll be waiting, thanks for everything.

                Best regards,

                dead on arrival, nowhere to be found.

                1 Reply Last reply Reply Quote 0
                • ivorI
                  ivor
                  last edited by

                  It will be there soon, apologies for the wait!

                  Need help fast? Our support is available 24/7 https://www.netgate.com/support/

                  1 Reply Last reply Reply Quote 0
                  • bmeeksB
                    bmeeks
                    last edited by

                    The fix for Snort on SG-3100 and similar armv6/armv7 devices disables the clang compiler optimizations.  Those optimizations by the compiler generate some machine code sequences that lead to the SIGBUS crash.  So one of my patches goes into the configure script for the Snort binary.  When it detects the compilation target as ARM architecture, it turns off compiler optimizations.  When compiling for Intel/AMD architectures it leaves the compiler optimizations in place.  The file that patches the configure script to include this logic is what got accidentally omitted.

                    So the resulting fixed binary will be slightly larger in size and will not be quite as efficient as the optimized code, but at least it will run on ARM architecture.  The binary for Intel/AMD hardware is the same as it has always been.  The compiler optimizations will be there for the amd64 code base (Intel and AMD).

                    Bill

                    1 Reply Last reply Reply Quote 0
                    • bmeeksB
                      bmeeks
                      last edited by

                      The updated binary for Snort on the SG-3100 has been posted.  This latest version (v2.9.11.1_1 for the binary and v3.2.9.6_1 for the GUI) works on armv7 hardware such as the SG-3100.

                      There are no changes in the latest update except for the fixed binary.

                      Bill

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Tested and working here.

                        Thanks Bill.  :)

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • M
                          mcury Rebel Alliance
                          last edited by

                          Thanks a lot for the hard work, it's working perfectly here.

                          dead on arrival, nowhere to be found.

                          1 Reply Last reply Reply Quote 0
                          • R
                            RossCaryNC
                            last edited by

                            @BMEEKS

                            You are amazing THANK YOU!!!!

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