<?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[snort: restarting needed if IP list edited?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
With a honey pot, I generate a IP text file list with bad IPs. With cron job and curl I download the file into the snort ip reputation folder. The file is setup in the IP File list and used by the interfaces successfully. Bad hosts are blocked.</p>
<p dir="auto"><strong>Question:</strong><br />
After downloading a new txt file with same filename (overwrite), do I have to restart snort? If so, I would add after curl command this:</p>
<pre><code>&amp;&amp; sleep(1) &amp;&amp; /usr/local/etc/rc.d/snort.sh restart
</code></pre>
<p dir="auto">Is this prodcedure right or is there a better way?</p>
<p dir="auto">all the best, Frank</p>
]]></description><link>https://forum.netgate.com/topic/169500/snort-restarting-needed-if-ip-list-edited</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 17:09:44 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/169500.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Jan 2022 09:49:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Thu, 03 Feb 2022 13:57:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1023363">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a><br />
OK, will take a look into the logs to see, if the updates of the list are imported successful.</p>
<p dir="auto">OT Question: in the blocked tab, I see the "Last 500 Hosts Blocked by Snort ". In the browser, I can use CTRL+f to search for an IP.</p>
<p dir="auto">a) is it possible, as a future feature, to get a search filed for an IP when the list is larger, &gt; 2000 entries?</p>
</blockquote>
<p dir="auto">I don't really understand why you would want the block list to grow like that. The suggested setup is to enable the automatic cron task (on the GENERAL SETTINGS tab) that clears blocked hosts who have seen no traffic for the interval specified in the parameter on that tab. For example, if you choose 1 hour, then any IP in the block list that has seen no traffic for the last hour will be automatically removed from the block list after the interval has expired.</p>
<p dir="auto">There is really no point in maintaining huge block lists. If the same host attacks again, then Snort will detect and block it again. It is usually sufficient to block a host for 15 minutes to an hour. If you have not already, I strongly recommend you enable that setting and configure it for either 30 minutes or 1  hour max.</p>
<p dir="auto">Snort blocks by making a pfSense system call and inserting the offending IP into a <code>pf</code> table called <em>snort2c</em>. That table is created by pfSense during bootup, and it is a RAM construct. So when the firewall is restarted, that table is recreated from scratch.</p>
<blockquote>
<p dir="auto">b) can I use a command line command to search for a blocked IP and remove it from snort's blocklist?</p>
</blockquote>
<p dir="auto">You can manage the <code>pf</code> firewall engine using the <code>pfctl</code> utility. Here is a link to its documentation:  <a href="https://www.freebsd.org/cgi/man.cgi?query=pfctl&amp;sektion=8" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.freebsd.org/cgi/man.cgi?query=pfctl&amp;sektion=8</a>.</p>
<blockquote>
<p dir="auto">Thanks, Frank</p>
</blockquote>
]]></description><link>https://forum.netgate.com/post/1023397</link><guid isPermaLink="true">https://forum.netgate.com/post/1023397</guid><dc:creator><![CDATA[bmeeks]]></dc:creator><pubDate>Thu, 03 Feb 2022 13:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Thu, 03 Feb 2022 05:11:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a><br />
OK, will take a look into the logs to see, if the updates of the list are imported successful.</p>
<p dir="auto">OT Question: in the blocked tab, I see the "Last 500 Hosts Blocked by Snort ". In the browser, I can use CTRL+f to search for an IP.</p>
<p dir="auto">a) is it possible, as a future feature, to get a search filed for an IP when the list is larger, &gt; 2000 entries?</p>
<p dir="auto">b) can I use a command line command to search for a blocked IP and remove it from snort's blocklist?</p>
<p dir="auto">Thanks, Frank</p>
]]></description><link>https://forum.netgate.com/post/1023363</link><guid isPermaLink="true">https://forum.netgate.com/post/1023363</guid><dc:creator><![CDATA[digidax]]></dc:creator><pubDate>Thu, 03 Feb 2022 05:11:11 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Tue, 01 Feb 2022 14:14:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a>:<br />
You are getting those messages because you have multiple Snort instances running on what amounts to the same interface (your WAN). I see you have VLANs defined there, but for Snort or any other IDS/IPS, you should instead put a single Snort instance on the parent interface. That will save lots of CPU and RAM resources. Snort runs the NIC in promiscuous mode, so each instance is seeing all traffic (including the other VLANs). Same thing would happen if you just ran a single instance on the parent physical interface.</p>
<p dir="auto">When Snort starts, it queries pfSense for all of the local addresses and networks defined on the firewall. It adds those to the various HOME_NET and default Pass List settings. Due to you have three WAN interfaces (via the VLANs, I assume), Snort is collecting the same addresses multiple times and adding them to HOME_NET. That's triggering the "re-defined address" warnings. They are harmless messages, though.</p>
<p dir="auto">And to answer your original question, "yes", those messages show that Snort is reloading its configuration when it receives the SIGHUP command.</p>
]]></description><link>https://forum.netgate.com/post/1022997</link><guid isPermaLink="true">https://forum.netgate.com/post/1022997</guid><dc:creator><![CDATA[bmeeks]]></dc:creator><pubDate>Tue, 01 Feb 2022 14:14:59 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Tue, 01 Feb 2022 05:24:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a> said in <a href="/post/1022844">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022683">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022672">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a> said in <a href="/post/1022624">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto">You can also send the running Snort process a SIGHUP signal to tell it to reload its configuration. That will prompt the running process to read the <code>snort.conf</code> file again and reload the configuration including rules and IP reputation files. In order to do thisk, you will need to identify the PID of the running Snort process that you want to send the signal to. Then use the <code>pkill</code> command to send SIGHUP to the running Snort PID.</p>
</blockquote>
<p dir="auto">IIn reference to <a href="https://www.snort.org/faq/readme-reloadl" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.snort.org/faq/readme-reload</a> and the procedure you wrote above, it's based on the fact, that snort was compiled with the "–enable-reload" option a configure stage.</p>
<p dir="auto">So how can I find out, which compiling options are used for snort?</p>
<p dir="auto">Thanks for your help, Frank</p>
</blockquote>
<p dir="auto">When I execute</p>
<pre><code>pkill -SIGHUP snort

