<?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[PHP ERROR: Type: 64, File: &#x2F;usr&#x2F;local&#x2F;www&#x2F;firewall_nat.php, Line: 40, Message: require_once(): Failed opening required &#x27;firewall_nat.inc&#x27;]]></title><description><![CDATA[<p dir="auto">Hi folks,</p>
<p dir="auto">for unknown reasons some of my pfsense-systems (virtual and physical systems) show the following error after latest update to<br />
2.5.2-RELEASE (amd64)<br />
built on Fri Jul 02 15:33:00 EDT 2021</p>
<p dir="auto">after clicking firewall_nat.php (FIREWALL -&gt; NAT) via GUI.</p>
<pre><code>PHP ERROR: Type: 64, File: /usr/local/www/firewall_nat.php, Line: 40, Message: require_once(): Failed opening required 'firewall_nat.inc' (include_path='.:/etc/inc:/etc/inc/web:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/')
</code></pre>
<p dir="auto">How can i fix that?</p>
<p dir="auto">Update was done via System - &gt; Update...<br />
Additionally i run via cron, once a week</p>
<pre><code>52 18 * * 7 pkg upgrade -y
</code></pre>
<p dir="auto">Thank you.</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netgate.com/topic/165257/php-error-type-64-file-usr-local-www-firewall_nat-php-line-40-message-require_once-failed-opening-required-firewall_nat-inc</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 05:25:07 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/165257.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jul 2021 11:52:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PHP ERROR: Type: 64, File: &#x2F;usr&#x2F;local&#x2F;www&#x2F;firewall_nat.php, Line: 40, Message: require_once(): Failed opening required &#x27;firewall_nat.inc&#x27; on Wed, 28 Jul 2021 05:42:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steve_b">@<bdi>steve_b</bdi></a></p>
<pre><code>PHP Response
.:/etc/inc:/etc/inc/web:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/
</code></pre>
<p dir="auto">The path was indeed missing. A reboot fixed the problem.<br />
Thank you all for your time!</p>
]]></description><link>https://forum.netgate.com/post/994283</link><guid isPermaLink="true">https://forum.netgate.com/post/994283</guid><dc:creator><![CDATA[siegmarb]]></dc:creator><pubDate>Wed, 28 Jul 2021 05:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to PHP ERROR: Type: 64, File: &#x2F;usr&#x2F;local&#x2F;www&#x2F;firewall_nat.php, Line: 40, Message: require_once(): Failed opening required &#x27;firewall_nat.inc&#x27; on Tue, 27 Jul 2021 15:00:58 GMT]]></title><description><![CDATA[<p dir="auto">If you still encounter this problem. please navigate to Diagnostics-&gt;Command prompt and paste this into the "Execute PHP Commands" box:</p>
<p dir="auto">echo get_include_path();</p>
<p dir="auto">then click "Execute". Does the resulting output contain the path:</p>
<p dir="auto">/usr/local/pfSense/include/www</p>
<p dir="auto">?</p>
]]></description><link>https://forum.netgate.com/post/994215</link><guid isPermaLink="true">https://forum.netgate.com/post/994215</guid><dc:creator><![CDATA[Steve_B]]></dc:creator><pubDate>Tue, 27 Jul 2021 15:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to PHP ERROR: Type: 64, File: &#x2F;usr&#x2F;local&#x2F;www&#x2F;firewall_nat.php, Line: 40, Message: require_once(): Failed opening required &#x27;firewall_nat.inc&#x27; on Mon, 26 Jul 2021 17:48:23 GMT]]></title><description><![CDATA[<p dir="auto">Try a forced browser refresh (ctrl+F5 or shift+click reload) and see if the browser cached the error.</p>
<p dir="auto">If that doesn't work, reboot the firewall and see if the error persists after that (and another forced page reload).</p>
<p dir="auto">If the file is there and OK, especially if the checksum matches, then it almost has to be something temporary that needs a small kick like the above.</p>
]]></description><link>https://forum.netgate.com/post/994097</link><guid isPermaLink="true">https://forum.netgate.com/post/994097</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 26 Jul 2021 17:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to PHP ERROR: Type: 64, File: &#x2F;usr&#x2F;local&#x2F;www&#x2F;firewall_nat.php, Line: 40, Message: require_once(): Failed opening required &#x27;firewall_nat.inc&#x27; on Mon, 26 Jul 2021 09:50:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a> thank you for your time.</p>
<p dir="auto">The file is there:</p>
<pre><code># find / -name firewall_nat.inc
/usr/local/pfSense/include/www/firewall_nat.inc
</code></pre>
<p dir="auto">File look sane:</p>
<pre><code># ls -alh /usr/local/pfSense/include/www/firewall_nat.inc
-rw-r--r--  1 root  wheel    27K May 28 13:35 /usr/local/pfSense/include/www/firewall_nat.inc
</code></pre>
<p dir="auto">Md5 checksum is same as on other "sane" systems:</p>
<pre><code># /sbin/md5 /usr/local/pfSense/include/www/firewall_nat.inc
MD5 (/usr/local/pfSense/include/www/firewall_nat.inc) = a67dcbad4c6a687d6bc6af6c8827c67a
</code></pre>
]]></description><link>https://forum.netgate.com/post/993980</link><guid isPermaLink="true">https://forum.netgate.com/post/993980</guid><dc:creator><![CDATA[siegmarb]]></dc:creator><pubDate>Mon, 26 Jul 2021 09:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to PHP ERROR: Type: 64, File: &#x2F;usr&#x2F;local&#x2F;www&#x2F;firewall_nat.php, Line: 40, Message: require_once(): Failed opening required &#x27;firewall_nat.inc&#x27; on Wed, 21 Jul 2021 15:29:40 GMT]]></title><description><![CDATA[<p dir="auto">Is the <code>firewall_nat.inc</code> file anywhere on the system?</p>
<pre><code class="language-shell">: find / -name firewall_nat.inc
</code></pre>
<p dir="auto">It should be in <code>/usr/local/pfSense/include/www/firewall_nat.inc</code></p>
<p dir="auto">Running a <code>pkg upgrade</code> from cron is a bad idea. I don't think it would be related to this, but it's possible that doing so messed up the upgrade process if that triggered between the time the update was available and when you triggered an upgrade in the GUI.</p>
]]></description><link>https://forum.netgate.com/post/993313</link><guid isPermaLink="true">https://forum.netgate.com/post/993313</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 21 Jul 2021 15:29:40 GMT</pubDate></item></channel></rss>