{"id":1259,"date":"2021-04-15T19:01:08","date_gmt":"2021-04-15T17:01:08","guid":{"rendered":"https:\/\/www.boettrich.info\/blog\/?p=1259"},"modified":"2021-04-16T11:58:45","modified_gmt":"2021-04-16T09:58:45","slug":"pfsense-suricata-fails","status":"publish","type":"post","link":"https:\/\/www.boettrich.info\/blog\/beitrag\/pfsense-suricata-fails\/","title":{"rendered":"pfSense &#8211; Suricata fails"},"content":{"rendered":"\n<p>I migrated my pfsense to a new hardware these days. Now it&#8217;s a i5-8365U based mini-computer with 4 Cores (+HT) and 8 RJ-45 Ports in a passively cooled setup. My former hardware had only one RJ-45 Port with a lot with VLANs. And this is where a little problem started &#8211; suricata did not start after the migration.<\/p>\n\n\n\n<p><strong>The cause:<\/strong><\/p>\n\n\n\n<p>The default allocated memory is too low for a machine capable doing 8 threads. So the suricata start fails with:<\/p>\n\n\n\n<p><code>14\/4\/2021 -- 20:56:31 - &lt;Error> -- [ERRCODE: SC_ERR_POOL_INIT(66)] - alloc error<\/code><\/p>\n\n\n\n<p><code>14\/4\/20219 -- 20:56:31 - &lt;Error> -- [ERRCODE: SC_ERR_POOL_INIT(66)] - pool grow failed<\/code><\/p>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>Navigate to &#8222;Diagnostics&#8220; =&gt; &#8222;Command prompt&#8220; and type in<\/p>\n\n\n\n<p><code> rm -f \/var\/run\/suricata_*<\/code><\/p>\n\n\n\n<p>and click &#8222;execute&#8220;. This removes potential orphaned PID-files.<\/p>\n\n\n\n<p>Now navigate to &#8222;Services&#8220; =&gt; Suricata =&gt; &#8222;{the_interface}&#8220; =&gt; edit =&gt; &#8222;WAN\/Flow Stream&#8220; and increase two values:<\/p>\n\n\n\n<p><strong>Section &#8222;Flow Manager Settings&#8220; <\/strong><\/p>\n\n\n\n<p>Flow Memory Cap : 335544320<\/p>\n\n\n\n<p><strong>Section &#8222;Stream Engine Settings&#8220; <\/strong><\/p>\n\n\n\n<p>Stream Memory Cap: 671088640<\/p>\n\n\n\n<p>I just added a zero at the end of the numbers so the above numbers are already the increased values. Make sure you adjust the above settings for <em>every <\/em>interface you want suricata to protect.<\/p>\n\n\n\n<p>That&#8217;s it &#8211; start suricata and you&#8217;re all set.<\/p>\n\n\n\n<p>Thanks for watching.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I migrated my pfsense to a new hardware these days. Now it&#8217;s a i5-8365U based mini-computer with 4 Cores (+HT) and 8 RJ-45 Ports in a passively cooled setup. My former hardware had only one RJ-45 Port with a lot with VLANs. And this is where a little problem started &#8211; suricata did not start&hellip;&nbsp;<a href=\"https:\/\/www.boettrich.info\/blog\/beitrag\/pfsense-suricata-fails\/\" rel=\"bookmark\">Weiterlesen &raquo;<span class=\"screen-reader-text\">pfSense &#8211; Suricata fails<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-1259","post","type-post","status-publish","format-standard","hentry","category-beitrag","category-technik"],"_links":{"self":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/comments?post=1259"}],"version-history":[{"count":8,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":1269,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1259\/revisions\/1269"}],"wp:attachment":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/media?parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/categories?post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/tags?post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}