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

Suricata 2.1.5 Update – Release Notes

IDS/IPS
10
23
7.0k
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.
  • B
    bmeeks
    last edited by May 15, 2015, 12:33 PM

    Thanks for the research.  I will adjust the default value in the next package update.

    Bill

    1 Reply Last reply Reply Quote 0
    • C
      Cino
      last edited by May 15, 2015, 1:20 PM

      @avink:

      I saw the same error during startup, SC_ERR_POOL_INIT and SC_ERR_THREAT_INIT error.
      Could be IPv6 related, I'm using IPv6 on all interfaces. about 45% of all traffic is IPv6.

      To solve I increased 'Stream Memory Cap' to 64Mb.

      André

      I changed my settings based on this post and all my interfaces are back online

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by May 18, 2015, 6:17 PM

        At my installation suricata also doesn't start with 64 MB at 'Stream Memory Cap', however, with 96 it does.

        1 Reply Last reply Reply Quote 0
        • C
          ccb056
          last edited by May 18, 2015, 11:37 PM

          @Cino:

          @avink:

          I saw the same error during startup, SC_ERR_POOL_INIT and SC_ERR_THREAT_INIT error.
          Could be IPv6 related, I'm using IPv6 on all interfaces. about 45% of all traffic is IPv6.

          To solve I increased 'Stream Memory Cap' to 64Mb.

          André

          I changed my settings based on this post and all my interfaces are back online

          64 MB worked for me also.

          1 Reply Last reply Reply Quote 0
          • S
            stewgoin
            last edited by May 21, 2015, 2:18 AM

            96 worked here as well, 64 borked.

            1 Reply Last reply Reply Quote 0
            • G
              gsiemon
              last edited by May 21, 2015, 3:29 AM

              My guess is that 96MB worked for you as you have more processors than me.  I have 4 active processors on my setup so I get 7 packet processing threads and a management thread.  If you have more processors then you end up with more threads and therefore need more memory.

              1 Reply Last reply Reply Quote 0
              • V
                viragomann
                last edited by May 21, 2015, 9:58 AM

                Quad core with HT

                1 Reply Last reply Reply Quote 0
                • G
                  gsiemon
                  last edited by May 22, 2015, 12:28 AM

                  @viragomann:

                  Quad core with HT

                  So you have double the number of logical processors that I have.  So you'd need a minimum of 94.5MB to make it work.

                  1 Reply Last reply Reply Quote 0
                  • V
                    viragomann
                    last edited by May 22, 2015, 1:06 PM

                    I see. Thanks for explanation.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mcentirefj
                      last edited by May 28, 2015, 10:20 PM May 28, 2015, 5:17 PM

                      How do you increase the stream memory cap?

                      Edit: Nevermind, found it in the config.xml

                      Edit2: Got it working. Underestimated how many threads I had. Needed to bump my stream mem cap to 168.75mb according to the formula gsiemon provided:

                      Also, how can I calculate the highest value that I can use?

                      TcpSession structure is 192 bytes, PoolBucket 24. So it should be:

                      (192 + 24) * prealloc_sessions * number of threads = memory use in bytes

                      1 Reply Last reply Reply Quote 0
                      • V
                        viragomann
                        last edited by May 28, 2015, 8:09 PM

                        In the GUI, Suricata interface settings:

                        Suricata > Interface > Flow and Stream
                        "Stream Memory Cap"

                        Suricata2.png
                        Suricata2.png_thumb

                        1 Reply Last reply Reply Quote 1
                        • S
                          SixXxShooTeR
                          last edited by Jun 6, 2015, 9:31 AM

                          Neither interface will start for me. I know in your Snort write up you mentioned if snort didn't start it was likely because preprocessors werent turned on. Am I missing something like that in the Suricata package?

                          1 Reply Last reply Reply Quote 0
                          • B
                            bmeeks
                            last edited by Jun 6, 2015, 12:40 PM

                            @SixXxShooTeR:

                            Neither interface will start for me. I know in your Snort write up you mentioned if snort didn't start it was likely because preprocessors werent turned on. Am I missing something like that in the Suricata package?

                            No, Suricata does not have preprocessors like Snort does.  Have you looked at the log files?  There is the system log and there are log files for each Suricata interface (look on the LOGS tab in Suricata).

                            Bill

                            1 Reply Last reply Reply Quote 0
                            • S
                              SixXxShooTeR
                              last edited by Jun 6, 2015, 7:39 PM

                              These are the errors from the WAN suricata.log

                              6/6/2015 – 02:28:04 - <error>-- [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - Can't use file_data with flow:to_server or from_client with http.
                              6/6/2015 – 02:28:04 - <error>-- [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - error parsing signature "alert tcp $EXTERNAL_NET any -> $SMTP_SERVERS 25 (msg:"FILE-IDENTIFY CIS file magic detected"; flow:to_server,established; file_data; content:"|43 49 53 00 00 00 00 00|"; fast_pattern:only; flowbits:set,file.cis; flowbits:noalert; metadata:service smtp; classtype:misc-activity; sid:28367; rev:1;)" from file /usr/pbi/suricata-amd64/etc/suricata/suricata_54713_em0/rules/flowbit-required.rules at line 19
                              6/6/2015 – 02:28:04 - <info>-- 2 rule files processed. 223 rules successfully loaded, 1 rules failed
                              6/6/2015 -- 02:28:04 - <info>-- 223 signatures processed. 34 are IP-only rules, 4 are inspecting packet payload, 63 inspect application layer, 72 are decoder event only
                              6/6/2015 -- 02:28:04 - <info>-- building signature grouping structure, stage 1: preprocessing rules... complete
                              6/6/2015 -- 02:28:04 - <info>-- building signature grouping structure, stage 2: building source address list... complete
                              6/6/2015 -- 02:28:04 - <info>-- building signature grouping structure, stage 3: building destination address lists... complete
                              6/6/2015 -- 02:28:04 - <info>-- Threshold config parsed: 0 rule(s) found
                              6/6/2015 -- 02:28:04 - <info>-- Core dump size is unlimited.
                              6/6/2015 -- 02:28:04 - <info>-- fast output device (regular) initialized: alerts.log
                              6/6/2015 -- 02:28:04 - <info>-- http-log output device (regular) initialized: http.log
                              6/6/2015 -- 02:28:04 - <info>-- Using 1 live device(s).
                              6/6/2015 -- 02:28:04 - <info>-- using interface em0
                              6/6/2015 -- 02:28:04 - <info>-- Running in 'auto' checksum mode. Detection of interface state will require 1000 packets.
                              6/6/2015 -- 02:28:04 - <info>-- Found an MTU of 1500 for 'em0'
                              6/6/2015 -- 02:28:04 - <info>-- Set snaplen to 1516 for 'em0'
                              6/6/2015 -- 02:28:04 - <error>-- [ERRCODE: SC_ERR_POOL_INIT(66)] - alloc error
                              6/6/2015 – 02:28:04 - <error>-- [ERRCODE: SC_ERR_POOL_INIT(66)] - pool grow failed
                              6/6/2015 – 02:28:04 - <info>-- RunModeIdsPcapAutoFp initialised
                              6/6/2015 -- 02:28:04 - <error>-- [ERRCODE: SC_ERR_THREAD_INIT(49)] - thread "Detect6" closed on initialization.
                              6/6/2015 – 02:28:04 - <error>-- [ERRCODE: SC_ERR_INITIALIZATION(45)] - Engine initialization failed, aborting…</error></error></info></error></error></info></info></info></info></info></info></info></info></info></info></info></info></info></info></error></error>

                              1 Reply Last reply Reply Quote 0
                              • S
                                SixXxShooTeR
                                last edited by Jun 7, 2015, 7:02 AM

                                increasing the stream memory cap from 32MB to 64MB fixed the issue.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bmeeks
                                  last edited by Jun 7, 2015, 11:23 PM

                                  @SixXxShooTeR:

                                  increasing the stream memory cap from 32MB to 64MB fixed the issue.

                                  Yes, the old default stream memory setting is too small as of the 2.0.7 release of Suricata.  I will update the default size and make it some larger in the next package update.

                                  Bill

                                  1 Reply Last reply Reply Quote 0
                                  • A atafm2 referenced this topic on May 1, 2023, 3:06 AM
                                  • A atafm2 referenced this topic on May 1, 2023, 3:07 AM
                                  • A atafm2 referenced this topic on May 1, 2023, 3:07 AM
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.