<?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[23.05.1 : cron not disabled]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm having a problem using pfBlockerNG-devel latest version.</p>
<p dir="auto">Impossible to deactivate CRON.</p>
<p dir="auto"><img src="/assets/uploads/files/1693608161919-f7b7ae97-b221-4a3a-bd1c-6b2d6d4d6695-image.png" alt="f7b7ae97-b221-4a3a-bd1c-6b2d6d4d6695-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">The configuration remains in the crontab :<br />
<img src="/assets/uploads/files/1693608234838-2dcfb3d4-667c-4999-afde-3217ccf2fc39-image.png" alt="2dcfb3d4-667c-4999-afde-3217ccf2fc39-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">I make the deletion or the setting in comment these are reinitialized after a few hours.</p>
<p dir="auto">Thank you in advance.</p>
]]></description><link>https://forum.netgate.com/topic/182583/23-05-1-cron-not-disabled</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 19:32:13 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/182583.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Sep 2023 22:46:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 19:17:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mission-ghost" aria-label="Profile: Mission-Ghost">@<bdi>Mission-Ghost</bdi></a></p>
<p dir="auto">In the current system if each of the lists are disabled there is no concern about pruning logs it will still happen</p>
<p dir="auto">the change I am testing, based completely on the one setting that cron is set to disabled - there is no concern about pruning logs it will still happen.<br />
The only change being made is that setting the cron job to disabled, will do exactly as the setting implies, which is not run the lists.</p>
<pre><code> CRON  PROCESS  START [ v3.2.0_7 ] [ 12/16/23 14:12:54 ]
List processing disabled by cron setting 'Disabled'
  No Updates required.
 CRON  PROCESS  ENDED
 UPDATE PROCESS ENDED