</code></pre>
<p dir="auto">then the system log of snort facility begin to displaying redefined addresses. Does this indicated a successful reload?</p>
</blockquote>
<p dir="auto">Since you did not post the log, I can only assume that the reload configuration worked if you saw messages in the pfSense system log. That's where Snort logs its startup and shutdown (and error) messages.</p>
<p dir="auto">Be aware that the command you indicated is somewhat global -- meaning it is not restricting itself to a single PID. If you only have Snort running on one interface, then it does not really matter. But if you have multiple Snort instances configured on different interfaces, you may want to be more specific with the instance to signal with the "reload" command by using the process ID (PID) of the Snort process on that interface.</p>
</blockquote>
<p dir="auto">Yes I know, but at the moment snort is used on 3 WAN interfaces and the block IP list is also used on all of them. When I add snort to other interfaces, I will do force the reload only on that interfaces which are needed reloaded after changing the IP list from which is reading after the download of the update.</p>
<p dir="auto">Here is the log after sending a SIGHUP at Feb 1 06:15:00 time order is  DESCending.</p>
<pre><code>Feb 1 06:15:07 	snort 	16581 	[136:1:1] (spp_reputation) packets block-list [Classification: Potentially Bad Traffic] [Priority: 2] {TCP} 185.181.102.18:11747 -&gt; 94.100.xxx.xxx:179
Feb 1 06:15:02 	snort 	17766 	Additional duplicate addresses were not listed.
Feb 1 06:15:02 	snort 	17245 	Additional duplicate addresses were not listed.
Feb 1 06:15:02 	snort 	17766 	(1309) =&gt; Re-defined address: '107.189.6.161'
Feb 1 06:15:02 	snort 	17766 	(1304) =&gt; Re-defined address: '107.189.31.191'
Feb 1 06:15:02 	snort 	17766 	(1297) =&gt; Re-defined address: '107.189.29.142'
Feb 1 06:15:02 	snort 	17766 	(1291) =&gt; Re-defined address: '107.189.14.34'
Feb 1 06:15:02 	snort 	17766 	(1289) =&gt; Re-defined address: '107.189.14.180'
Feb 1 06:15:02 	snort 	17766 	(1288) =&gt; Re-defined address: '107.189.12.34'
Feb 1 06:15:02 	snort 	17766 	(1280) =&gt; Re-defined address: '107.189.1.92'
Feb 1 06:15:02 	snort 	17766 	(1258) =&gt; Re-defined address: '107.174.138.172'
Feb 1 06:15:02 	snort 	17766 	(1219) =&gt; Re-defined address: '106.75.79.172'
Feb 1 06:15:02 	snort 	17766 	(1216) =&gt; Re-defined address: '106.75.64.59'
Feb 1 06:15:02 	snort 	17766 	(1202) =&gt; Re-defined address: '106.75.223.50'
Feb 1 06:15:02 	snort 	17766 	(1198) =&gt; Re-defined address: '106.75.22.49'
Feb 1 06:15:02 	snort 	17766 	(1190) =&gt; Re-defined address: '106.75.184.237'
Feb 1 06:15:02 	snort 	17766 	(1182) =&gt; Re-defined address: '106.75.154.53'
Feb 1 06:15:02 	snort 	17766 	(898) =&gt; Re-defined address: '104.248.82.49'
Feb 1 06:15:02 	snort 	17766 	(863) =&gt; Re-defined address: '104.244.79.120'
Feb 1 06:15:02 	snort 	17766 	(861) =&gt; Re-defined address: '104.244.78.148'
Feb 1 06:15:02 	snort 	17766 	(848) =&gt; Re-defined address: '104.244.74.28'
Feb 1 06:15:02 	snort 	17766 	(847) =&gt; Re-defined address: '104.244.74.253'
Feb 1 06:15:02 	snort 	17766 	(321) =&gt; Re-defined address: '101.35.6.240'
Feb 1 06:15:02 	snort 	17245 	(1309) =&gt; Re-defined address: '107.189.6.161'
Feb 1 06:15:02 	snort 	17245 	(1304) =&gt; Re-defined address: '107.189.31.191'
Feb 1 06:15:02 	snort 	17245 	(1297) =&gt; Re-defined address: '107.189.29.142'
Feb 1 06:15:02 	snort 	17245 	(1291) =&gt; Re-defined address: '107.189.14.34'
Feb 1 06:15:02 	snort 	17245 	(1289) =&gt; Re-defined address: '107.189.14.180'
Feb 1 06:15:02 	snort 	17245 	(1288) =&gt; Re-defined address: '107.189.12.34'
Feb 1 06:15:02 	snort 	17245 	(1280) =&gt; Re-defined address: '107.189.1.92'
Feb 1 06:15:02 	snort 	17245 	(1258) =&gt; Re-defined address: '107.174.138.172'
Feb 1 06:15:02 	snort 	17245 	(1219) =&gt; Re-defined address: '106.75.79.172'
Feb 1 06:15:02 	snort 	17245 	(1216) =&gt; Re-defined address: '106.75.64.59'
Feb 1 06:15:02 	snort 	17245 	(1202) =&gt; Re-defined address: '106.75.223.50'
Feb 1 06:15:02 	snort 	17245 	(1198) =&gt; Re-defined address: '106.75.22.49'
Feb 1 06:15:02 	snort 	17245 	(1190) =&gt; Re-defined address: '106.75.184.237'
Feb 1 06:15:02 	snort 	17245 	(1182) =&gt; Re-defined address: '106.75.154.53'
Feb 1 06:15:02 	snort 	17245 	(898) =&gt; Re-defined address: '104.248.82.49'
Feb 1 06:15:02 	snort 	17245 	(863) =&gt; Re-defined address: '104.244.79.120'
Feb 1 06:15:02 	snort 	17245 	(861) =&gt; Re-defined address: '104.244.78.148'
Feb 1 06:15:02 	snort 	17245 	(848) =&gt; Re-defined address: '104.244.74.28'
Feb 1 06:15:02 	snort 	17245 	(847) =&gt; Re-defined address: '104.244.74.253'
Feb 1 06:15:02 	snort 	17245 	(321) =&gt; Re-defined address: '101.35.6.240'
Feb 1 06:15:01 	snort 	16581 	Additional duplicate addresses were not listed.
Feb 1 06:15:01 	snort 	16581 	(42) =&gt; Re-defined address: '107.189.6.161'
Feb 1 06:15:01 	snort 	16581 	(41) =&gt; Re-defined address: '107.189.31.191'
Feb 1 06:15:01 	snort 	16581 	(39) =&gt; Re-defined address: '107.189.29.142'
Feb 1 06:15:01 	snort 	16581 	(38) =&gt; Re-defined address: '107.189.1.92'
Feb 1 06:15:01 	snort 	16581 	(37) =&gt; Re-defined address: '107.189.14.34'
Feb 1 06:15:01 	snort 	16581 	(36) =&gt; Re-defined address: '107.189.14.180'
Feb 1 06:15:01 	snort 	16581 	(34) =&gt; Re-defined address: '107.189.12.34'
Feb 1 06:15:01 	snort 	16581 	(31) =&gt; Re-defined address: '107.174.138.172'
Feb 1 06:15:01 	snort 	16581 	(30) =&gt; Re-defined address: '106.75.79.172'
Feb 1 06:15:01 	snort 	16581 	(29) =&gt; Re-defined address: '106.75.64.59'
Feb 1 06:15:01 	snort 	16581 	(27) =&gt; Re-defined address: '106.75.22.49'
Feb 1 06:15:01 	snort 	16581 	(26) =&gt; Re-defined address: '106.75.223.50'
Feb 1 06:15:01 	snort 	16581 	(24) =&gt; Re-defined address: '106.75.184.237'
Feb 1 06:15:01 	snort 	16581 	(22) =&gt; Re-defined address: '106.75.154.53'
Feb 1 06:15:01 	snort 	16581 	(20) =&gt; Re-defined address: '104.248.82.49'
Feb 1 06:15:01 	snort 	16581 	(12) =&gt; Re-defined address: '104.244.79.120'
Feb 1 06:15:01 	snort 	16581 	(11) =&gt; Re-defined address: '104.244.78.148'
Feb 1 06:15:01 	snort 	16581 	(9) =&gt; Re-defined address: '104.244.74.28'
Feb 1 06:15:01 	snort 	16581 	(8) =&gt; Re-defined address: '104.244.74.253'
Feb 1 06:15:01 	snort 	16581 	(1) =&gt; Re-defined address: '101.35.6.240' 
</code></pre>
<p dir="auto">When I do comapre it with a "snort restart" command, the lines are identical, additional "SnortStartup 	17114 	Snort START for WAN1STM(em0)" and the other interfaces where snort is activated are seen with the restart command.</p>
<p dir="auto">Thanks for your help,<br />
Frank</p>
]]></description><link>https://forum.netgate.com/post/1022920</link><guid isPermaLink="true">https://forum.netgate.com/post/1022920</guid><dc:creator><![CDATA[digidax]]></dc:creator><pubDate>Tue, 01 Feb 2022 05:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Mon, 31 Jan 2022 19:09:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022683">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022672">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a> said in <a href="/post/1022624">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto">You can also send the running Snort process a SIGHUP signal to tell it to reload its configuration. That will prompt the running process to read the <code>snort.conf</code> file again and reload the configuration including rules and IP reputation files. In order to do thisk, you will need to identify the PID of the running Snort process that you want to send the signal to. Then use the <code>pkill</code> command to send SIGHUP to the running Snort PID.</p>
</blockquote>
<p dir="auto">IIn reference to <a href="https://www.snort.org/faq/readme-reloadl" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.snort.org/faq/readme-reload</a> and the procedure you wrote above, it's based on the fact, that snort was compiled with the "–enable-reload" option a configure stage.</p>
<p dir="auto">So how can I find out, which compiling options are used for snort?</p>
<p dir="auto">Thanks for your help, Frank</p>
</blockquote>
<p dir="auto">When I execute</p>
<pre><code>pkill -SIGHUP snort

