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

Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module

IDS/IPS
15
82
14.9k
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.
  • G
    Gblenn @slu
    last edited by Nov 16, 2023, 11:00 AM

    @slu said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

    @Bob-Dig
    good point, no, not at the moment.

    😊 Ah, that was a question to you obviously...

    1 Reply Last reply Reply Quote 0
    • S
      slu @Bob.Dig
      last edited by Nov 16, 2023, 11:03 AM

      @Bob-Dig said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

      @slu Do you have actually blocks?

      You are right, searching in the logs and found it:

      Nov 15 06:47:55 	kernel 		pid 44159 (snort), jid 0, uid 0: exited on signal 11 (core dumped)
      

      pfSense Gold subscription

      B 1 Reply Last reply Nov 16, 2023, 11:08 AM Reply Quote 0
      • B
        Bob.Dig LAYER 8 @slu
        last edited by Bob.Dig Nov 16, 2023, 11:10 AM Nov 16, 2023, 11:08 AM

        @slu said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

        You are right, searching in the logs and found it:

        👍

        I didn't searched in the logs. I think, it will disable IPS on that interface and is easy to spot in the GUI? At least I hope.

        1 Reply Last reply Reply Quote 0
        • J
          johnpitton
          last edited by Nov 16, 2023, 5:31 PM

          I have a few Netgate 7100 units all running 23.09 with Snort VRT rules in legacy Blocking mode and Kill State enabled with 7 days blocking set.
          They've been at this 23.09 ver for almost a week now and stable.
          All of them have active blocks listed.
          I checked and verified SNORT rulesets have been updating successfully.
          I don't see in any of the logs any signal 11 core dumps logged.

          B 1 Reply Last reply Nov 16, 2023, 5:36 PM Reply Quote 0
          • B
            bmeeks @johnpitton
            last edited by bmeeks Nov 16, 2023, 5:37 PM Nov 16, 2023, 5:36 PM

            @johnpitton said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

            I have a few Netgate 7100 units all running 23.09 with Snort VRT rules in legacy Blocking mode and Kill State enabled with 7 days blocking set.
            They've been at this 23.09 ver for almost a week now and stable.
            All of them have active blocks listed.
            I checked and verified SNORT rulesets have been updating successfully.
            I don't see in any of the logs any signal 11 core dumps logged.

            What version of the Snort package is installed on your box? Look under SYSTEM > PACKAGE MANAGER and post back the version shown there. There has been an issue with the package builder for 23.09, so my understanding is that some of the most recent package updates have not been deployed in that branch.

            J 1 Reply Last reply Nov 16, 2023, 5:38 PM Reply Quote 0
            • J
              johnpitton @bmeeks
              last edited by Nov 16, 2023, 5:38 PM

              @bmeeks
              🔒 Log in to view

              B 1 Reply Last reply Nov 16, 2023, 5:40 PM Reply Quote 0
              • B
                bmeeks @johnpitton
                last edited by bmeeks Nov 16, 2023, 5:57 PM Nov 16, 2023, 5:40 PM

                @johnpitton said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                @bmeeks
                🔒 Log in to view

                Yes, that is the older version of the package. Current is now 4.1.6_13 for the GUI and 2.9.20_5 for the associated binary. The newer package is held up currently for 23.09 because of a different problem with the package builder backend. In your case, I would advise sticking with the version you have until we find and squash the bug introduced in the newest package.

                Thank you for this data point. It is helpful in my troubleshooting to isolate the new bug. The code change which appears to have introduced the bug happened with the 2.9.20_4 version of the Snort binary.

                1 Reply Last reply Reply Quote 0
                • B
                  bmeeks
                  last edited by bmeeks Nov 16, 2023, 9:03 PM Nov 16, 2023, 9:03 PM

                  I think I may have found the Signal 11 core dump bug. If I am correct, it's actually in the FreeBSD libpfctl library and not directly in the Snort code. I'm waiting on the Netgate kernel developer I'm working with to either confirm my finding or show me where I went off track analyzing the library code ☺.

                  F 1 Reply Last reply Nov 17, 2023, 11:20 AM Reply Quote 4
                  • F
                    fireodo @bmeeks
                    last edited by Nov 17, 2023, 11:20 AM

                    @bmeeks said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                    If I am correct, it's actually in the FreeBSD libpfctl library and not directly in the Snort code.

                    Just out of curiosity: that could be corrected by rebuilding and replacing that library or there would be necessary a new pfsense revision?

                    Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                    SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                    pfsense 2.7.2 CE
                    Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                    B 1 Reply Last reply Nov 17, 2023, 1:45 PM Reply Quote 0
                    • Y
                      yorke
                      last edited by Nov 17, 2023, 12:38 PM

                      pfsense CE 2.7.0
                      Nov 17 06:59:00 kernel pid 25245 (suricata), jid 0, uid 0: exited on signal 11 (core dumped)

                      B 1 Reply Last reply Nov 17, 2023, 1:46 PM Reply Quote 0
                      • B
                        bmeeks @fireodo
                        last edited by bmeeks Nov 17, 2023, 2:22 PM Nov 17, 2023, 1:45 PM

                        @fireodo said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                        Just out of curiosity: that could be corrected by rebuilding and replacing that library or there would be necessary a new pfsense revision?

                        No, I don't think that could work.

                        However, there is a way to workaround the problem by calling the older legacy functions for killing firewall states in my custom blocking module when the FreeBSD version running on the box is less than a particular value. That would workaround the faulty library until it could be updated with a kernel update.

                        Updated Info:
                        A new version of the libpfctl package will be built and added to pfSense 2.7.1 CE and 23.09 Plus builds. I'm not sure of all the logistics involved here, so won't speculate much more.

                        The root cause was an effort to migrate pfctl functionality over to a wrapper library instead of using direct kernel ioctl() calls. One of the things the new wrapper library (libpfctl) does is use the new nvlist functionality in the kernel. Here is the official man page for nvlist: https://man.freebsd.org/cgi/man.cgi?query=nvlist&apropos=0&sektion=0&manpath=FreeBSD+15.0-CURRENT&arch=default&format=html. As more pfctl functionality is shifted to the libpfctl library, a few of the legacy ioctl() calls are being removed. The upcoming new versions of pfSense (sorry, but I don't know which ones) will not be able to use the legacy ioctl() calls at all for some pfctl operations. That means my custom blocking plugin had to be updated to cope with that. Without realizing there was an issue in libpfctl, the latest Snort and Suricata packages were bundled with the newly modified custom plugin code because libpfctl has been available since at least FreeBSD 12. Since both CE and Plus are on a version of FreeBSD 14, it seemed like a no-brainer.

                        But after digging around there appears to be a couple of lingering bugs in libpfctl depending on which specific FreeBSD kernel is in use. For example, the libpfctl version bundled with pfSense CE 2.7.0 is slightly different from the version bundled with 23.09 Plus. The CE 2.7.0 version appears to have two bugs (one of which was fixed in the later libpfctl library version bundled with 23.09 Plus). That's why the Snort and Suricata Signal 11 issue appears most acute for CE 2.7.0 users. But I think it is impacting 23.09 users as well. The bug triggers somewhat randomly because a unique set of circumstances have to occur to trigger it.

                        The fix will almost certainly involve an update to my custom blocking plugin code used in Snort and Suricata. Then the libpfctl library will likely be updated in the next pfSense version release.

                        More Updated Info:
                        I have some further refinements/updates for the custom blocking modules in both Snort and Suricata. I will be posting new versions of both packages a bit later- after the updates for libpfctl have landed.

                        F 1 Reply Last reply Nov 17, 2023, 2:07 PM Reply Quote 1
                        • B
                          bmeeks @yorke
                          last edited by Nov 17, 2023, 1:46 PM

                          @yorke said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                          pfsense CE 2.7.0
                          Nov 17 06:59:00 kernel pid 25245 (suricata), jid 0, uid 0: exited on signal 11 (core dumped)

                          Are you using Legacy Blocking Mode? And if so, is the Kill States option checked (enabled) on the INTERFACE SETTINGS tab?

                          1 Reply Last reply Reply Quote 0
                          • F
                            fireodo @bmeeks
                            last edited by Nov 17, 2023, 2:07 PM

                            @bmeeks said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                            That's why the Snort and Suricata Signal 11 issue appears most acute for CE 2.7.0 users. But I think it is impacting 23.09 users as well.

                            I updated today to 2.7.1 CE and reading your explanations I reactivated the KILL STATES on the busy interface and will report.

                            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                            pfsense 2.7.2 CE
                            Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                            B 1 Reply Last reply Nov 17, 2023, 2:16 PM Reply Quote 0
                            • B
                              bmeeks @fireodo
                              last edited by bmeeks Nov 17, 2023, 2:16 PM Nov 17, 2023, 2:16 PM

                              @fireodo said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                              @bmeeks said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                              That's why the Snort and Suricata Signal 11 issue appears most acute for CE 2.7.0 users. But I think it is impacting 23.09 users as well.

                              I updated today to 2.7.1 CE and reading your explanations I reactivated the KILL STATES on the busy interface and will report.

                              You will likely still experience the bug in 2.7.1 CE at the moment, although the kernel developer is about to commit the fix to libpfctl there shortly. At some point after that, a new libpfctl package will build for 2.7.1 CE and 23.09 Plus.

                              I'm not sure of all the logistics of getting that updated library onto individual machines, though. For CE 2.7.1-RC users it could happen with a new incremental build of that version. I don't know how it will work for 23.09 Plus users or CE 2.7.0 users.

                              F S 2 Replies Last reply Nov 17, 2023, 2:21 PM Reply Quote 0
                              • F
                                fireodo @bmeeks
                                last edited by Nov 17, 2023, 2:21 PM

                                @bmeeks said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                                You will likely still experience the bug in 2.7.1 CE at the moment, although the kernel developer is about to commit the fix to libpfctl there shortly. At some point after that, a new libpfctl package will build for 2.7.1 CE and 23.09 Plus.

                                Ah, OK then I get back to the NO Kill States ... and wait :-)

                                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                pfsense 2.7.2 CE
                                Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  SteveITS Galactic Empire @bmeeks
                                  last edited by Nov 17, 2023, 2:27 PM

                                  @bmeeks 2.7.1 released yesterday actually…didn’t notice any posts here but it’s on Netgate’s blog.

                                  Perhaps this and the URL Alias bug will be sufficient to quickly produce a point release.

                                  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!

                                  B 1 Reply Last reply Nov 17, 2023, 2:35 PM Reply Quote 0
                                  • B
                                    bmeeks @SteveITS
                                    last edited by Nov 17, 2023, 2:35 PM

                                    @SteveITS said in Important Snort and Suricata Package Announcement -- probable bug in Legacy Blocking Module:

                                    2.7.1 released yesterday actually…didn’t notice any posts here but it’s on Netgate’s blog.

                                    I've been buried head down chasing the IDS/IPS package bugs and have not checked the release status.

                                    I do know the kernel developer and author of all the recent libpfctl library changes is working to post the fixes and get them into at least 2.7.1 and 23.09. That is all happening this morning.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bmeeks
                                      last edited by Nov 17, 2023, 3:04 PM

                                      I've updated the original post at the top of this thread with new information.

                                      I'll briefly repeat that here --

                                      A fix has been identified and implemented for the bug exposed by the custom blocking module changes in the most recent Snort and Suricata package updates. The fix requires the publishing of a new libpfctl library package and then rebuilding impacted packages where libpfctl is a build dependency. That will happen soon in the pfSense CE 2.7.1 and pfSense Plus 23.09 branches.

                                      Not sure at this point if the fix can be fully migrated back to CE 2.7.0 because of the kernel age difference between 2.7.0 CE and the just releasted 2.7.1 CE. Some kernel functions used by the updated libpfctl library code are not present in the 2.7.0 CE kernel. It may turn out that the only fix for 2.7.0 CE users is to update to 2.7.1 CE after the fixed packages are present there. But this question is still being looked at by the Netgate developer team.

                                      F N S 3 Replies Last reply Nov 17, 2023, 3:49 PM Reply Quote 4
                                      • F
                                        fireodo @bmeeks
                                        last edited by Nov 17, 2023, 3:49 PM

                                        @bmeeks OFF Topic:

                                        Thanks for your effort and work chasing that annoying bug! (has to be said)

                                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                        pfsense 2.7.2 CE
                                        Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                        1 Reply Last reply Reply Quote 1
                                        • N
                                          NogBadTheBad @bmeeks
                                          last edited by Nov 17, 2023, 4:00 PM

                                          @bmeeks Is this the new version that's just come out today, if it is its still dumping core:-

                                          Nov 17 15:58:20 kernel pid 93766 (suricata), jid 0, uid 0: exited on signal 11 (core dumped)
                                          Nov 17 15:58:19 suricata 92214 [634254] <Notice> -- This is Suricata version 7.0.2 RELEASE running in SYSTEM mode
                                          Nov 17 15:58:19 php 82334 [Suricata] Suricata START for LAN(igb0)...

                                          Andy

                                          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                                          B 1 Reply Last reply Nov 17, 2023, 4:08 PM Reply Quote 0
                                          41 out of 82
                                          • First post
                                            41/82
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.