</code></pre>
]]></description><link>https://forum.netgate.com/post/1142810</link><guid isPermaLink="true">https://forum.netgate.com/post/1142810</guid><dc:creator><![CDATA[jrey]]></dc:creator><pubDate>Sat, 16 Dec 2023 19:17:24 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 19:06:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrey" aria-label="Profile: jrey">@<bdi>jrey</bdi></a> oh, one more thing: assuming the automatic updates are disabled, then if I run the update manually from the Update menu, will it prune the logs?</p>
<p dir="auto">Thank you again for your reply. It's great to be able to correspond with developers.</p>
]]></description><link>https://forum.netgate.com/post/1142809</link><guid isPermaLink="true">https://forum.netgate.com/post/1142809</guid><dc:creator><![CDATA[Mission-Ghost]]></dc:creator><pubDate>Sat, 16 Dec 2023 19:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 19:02:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrey" aria-label="Profile: jrey">@<bdi>jrey</bdi></a> said in <a href="/post/1142804">23.05.1 : cron not disabled</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mission-ghost" aria-label="Profile: Mission-Ghost">@<bdi>Mission-Ghost</bdi></a></p>
<p dir="auto">I actually have a fix (it is "testing" now) It allows you to mark the cron job as disabled, and still allows the log files to do their rotation without processing any of the lists.</p>
<p dir="auto">Which I believe was the intent. It just doesn't work that way in the current system.</p>
<p dir="auto">IMHO it would be far betting if the Selection said "Log Rotation Only" or could still provide options for doing that on a different frequency, but that is a completely different issue.</p>
<p dir="auto">It certainly doesn't need to go through all the stops it does.<br />
Trying to change the config and remove the cron entry and add it back in. But that is for another day.</p>
</blockquote>
<p dir="auto">This is good to hear. I'll be looking for the update in due course.</p>
<p dir="auto">A prior response of mine notes in more detail why being able to do this can be a helpful thing. It really comes down to maintaining network configuration management and allow quality assurance processes to take place on routine changes before they're applied.</p>
]]></description><link>https://forum.netgate.com/post/1142806</link><guid isPermaLink="true">https://forum.netgate.com/post/1142806</guid><dc:creator><![CDATA[Mission-Ghost]]></dc:creator><pubDate>Sat, 16 Dec 2023 19:02:53 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 18:57:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gertjan" aria-label="Profile: Gertjan">@<bdi>Gertjan</bdi></a> said in <a href="/post/1142778">23.05.1 : cron not disabled</a>:</p>
<blockquote>
<p dir="auto">Even better : really, using a list with 'defect' ? What about not using it at all ?</p>
<p dir="auto">Or : whitelisting 9.9.9.9 ?<br />
Or, IMHO, you want to use "EasyPrivacy" (the name says it all) as a DNSBL, but you also want to use 9.9.9.9. That's ..... strange.</p>
</blockquote>
<p dir="auto">Thank you for your response.</p>
<p dir="auto">The primary issue is no longer with the specific instance, but that this can and did happen and could happen again. To my dns service.</p>
<p dir="auto">It was disruptive. It was easily bypassed once I saw what had happened, but it was then time consuming to troubleshoot. Ultimately I did whitelist it.</p>
<p dir="auto">I contacted quad9 support, which was responsive and helpful. The helped rule out their service. I found that on June 16, 2023, CINS_army_v4 added 9.9.9.9 to it’s blacklist for no apparent reason. I believe they later backed this out but not before it caused problems.</p>
<p dir="auto">This is not an obscure feed, so far as I can tell, but the issue isn't the specific feed.</p>
<p dir="auto">It's that any feed, not matter how good a reputation, can blacklist a reputable key infrastructure site and break my network and with automatic updating there's no notice and no immediate, clear indication of what broke the network.</p>
<p dir="auto">A feed would also be an interesting way to conduct a DDoS attack. Attack the feed and put blocking in for DNSs, Google, AWS or other widely used sites and then let the automatic update process use the infrastructure pull it in to many networks and you're off to the races, reminiscent of the Solar Winds attack.</p>
<p dir="auto">If I manually apply the updates on my schedule, it is pretty easy to correlate an immediate failure with the update and makes backing out the update and troubleshooting the issue much easier than starting from scratch.</p>
<p dir="auto">I try to do this with other updates already, as I've found the risk of a zero-day to me is a lot lower than the risk of an update breaking something.</p>
<p dir="auto">In response to another post, I don't understand why it's logically inconsistent to use quad9 and pfBlocker. This is basic defense in depth: no one service is likely to completely duplicate another or afford complete protection, right? Plus, quad9 doesn't block advertising that I can tell.</p>
<p dir="auto">I don't want to waste my resources with ads if I can easily help it.</p>
<p dir="auto">Thanks again to everyone who contributed to this question. I may try to put the updates on the longest possible cycle and on a specific time and put it on my calendar so if it breaks something I can get some kind of reminder of what's going on. A longer cycle such as monthly rather than weekly would be helpful if there are no plans to fix this.</p>
<p dir="auto">It might also be useful to pull the pfBlocker's general menu's "update disable" option until it's fixed. Right now having it there and not work is a distraction, at best.</p>
]]></description><link>https://forum.netgate.com/post/1142805</link><guid isPermaLink="true">https://forum.netgate.com/post/1142805</guid><dc:creator><![CDATA[Mission-Ghost]]></dc:creator><pubDate>Sat, 16 Dec 2023 18:57:45 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 22:07:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mission-ghost" aria-label="Profile: Mission-Ghost">@<bdi>Mission-Ghost</bdi></a></p>
<p dir="auto">I actually have a fix (it is "testing" now) It allows you to mark the cron job as disabled, and still allows the log files to do their rotation without processing any of the lists.</p>
<p dir="auto">Which I believe was the intent. It just doesn't work that way in the current system.</p>
<p dir="auto">IMHO it would be far better if the Selection said "Log Rotation Only" or could still provide options for doing that on a different frequency, but that is a completely different issue.</p>
<p dir="auto">It certainly doesn't need to go through all the steps it does.<br />
Trying to change the config and remove the cron entry and add it back in. But that is for another day.</p>
]]></description><link>https://forum.netgate.com/post/1142804</link><guid isPermaLink="true">https://forum.netgate.com/post/1142804</guid><dc:creator><![CDATA[jrey]]></dc:creator><pubDate>Sat, 16 Dec 2023 22:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 18:37:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrey" aria-label="Profile: jrey">@<bdi>jrey</bdi></a> thank you for the detailed response and analysis. This is very helpful at aiding my understanding.</p>
<p dir="auto">I have now gone through all the feeds and disabled automatic updates there too. I haven't yet had a deep look, but it appears they're not automatically updating anymore.</p>
<p dir="auto">In a later comment, someone noted that stopping the cron will prevent the logs from being pruned. Is this:</p>
<ul>
<li>
<p dir="auto">true?</p>
</li>
<li>
<p dir="auto">since my cron job appears to still be running hourly, even though it's saying there are no updates to do, is it still pruning the logs?</p>
</li>
</ul>
<p dir="auto">Thanks again.</p>
]]></description><link>https://forum.netgate.com/post/1142800</link><guid isPermaLink="true">https://forum.netgate.com/post/1142800</guid><dc:creator><![CDATA[Mission-Ghost]]></dc:creator><pubDate>Sat, 16 Dec 2023 18:37:55 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 16:03:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gertjan" aria-label="Profile: Gertjan">@<bdi>Gertjan</bdi></a> said in <a href="/post/1142778">23.05.1 : cron not disabled</a>:</p>
<blockquote>
<p dir="auto">What about</p>
</blockquote>
<p dir="auto">yes, that screen shot exactly when</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jrey" aria-label="Profile: jrey">@<bdi>jrey</bdi></a> said in <a href="/post/1142765">23.05.1 : cron not disabled</a>:</p>
<blockquote>
<p dir="auto">as you can also simply disable all the actual feeds and yes the cron job will still run, but it won't do anything.</p>
</blockquote>
<p dir="auto">but also yes,  the code to disable the cron job itself is broken</p>
<p dir="auto">specifically the many places that,  like step 1 they call the<br />
config_del_path function &lt;&lt;  the call to this is not removing the config - that I have confirmed</p>
<p dir="auto">Step 1 fails to adjust the config</p>
<p dir="auto">therefore step 2 deletes the crontab entry as it should<br />
and step 3 immediately puts it back.</p>
<p dir="auto">it is also based on the fact that on the general page the "interval" value is always 1 regardless of the selected item.  The expectation later in the code here is that as far as the process is concern  it is "always" enabled. Disabled is actually ignored at that level, but so are all the other selections for specific hour selections are always simply a 1.</p>
<p dir="auto">the call to</p>
<pre><code>install_cron_job('pfblockerng.php cron', false);
</code></pre>
<p dir="auto">does specifically remove the crontab entry (again confirmed)<br />
but step 3 gets a oh "this is enabled" when rebuilding the cron and it is still in the config, and puts the crontab entry back.</p>
<p dir="auto">Later specific hour selections are handle when the cron runs, however in that regard "disabled" is handled exactly the same as 1 hour</p>
<pre><code> switch($freq) {
                case 'Disabled':
                case 1:
                case '01hour':

</code></pre>
<p dir="auto">simple put, Disabled is not a 1 hour frequency,</p>
<p dir="auto">So there are in fact two errors here in the code<br />
first being the the config doesn't get updated to remove the cron job as it should<br />
and second because of that cron does run, when it looks at Disabled is handled the same as 1 hour.  which is why the OP sees the job running at the timestamp it is.</p>
<p dir="auto">the first error is likely and actually more serious, because it impacts other packages as well, (so if they are all failing to remove their config they think they are removing that's really bad)</p>
<p dir="auto">the second item can likely be corrected by a break;   located between</p>
<pre><code>switch($freq) {
                case 'Disabled':
                        break;
                case 1:
                case '01hour':
</code></pre>
<p dir="auto">But I don't have time to check either in detail and adding the break; looks like it will cause issues further down the code. So it needs work / testing.</p>
<p dir="auto">Have fun.</p>
]]></description><link>https://forum.netgate.com/post/1142783</link><guid isPermaLink="true">https://forum.netgate.com/post/1142783</guid><dc:creator><![CDATA[jrey]]></dc:creator><pubDate>Sat, 16 Dec 2023 16:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 15:08:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mission-ghost" aria-label="Profile: Mission-Ghost">@<bdi>Mission-Ghost</bdi></a> said in <a href="/post/1142683">23.05.1 : cron not disabled</a>:</p>
<blockquote>
<p dir="auto">I want to do this because if it automatically updates and an update has a defect in it</p>
</blockquote>
<p dir="auto">What about :</p>
<p dir="auto"><img src="/assets/uploads/files/1702738585695-515f11d2-6dae-4926-9a1d-ff988ecb8db7-image.png" alt="515f11d2-6dae-4926-9a1d-ff988ecb8db7-image.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Even better : really, using a list with 'defect' ? What about not using it at all ?</p>
<p dir="auto">Or : whitelisting 9.9.9.9 ?<br />
Or, IMHO, you want to use "EasyPrivacy" (the name says it all) as a DNSBL, but you also want to use 9.9.9.9. That's ..... strange.</p>
<p dir="auto">The cron jobs : Stopping them - and continuing to use pfBlockerng is a very bad idea.<br />
One of the cron tasks also rotates the pfblockerng log files. Not rotating them, and they will fill up the drive space eventually. This will have bad consequences, most wind up re installing everything and "one more lesson learned".</p>
]]></description><link>https://forum.netgate.com/post/1142778</link><guid isPermaLink="true">https://forum.netgate.com/post/1142778</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Sat, 16 Dec 2023 15:08:27 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 16 Dec 2023 12:27:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mission-ghost" aria-label="Profile: Mission-Ghost">@<bdi>Mission-Ghost</bdi></a></p>
<p dir="auto">This is broken, and has been for some time.<br />
It is somewhat related to this<br />
https://redmine.pfsense.org/issues/7146</p>
<p dir="auto">What is happening is this,</p>
<p dir="auto">If you mark the cron job as disabled on the GUI (the general settings page),</p>
<p dir="auto">The sequence the code uses is briefly this:</p>
<ol>
<li>
<p dir="auto">remove the entry for this from the config</p>
</li>
<li>
<p dir="auto">remove the crontab</p>
</li>
<li>
<p dir="auto">reconfigure the crontab based on the config</p>
<p dir="auto">if you look at the system log after marking it as disabled and saving you will notice that it says it is removed (step 2), but then that it is added (step 3) .<br />
like this<br />
<img src="/assets/uploads/files/1702727252138-screen-shot-2023-12-16-at-6.46.28-am-resized.png" alt="Screen Shot 2023-12-16 at 6.46.28 AM.png" class="img-markdown  img-fluid" /></p>
</li>
</ol>
<p dir="auto">if you  cat /etc/crontab you will see the job is still there.</p>
<p dir="auto">Next if you manually execute the function that is removing it from the crontab (step 2) -  and you can actually go to diagnostics - command and run it in the php window.</p>
<pre><code>install_cron_job('pfblockerng.php cron', false);
</code></pre>
<p dir="auto">Doing so will get you a log entry similar to this<br />
<img src="/assets/uploads/files/1702727617025-screen-shot-2023-12-16-at-6.53.06-am-resized.png" alt="Screen Shot 2023-12-16 at 6.53.06 AM.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">and now if you cat /etc/crontab the job is actually gone and therefore won't run.</p>
<p dir="auto">However, it is still in the config as the (step 2)  here does not remove that. only step 1 could, So anything that runs the config sync will put the job back in crontab  (see the redmine)<br />
Of course there is code that should remove it from the config (step 1) when disabled and that appears to be the fail point.</p>
<p dir="auto">if you now go back to the general settings and save the the page again, you will log the save install without the corresponding remove<br />
<img src="/assets/uploads/files/1702727979868-screen-shot-2023-12-16-at-6.59.00-am-resized.png" alt="Screen Shot 2023-12-16 at 6.59.00 AM.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Step 1 is the fail point<br />
Step 2 is the remove line from crontab which is the command above (works)<br />
Step 3 runs as part of the save (and clearly works as intended, refreshing the crontab as it should based on the current config)</p>
<p dir="auto">Due to other commitments it is unlikely I will pursue this further at this time, as you can also simply disable all the actual feeds, and yes the cron job will still run, but it won't do anything.</p>
<p dir="auto">But yes, that is the short description of the issue you are describing.</p>
<p dir="auto">I'd be really curious to know which feed blocked 9.9.9.9 for you if you know.</p>
]]></description><link>https://forum.netgate.com/post/1142765</link><guid isPermaLink="true">https://forum.netgate.com/post/1142765</guid><dc:creator><![CDATA[jrey]]></dc:creator><pubDate>Sat, 16 Dec 2023 12:27:41 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Fri, 15 Dec 2023 20:32:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnpoz" aria-label="Profile: johnpoz">@<bdi>johnpoz</bdi></a> I am also trying to disable automatic updates for pfBlocker. I want to do this because if it automatically updates and an update has a defect in it, it's difficult to troubleshoot why something suddenly stopped working. It's much easier to troubleshoot if something breaks immediately after I manually execute a change.</p>
<p dir="auto">This happened once already when somehow 9.9.9.9 dns service got put into a blocklist. That was a very disruptive defect after an automatic update. I don't want it happening again.</p>
<p dir="auto">I have disabled cron like <a class="plugin-mentions-user plugin-mentions-a" href="/user/focheur91300" aria-label="Profile: focheur91300">@<bdi>focheur91300</bdi></a> did, and it runs hourly and does nothing, however, it also still runs daily at 1am as configured on the disabled cron setup page:</p>
<p dir="auto"><img src="/assets/uploads/files/1702672326164-screenshot-2023-12-15-at-1.30.13-pm.jpg" alt="Screenshot 2023-12-15 at 1.30.13 PM.jpg" class="img-markdown  img-fluid" /></p>
<p dir="auto">The logs show it automatically updates daily (one example from this morning shown):</p>
<pre><code> UPDATE PROCESS START [ v3.2.0_7 ] [ 12/15/23 00:00:25 ]

