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

    SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped)

    Scheduled Pinned Locked Moved IDS/IPS
    24 Posts 5 Posters 1.9k 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.
    • W
      wolfsden3
      last edited by

      2.7.0-RELEASE (amd64)
      built on Wed Jun 28 03:53:34 UTC 2023
      FreeBSD 14.0-CURRENT
      Intel(R) Atom(TM) CPU C3758 @ 2.20GHz
      8 CPUs: 1 package(s) x 8 core(s)
      AES-NI CPU Crypto: Yes (active)
      QAT Crypto: Yes (inactive)
      0d597c31-190a-4e93-931e-08991d510056-image.png

      Snort seems to be throwing this error and constantly restarting:

      Nov 14 13:43:00 	sshguard 	93221 	Now monitoring attacks.
      Nov 14 13:43:00 	sshguard 	20484 	Exiting on signal.
      Nov 14 13:42:49 	kernel 		igb2: promiscuous mode enabled
      Nov 14 13:42:01 	php-cgi 	58193 	notify_monitor.php: Message sent to rfwolf@gmail.com OK
      Nov 14 13:42:00 	SnortStartup 	59777 	Snort START for LAN 10x(igb2)...
      Nov 14 13:42:00 	php-cgi 	56692 	servicewatchdog_cron.php: Service Watchdog detected service snort stopped. Restarting snort (Snort IDS/IPS Daemon)
      Nov 14 13:41:56 	kernel 		igb2: promiscuous mode disabled
      Nov 14 13:41:56 	kernel 		pid 42851 (snort), jid 0, uid 0: exited on signal 11 (core dumped) 
      

      Currently on: 4.1.6_13 and I just updated it in an attempt to resolve this issue.

      I see some very old posts even back to 2011 I think that discuss a similar issue but I haven't a clue where to look for resolving this issue. I updated another box with the same result that was not having this problem until I updated it.

      The service watchdog detects it as down and restarts it.

      Any insight into a fix would be great!

      Thanks.

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

        @wolfsden3 said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

        Nov 14 13:42:00 php-cgi 56692 servicewatchdog_cron.php: Service Watchdog detected service snort stopped. Restarting snort (Snort IDS/IPS Daemon)

        I've posted here on the forums like a million times -- DO NOT monitor Snort with Service Watchdog. That package does not understand how Snort works internally as a package, does not understand when Snort is automatically restarting itself, and does not even now how to properly monitor all the possible Snort configured interfaces.

        Service Watchdog is a very simpleton package. It monitors for process name, and if that single process name disappears, it calls the registered shell script to attempt a restart. This causes big problems for Snort and Suricata. Both of those packages routinely restart themselves when auto-updating rules or even when you as the admin save certain configuration changes. Service Watchdog is ignorant of this simple fact. It sees the monitored process daemon go away, so it blindly issues its own restart command. Now it is very likely that multiple Snort processes will attempt to startup on the same interface. And that means trouble.

        Not saying this is your only issue, but it certainly is making things worse!

        W 2 Replies Last reply Reply Quote 0
        • W
          wolfsden3 @bmeeks
          last edited by wolfsden3

          @bmeeks said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

          ut it certainly is making things worse!

          Cool, I thought about that too but decided to post asking. I've turned it off in watchdog and will monitor.

          Oh, looks like it restarted again...I'll check the logs again.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • W
            wolfsden3 @bmeeks
            last edited by

            @bmeeks

            Perhaps it's SSH Guard...?

            Nov 14 14:53:00 	sshguard 	62136 	Now monitoring attacks.
            Nov 14 14:53:00 	sshguard 	28621 	Exiting on signal.
            Nov 14 14:52:02 	kernel 		igb2: promiscuous mode disabled
            Nov 14 14:52:02 	kernel 		pid 38492 (snort), jid 0, uid 0: exited on signal 11 (core dumped) 
            

            SNORT is still restarting but now after the dump sshguard is logged as "Now monitoring attacks". I hadn't noticed that before, the first post also mentions sshguard. I had just assumed it was snort since it was "core dumped".

            Thoughts?

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

              @wolfsden3 said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

              @bmeeks

              Perhaps it's SSH Guard...?

              Nov 14 14:53:00 	sshguard 	62136 	Now monitoring attacks.
              Nov 14 14:53:00 	sshguard 	28621 	Exiting on signal.
              Nov 14 14:52:02 	kernel 		igb2: promiscuous mode disabled
              Nov 14 14:52:02 	kernel 		pid 38492 (snort), jid 0, uid 0: exited on signal 11 (core dumped) 
              

              SNORT is still restarting but now after the dump sshguard is logged as "Now monitoring attacks". I hadn't noticed that before, the first post also mentions sshguard. I had just assumed it was snort since it was "core dumped".

              Thoughts?

              No, sshguard has nothing to do with this. That is restarting due to system log rotations most likely.

              Snort is faulting for some other reason. In one of your posts up above you intimated this had been happening before you updated to the latest package version. Is that correct?

              W 1 Reply Last reply Reply Quote 0
              • W
                wolfsden3 @bmeeks
                last edited by

                @bmeeks Correct. In the prior version I didn't see this. In the prior version there was yet another bug where I had to add a \ in front of a $ somewhere on line 42 I think it was for the interface to even start in some snort config file. I've since lost that link but it fixed it until the upgrade which is now in a perpetual restart.

                I just tried reinstalling snort > no worky. I also tried an uninstall > reinstall, still the same behavior on both boxes.

                I'm surprised nobody else has this issue. Maybe it's specific to something I have configured. I'm in legacy mode.

                Did more digging online...looks like you replied to a similar thread with the core dump problem here:

                https://forum.netgate.com/topic/166076/snort-exited-on-signal-11-core-dumped/7

                Still looking for a fix.

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

                  Try this for me to help focus the troubleshooting:

                  Go to the INTERFACE SETTINGS tab in Snort and uncheck the Kill States option. Save that change and manually start or restart Snort.

                  Let me know how that works.

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    wolfsden3 @bmeeks
                    last edited by

                    @bmeeks

                    Done. I also ticked an option somewhere in the config for more robust logging. I saw this and tried to untick "Resolve Flowbits" for giggles but it still bombed later so I turned resolving flowbits back on.

                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'file.pkp' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'blackhole.jar' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'MQTT_Connect' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'ET.000webhostpost' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'FraudLoad' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'smb.neoteris' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'DigiWatcher232_detection' is set but not ever checked.
                    Nov 14 16:54:59 	snort 	87355 	WARNING: flowbits key 'tlsv1.1_handshake' is set but not ever checked. 
                    
                    W bmeeksB 2 Replies Last reply Reply Quote 0
                    • W
                      wolfsden3 @wolfsden3
                      last edited by

                      @wolfsden3

                      So far...after unticking kill states, no crash. What's that mean? :P

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

                        @wolfsden3 said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                        @wolfsden3

                        So far...after unticking kill states, no crash. What's that mean? :P

                        Sorry to be late replying. Was away at an appreciation dinner getting stuffed 🍝.

                        This tells me where the problem is in the code. This area was modified about two weeks ago by a Netgate kernel developer who manages pf in FreeBSD. The kill states section of kernel system calls changed back in late August in FreeBSD and thus in the latest pfSense. That developer made some fixes in the custom module for Legacy Blocking specifically in the area that calls "kill states" in FreeBSD. Since you no longer get the crash when kill states is disabled, that means that the area he changed is almost certainly where the crash is happening now in Snort. So, at least we have the area narrowed down.

                        This will not be as quick of a fix as a GUI PHP file. I will need to get that developer's assistance again to help track down the failure point and fix it.

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

                          I've opened Redmine Issue #14986 to track this. I have also exchanged emails with the Netgate developer team and engaged their kernel experts to help out tracking this bug down and fixing it.

                          1 Reply Last reply Reply Quote 0
                          • fireodoF fireodo referenced this topic on
                          • D
                            DD
                            last edited by

                            We have same problem with Snort - exited on signal 11 (core dumped) after updated to 4.1.6_13. After untick kill states it is not crashing.

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

                              @DD said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                              We have same problem with Snort - exited on signal 11 (core dumped) after updated to 4.1.6_13. After untick kill states it is not crashing.

                              Thanks for the report. Can you please confirm to me what pfSense version and family you are using?

                              Are you running pfSense CE or pfSense Plus, and what is the specific version?

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

                                @wolfsden3 said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                                I saw this and tried to untick "Resolve Flowbits" for giggles but it still bombed later

                                Flowbits warnings are not a problem and could not cause a Signal 11 segfault.

                                There is an issue somewhere in the custom blocking plugin and/or in the new FreeBSD libpfctl library. The right guy is looking into it. He is one of the main guys maintaining the pf firewall engine code in FreeBSD.

                                1 Reply Last reply Reply Quote 0
                                • D
                                  DD @bmeeks
                                  last edited by

                                  @bmeeks We are using pfSense CE 2.7.0-RELEASE.

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

                                    @DD said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                                    @bmeeks We are using pfSense CE 2.7.0-RELEASE.

                                    Hmm... okay. Was not expecting that because I have thus far been unable to reproduce the issue in my CE 2.7.0-RELEASE virtual machine. Obviously I need to try harder 🙂.

                                    Thank you for the additional information.

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      DD @bmeeks
                                      last edited by

                                      @bmeeks If I enable "kill states", then Snort is working for sometime (sometime 5 minutes, sometime 2 minutes, sometime 30 minutes.....) a then it will stop. After start, it is working again for sometime. When I disabled kill states, snort is working without stoping.

                                      fireodoF bmeeksB 2 Replies Last reply Reply Quote 0
                                      • fireodoF
                                        fireodo @DD
                                        last edited by

                                        @DD said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                                        @bmeeks If I enable "kill states", then Snort is working for sometime (sometime 5 minutes, sometime 2 minutes, sometime 30 minutes.....) a then it will stop. After start, it is working again for sometime. When I disabled kill states, snort is working without stoping.

                                        Same here - i guess this fault is present only on very "busy" interfaces where frecvent "kill state" are necessary.

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

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

                                          @DD said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                                          @bmeeks If I enable "kill states", then Snort is working for sometime (sometime 5 minutes, sometime 2 minutes, sometime 30 minutes.....) a then it will stop. After start, it is working again for sometime. When I disabled kill states, snort is working without stoping.

                                          Yes, that behavior correlates with the current theory of the bug. My suspicion is that when Snort blocks an IP and then attempts the follow-up action of clearing any open firewall states for that IP, it encounters the bug and crashes. But apparently this is not "always", because if it was "always and everytime", I could reproduce it easily and all users would be seeing the crash. So, something else is also likely at play. Still searching for the actual root cause. For example, it may be that two differnet events have to occur together to trigger the bug ???

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

                                            @fireodo said in SNORT: promiscuous mode disabled + promiscuous mode enabled error + exited on signal 11 (core dumped):

                                            Same here - i guess this fault is present only on very "busy" interfaces where frecvent "kill state" are necessary.

                                            Yes, it does seem to require some extra "something" to trigger it because I have thus far not been successful. But my puny test environment with VMware Workstation virtual machines can't generate a ton of traffic.

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