<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How do I change a Suricata setting from the root command line?]]></title><description><![CDATA[<p dir="auto">I need to have a script that runs at intervals that changes based on a variable setting. How do I do that? I've looked and I'm having trouble finding the suricata settings and I also read something about how it wouldn't change anyway as pfsense write the whole config file each time? I may be wrong though. Thanks for any help</p>
]]></description><link>https://forum.netgate.com/topic/159917/how-do-i-change-a-suricata-setting-from-the-root-command-line</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 18:28:53 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/159917.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Jan 2021 20:53:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Thu, 14 Jan 2021 23:59:21 GMT]]></title><description><![CDATA[<p dir="auto">So pretty much "You don't" then. <img src="https://forum.netgate.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=d00e50224fa" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=":wink:" alt="😉" /></p>
]]></description><link>https://forum.netgate.com/post/957131</link><guid isPermaLink="true">https://forum.netgate.com/post/957131</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 14 Jan 2021 23:59:21 GMT</pubDate></item><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Fri, 15 Jan 2021 00:00:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/templateunheard">@<bdi>templateunheard</bdi></a> said in <a href="/post/957105">How do I change a Suricata setting from the root command line?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephenw10">@<bdi>stephenw10</bdi></a> Ok, thanks. Lastly, mind telling me where the suricata config file is? I need to change the IPS threat level setting on an interface but I can only find the installation config file. Thanks</p>
</blockquote>
<p dir="auto">Suricata creates independent and unique config files for each running instance (as in each configured Suricata interface). The files are put in sub-directories underneath <code>/usr/local/etc/suricata</code>. There is a sub-directory there for each configured interface. The name of the interface is part of the directory name to help you identify them. Absolutely nothing in terms of configuration is loaded from the top-level <code>/usr/local/etc/suricata</code> directory. Those are just boilerplate config files distributed with the binary.</p>
<p dir="auto">Editing the config files directly is strongly not recommended. As mentioned here, any change is temporary at best. Each time Suricata is restarted, the <code>suricata.yaml</code> file for the interface is recreated from the data stored for Suricata in the firewall's <code>config.xml</code> master configuration file. Ditto for any time you make any edit in the GUI for Suricata. Suricata can restart on its own without user intervention for many reasons, including something as simple as the daily rules update job executing and updating the rules.</p>
]]></description><link>https://forum.netgate.com/post/957130</link><guid isPermaLink="true">https://forum.netgate.com/post/957130</guid><dc:creator><![CDATA[bmeeks]]></dc:creator><pubDate>Fri, 15 Jan 2021 00:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Thu, 14 Jan 2021 22:42:43 GMT]]></title><description><![CDATA[<p dir="auto">You probably want something in: /usr/local/etc/suricata</p>
]]></description><link>https://forum.netgate.com/post/957112</link><guid isPermaLink="true">https://forum.netgate.com/post/957112</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 14 Jan 2021 22:42:43 GMT</pubDate></item><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Thu, 14 Jan 2021 22:17:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephenw10">@<bdi>stephenw10</bdi></a> Ok, thanks. Lastly, mind telling me where the suricata config file is? I need to change the IPS threat level setting on an interface but I can only find the installation config file. Thanks</p>
]]></description><link>https://forum.netgate.com/post/957105</link><guid isPermaLink="true">https://forum.netgate.com/post/957105</guid><dc:creator><![CDATA[templateunheard]]></dc:creator><pubDate>Thu, 14 Jan 2021 22:17:53 GMT</pubDate></item><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Thu, 14 Jan 2021 22:14:46 GMT]]></title><description><![CDATA[<p dir="auto">I would expect it to survive until the next time the Suricata config was generated which would be when a change is made is suricata or the complete pfSense config is reloaded.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/957104</link><guid isPermaLink="true">https://forum.netgate.com/post/957104</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 14 Jan 2021 22:14:46 GMT</pubDate></item><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Thu, 14 Jan 2021 22:08:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephenw10">@<bdi>stephenw10</bdi></a> How long would that actually change it for? as in if I were to make this script run every x amount of time, how often would it have to run before it defaults? Thanks for the help steve</p>
]]></description><link>https://forum.netgate.com/post/957103</link><guid isPermaLink="true">https://forum.netgate.com/post/957103</guid><dc:creator><![CDATA[templateunheard]]></dc:creator><pubDate>Thu, 14 Jan 2021 22:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to How do I change a Suricata setting from the root command line? on Thu, 14 Jan 2021 22:07:00 GMT]]></title><description><![CDATA[<p dir="auto">You don't.</p>
<p dir="auto">But if you really have to you might be able to change the conf file and restart the service.</p>
<p dir="auto">As you read the Suricata conf file is generated from the main pfSense conf file so any chnage there would be temporary. Which might be OK in your situation.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/957102</link><guid isPermaLink="true">https://forum.netgate.com/post/957102</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 14 Jan 2021 22:07:00 GMT</pubDate></item></channel></rss>