===[  DNSBL Process  ]================================================

 Loading DNSBL Statistics... completed
 Loading DNSBL SafeSearch... disabled
 Loading DNSBL Whitelist... completed

[ EasyList ]			 Downloading update .. 200 OK.
  Whitelist: adsafeprotected.com|amazon-adsystem.com|
  ----------------------------------------------------------------------
  Orig.    Unique     # Dups     # White    # TOP1M    Final                
  ----------------------------------------------------------------------
  31576    31570      2          2          0          31566                
  ----------------------------------------------------------------------

[ EasyPrivacy ]			 Downloading update [ 12/15/23 00:00:36 ] .. 200 OK.
</code></pre>
<p dir="auto">Is this a bug in the cron configuration page I should report in redmine?</p>
<p dir="auto">How do I <em>effectively</em> disable the cron update job?</p>
<p dir="auto">Thanks for your help.</p>
]]></description><link>https://forum.netgate.com/post/1142683</link><guid isPermaLink="true">https://forum.netgate.com/post/1142683</guid><dc:creator><![CDATA[Mission-Ghost]]></dc:creator><pubDate>Fri, 15 Dec 2023 20:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 02 Sep 2023 13:25:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gertjan" aria-label="Profile: Gertjan">@<bdi>Gertjan</bdi></a> thats exactly what I was thinking - but was too lazy to check into the code ;)</p>
]]></description><link>https://forum.netgate.com/post/1123693</link><guid isPermaLink="true">https://forum.netgate.com/post/1123693</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Sat, 02 Sep 2023 13:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to 23.05.1 : cron not disabled on Sat, 02 Sep 2023 12:47:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/focheur91300" aria-label="Profile: focheur91300">@<bdi>focheur91300</bdi></a></p>
<p dir="auto">For what it worth : I've looked at /usr/local/www/pfblockerng/pfblockerng.php to find out what happens when it is called with the 'cron' argument.</p>
<p dir="auto">The function pfblockerng_sync_cron() is called - see lines 152-155, and in that function, the first thing that is checked, is if the action isn't set to 'Disabled' or 'Never'.<br />
If it is =&gt; do nothing.</p>
<p dir="auto">So, the cron task still works, and starts every "0 * * * *"  (every hour ?). But it does nothing.</p>
]]></description><link>https://forum.netgate.com/post/1123692</link><guid isPermaLink="true">https://forum.netgate.com/post/1123692</guid><dc:creator><![CDATA[Gertjan]]></dc:creator><pubDate>Sat, 02 Sep 2023 12:47:03 GMT</pubDate></item></channel></rss>