</code></pre>
<p dir="auto">then the system log of snort facility begin to displaying redefined addresses. Does this indicated a successful reload?</p>
</blockquote>
<p dir="auto">Since you did not post the log, I can only assume that the reload configuration worked if you saw messages in the pfSense system log. That's where Snort logs its startup and shutdown (and error) messages.</p>
<p dir="auto">Be aware that the command you indicated is somewhat global -- meaning it is not restricting itself to a single PID. If you only have Snort running on one interface, then it does not really matter. But if you have multiple Snort instances configured on different interfaces, you may want to be more specific with the instance to signal with the "reload" command by using the process ID (PID) of the Snort process on that interface.</p>
]]></description><link>https://forum.netgate.com/post/1022844</link><guid isPermaLink="true">https://forum.netgate.com/post/1022844</guid><dc:creator><![CDATA[bmeeks]]></dc:creator><pubDate>Mon, 31 Jan 2022 19:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Mon, 31 Jan 2022 19:06:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022672">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto">So how can I find out, which compiling options are used for snort?</p>
<p dir="auto">Thanks for your help, Frank</p>
</blockquote>
<p dir="auto">You would look in the <code>Makefile</code> of the associated binary in the FreeBSD ports tree on GitHub. Here is a direct link:  <a href="https://github.com/pfsense/FreeBSD-ports/blob/devel/security/snort/Makefile" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pfsense/FreeBSD-ports/blob/devel/security/snort/Makefile</a>.</p>
<p dir="auto">I don't recall offhand if there is a command-line option to print out the compile options in the binary.</p>
<p dir="auto">The "reload" option is enabled in the pfSense package.</p>
]]></description><link>https://forum.netgate.com/post/1022843</link><guid isPermaLink="true">https://forum.netgate.com/post/1022843</guid><dc:creator><![CDATA[bmeeks]]></dc:creator><pubDate>Mon, 31 Jan 2022 19:06:21 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Mon, 31 Jan 2022 07:04:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022672">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a> said in <a href="/post/1022624">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto">You can also send the running Snort process a SIGHUP signal to tell it to reload its configuration. That will prompt the running process to read the <code>snort.conf</code> file again and reload the configuration including rules and IP reputation files. In order to do thisk, you will need to identify the PID of the running Snort process that you want to send the signal to. Then use the <code>pkill</code> command to send SIGHUP to the running Snort PID.</p>
</blockquote>
<p dir="auto">IIn reference to <a href="https://www.snort.org/faq/readme-reloadl" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.snort.org/faq/readme-reload</a> and the procedure you wrote above, it's based on the fact, that snort was compiled with the "–enable-reload" option a configure stage.</p>
<p dir="auto">So how can I find out, which compiling options are used for snort?</p>
<p dir="auto">Thanks for your help, Frank</p>
</blockquote>
<p dir="auto">When I execute</p>
<pre><code>pkill -SIGHUP snort

