<?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[States Not Being Killed PFblockerNG]]></title><description><![CDATA[<p dir="auto">We're experiencing a problem where existing states are not being killed by pfBlockerNG when a new IP is added to an IPv4 alias list.</p>
<p dir="auto">Running pfSense 2.3.4-RELEASE-p1 on Netgate hardware with pfBlockerNG 2.1.1_10</p>
<p dir="auto">In Firewall &gt; pfBlockerNG &gt; General, Kill States is checked.</p>
<p dir="auto">The Alias List config here Firewall &gt; pfBlockerNG &gt; Edit &gt; IPv4 is as follows:<br />
Alias Name: HTTP_Blocked_dynamic_2<br />
IPv4 Lists: Format: Auto, State: ON, Source: http://host/url.txt, Header/Label: HTTP_Blocked<br />
List Action: Alias Deny<br />
Update Frequency: Every Hour<br />
Enable Logging: Enable<br />
States Removal: Enable</p>
<p dir="auto">When a new IP is added to the HTTP Source and the Cron job runs, the IP is added to the alias list and new connections from this IP are being handled appropriately. However existing states are not being matched and/or killed.</p>
<p dir="auto">Here is an example from the pfblockerng.log:</p>
<p dir="auto">===[  Aliastables / Rules  ]==========================================</p>
<p dir="auto">No changes to Firewall rules, skipping Filter Reload</p>
<p dir="auto">Updating: pfB_HTTP_Blocked_dynamic_2<br />
1 addresses added.</p>
<p dir="auto">===[  Kill States  ]==================================================</p>
<h1><a class="anchor-offset" name="no-matching-states-found"></a>No matching states found</h1>
<p dir="auto">We know the states for the IP are still there because we can still see them by filtering here: Diagnostics &gt; States &gt; States. If we manually kill the states then the IP's get blocked immediately.</p>
<p dir="auto">We also attempted this in a lab using the latest builds of pfSense 2.4.0 with pfBlockerNG 2.1.2 and experienced the same issue. The last time we know this was working was with pfSense 2.2.6 which we recently upgraded from.</p>
<p dir="auto">Any help or suggestions with this would be appreciated.</p>
]]></description><link>https://forum.netgate.com/topic/121921/states-not-being-killed-pfblockerng</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 07:27:16 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/121921.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Oct 2017 17:10:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to States Not Being Killed PFblockerNG on Wed, 25 Oct 2017 14:01:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bbcan177">@<bdi>BBcan177</bdi></a>:</p>
<blockquote>
<p dir="auto">Thanks for reporting this… Looks like it wasn't picking up Alias type rules with "pfb_" in the Rule descriptions.</p>
<p dir="auto">Can you edit:  <strong>/usr/local/pkg/pfblockerng/pfblockerng.inc</strong></p>
<p dir="auto">https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng.inc#L5099</p>
<p dir="auto">and change Line #<strong>5099</strong></p>
<p dir="auto">from:</p>
<pre><code>if ($alias['type'] == 'urltable' &amp;&amp; strpos($alias['name'], 'pfB_') !== FALSE &amp;&amp; strpos($alias['descr'], '[s]') === FALSE) {

to:
[code]
if ($alias['type'] == 'urltable' &amp;&amp;
    (strpos($alias['name'], 'pfB_') !== FALSE || strpos($alias['name'], 'pfb_') !== FALSE) &amp;&amp;
    strpos($alias['descr'], '[s]') === FALSE) {

Please report back ... Thanks!

I am still having the same issue after changing the code [/s][/code][/s]
</code></pre>
</blockquote>
]]></description><link>https://forum.netgate.com/post/730553</link><guid isPermaLink="true">https://forum.netgate.com/post/730553</guid><dc:creator><![CDATA[pfsense555]]></dc:creator><pubDate>Wed, 25 Oct 2017 14:01:38 GMT</pubDate></item><item><title><![CDATA[Reply to States Not Being Killed PFblockerNG on Wed, 25 Oct 2017 02:09:55 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for reporting this… Looks like it wasn't picking up Alias type rules with "pfb_" in the Rule descriptions.</p>
<p dir="auto">Can you edit:  <strong>/usr/local/pkg/pfblockerng/pfblockerng.inc</strong></p>
<p dir="auto">https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-pfBlockerNG/files/usr/local/pkg/pfblockerng/pfblockerng.inc#L5099</p>
<p dir="auto">and change Line #<strong>5099</strong></p>
<p dir="auto">from:</p>
<pre><code>if ($alias['type'] == 'urltable' &amp;&amp; strpos($alias['name'], 'pfB_') !== FALSE &amp;&amp; strpos($alias['descr'], '[s]') === FALSE) {

to:
[code]
if ($alias['type'] == 'urltable' &amp;&amp;
    (strpos($alias['name'], 'pfB_') !== FALSE || strpos($alias['name'], 'pfb_') !== FALSE) &amp;&amp;
    strpos($alias['descr'], '[s]') === FALSE) {

Please report back ... Thanks![/s][/code][/s]
</code></pre>
]]></description><link>https://forum.netgate.com/post/730490</link><guid isPermaLink="true">https://forum.netgate.com/post/730490</guid><dc:creator><![CDATA[BBcan177]]></dc:creator><pubDate>Wed, 25 Oct 2017 02:09:55 GMT</pubDate></item></channel></rss>