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

    Suricata blocks internal IP despite beeing on the passlist AND no alerts in logs

    Scheduled Pinned Locked Moved IDS/IPS
    10 Posts 3 Posters 1.1k 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.
    • Cool_CoronaC
      Cool_Corona
      last edited by

      @bmeeks

      I have a very weird problem.

      No logs or alerts but the internal IP gets blocked by suricata on a server despite beeing on the passlist.

      How to troubleshoot that?

      A clear blocks works for some time. Then it blocks again but the block doesnt show in the logs or alerts at all.

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

        My first guess is a duplicate Suricata process is running on the interface. Such a process very well could lose access to the logs where information for the ALERTS tab is pulled from.

        Check for duplicate Suricata processes on your interfaces using this command:

        ps -ax | grep suricata
        

        Kill the PID of any duplicate processes you might see.

        That's really the only way I can imagine for an IP to get inserted into the snort2c table without getting logged. Unless perhaps your alert log files are getting rotated very quickly. The ALERTS tab is populated only from the currently active log. It does not pull from any rotated logs.

        Cool_CoronaC 1 Reply Last reply Reply Quote 0
        • Cool_CoronaC
          Cool_Corona @bmeeks
          last edited by

          @bmeeks

          52316 - Ss 29:05.85 /usr/local/bin/suricata -i vmx2 -D -c /usr/local/etc/suricata/suricata_12544_vmx2/suricata.yaml --pidfile /var/run/suricata_vmx212544.pid
          65841 - S 0:00.00 sh -c ps -ax | grep suricata 2>&1
          65843 - S 0:00.00 grep suricata

          As I see it there is no duplicate proces.

          Solved it at first on reboot then it blocked again not showing the IP in logs.

          Then I recreated the passlist and it hasnt blocked again as of now.

          1 Reply Last reply Reply Quote 0
          • L
            Le_Bleu
            last edited by

            I had the same issue, trafic blocked without alert since I upgraded to Suricata 6.0.3
            It's solved after a restart of suricata service.

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

              @le_bleu said in Suricata blocks internal IP despite beeing on the passlist AND no alerts in logs:

              I had the same issue, trafic blocked without alert since I upgraded to Suricata 6.0.3
              It's solved after a restart of suricata service.

              Do you have Suricata set to automatically clear blocked IPs after some time interval? That setting is on the GLOBAL SETTINGS tab, and I highly recommend that users configure that to clear blocks at a maximum of one hour. If the offending traffic returns, Suricata will block it again. There is no big benefit of persisting blocks forever. The blocked IP table is a RAM construct, so when you reboot it is cleared out. That's why rebooting removed your block.

              One thing that can happen here is your alerts log file gets rotated when you have automated log management enabled on the LOGS MGMT tab. The data on the ALERTS tab is pulled from the "active" alert log. So if the file has been recently rotated, it can be empty, or else the alert that caused the block you currently have is now logged in one of the older rotated alert log files. So you won't see it on the ALERTS tab. This is exacerbated when you do not have blocked IPs automatically getting cleared. In that case, blocks persist until the firewall is rebooted, but the alert that caused them has long since likely been rotated out of view when the log management code rotated the alerts log.

              L 1 Reply Last reply Reply Quote 0
              • L
                Le_Bleu @bmeeks
                last edited by

                @bmeeks The setting "Remove Blocked Hosts Interval" is set to "1hour" but suricata is configure in INLINE mode so the setting is not use if I understand well.

                My suricata configuration runs well since at least 6month without issue. The ALERTS tab is not empty I can see some log of past 24Hours but when trafic is block nothing is listed about this block.

                Cool_CoronaC bmeeksB 2 Replies Last reply Reply Quote 0
                • Cool_CoronaC
                  Cool_Corona @Le_Bleu
                  last edited by

                  @le_bleu Its normal behaviour in INline mode that no blocks show...

                  Blocks only show in legacy mode.

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    Le_Bleu @Cool_Corona
                    last edited by

                    @cool_corona Sorry I would say "Alert" tab and not "block" tab. I should see some entry in alert tab for trafic block

                    Cool_CoronaC 1 Reply Last reply Reply Quote 0
                    • Cool_CoronaC
                      Cool_Corona @Le_Bleu
                      last edited by

                      @le_bleu Indeed you should. :)

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

                        @le_bleu said in Suricata blocks internal IP despite beeing on the passlist AND no alerts in logs:

                        @bmeeks The setting "Remove Blocked Hosts Interval" is set to "1hour" but suricata is configure in INLINE mode so the setting is not use if I understand well.

                        My suricata configuration runs well since at least 6month without issue. The ALERTS tab is not empty I can see some log of past 24Hours but when trafic is block nothing is listed about this block.

                        Oh, well you used the word "block" so I assumed you were using Legacy Mode. You are correct the BLOCKS tab is irrelevant when using Inline IPS Mode. And so is the "Remove Blocked Hosts Interval" setting.

                        There is an issue, I believe, in the Suricata binary itself where it can drop traffic without logging an alert for it. Seems I remember seeing a bug report on the Suricata Redmine site about that. Hopefully that will be addressed in the upcoming 7.0 Suricata release set for later this year.

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