</code></pre>
<p dir="auto">then the system log of snort facility begin to displaying redefined addresses. Does this indicated a successful reload?</p>
]]></description><link>https://forum.netgate.com/post/1022683</link><guid isPermaLink="true">https://forum.netgate.com/post/1022683</guid><dc:creator><![CDATA[digidax]]></dc:creator><pubDate>Mon, 31 Jan 2022 07:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Mon, 31 Jan 2022 05:27:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmeeks">@<bdi>bmeeks</bdi></a> said in <a href="/post/1022624">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto">You can also send the running Snort process a SIGHUP signal to tell it to reload its configuration. That will prompt the running process to read the <code>snort.conf</code> file again and reload the configuration including rules and IP reputation files. In order to do thisk, you will need to identify the PID of the running Snort process that you want to send the signal to. Then use the <code>pkill</code> command to send SIGHUP to the running Snort PID.</p>
</blockquote>
<p dir="auto">IIn reference to <a href="https://www.snort.org/faq/readme-reloadl" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.snort.org/faq/readme-reload</a> and the procedure you wrote above, it's based on the fact, that snort was compiled with the "–enable-reload" option a configure stage.</p>
<p dir="auto">So how can I find out, which compiling options are used for snort?</p>
<p dir="auto">Thanks for your help, Frank</p>
]]></description><link>https://forum.netgate.com/post/1022672</link><guid isPermaLink="true">https://forum.netgate.com/post/1022672</guid><dc:creator><![CDATA[digidax]]></dc:creator><pubDate>Mon, 31 Jan 2022 05:27:39 GMT</pubDate></item><item><title><![CDATA[Reply to snort: restarting needed if IP list edited? on Sun, 30 Jan 2022 18:48:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/digidax">@<bdi>digidax</bdi></a> said in <a href="/post/1022572">snort: restarting needed if IP list edited?</a>:</p>
<blockquote>
<p dir="auto">Hello,<br />
With a honey pot, I generate a IP text file list with bad IPs. With cron job and curl I download the file into the snort ip reputation folder. The file is setup in the IP File list and used by the interfaces successfully. Bad hosts are blocked.</p>
<p dir="auto"><strong>Question:</strong><br />
After downloading a new txt file with same filename (overwrite), do I have to restart snort? If so, I would add after curl command this:</p>
<pre><code>&amp;&amp; sleep(1) &amp;&amp; /usr/local/etc/rc.d/snort.sh restart
</code></pre>
<p dir="auto">Is this prodcedure right or is there a better way?</p>
<p dir="auto">all the best, Frank</p>
</blockquote>
<p dir="auto">That command you have will work. It will just restart Snort on all the configured interfaces (which may be what you want).</p>
<p dir="auto">You can also send the running Snort process a SIGHUP signal to tell it to reload its configuration. That will prompt the running process to read the <code>snort.conf</code> file again and reload the configuration including rules and IP reputation files. In order to do thisk, you will need to identify the PID of the running Snort process that you want to send the signal to. Then use the <code>pkill</code> command to send SIGHUP to the running Snort PID.</p>
]]></description><link>https://forum.netgate.com/post/1022624</link><guid isPermaLink="true">https://forum.netgate.com/post/1022624</guid><dc:creator><![CDATA[bmeeks]]></dc:creator><pubDate>Sun, 30 Jan 2022 18:48:42 GMT</pubDate></item></channel></rss>