<?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[NPT rules are not created and no error warning appears.]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/131924/firewall-rules-bug">Firewall rules bug?</a></p>
<p dir="auto">The NPT rule worked fine until version 2.4.3_p1. However, when updating to 2.4.4, it stops working. Reverted with a snapshot of the virtual machine and it worked, Today was updated to 2.4.4_p1 and the problem continues. Discover this error The correction made by @jimp. The manual.inc filter file has been edited and the added lines have been removed:</p>
<pre><code>                    /* Do not form an invalid NPt rule.
                     * See https://redmine.pfsense.org/issues/8575 */
                    if (!is_subnetv6($srcaddr) || !is_subnetv6($dstaddr)) {
                            continue;
                    }
</code></pre>
<p dir="auto">Everything works now and the rule appears in /tmp/rules.debug in this way:</p>
<p dir="auto">binat on $WAN inet6 from 2600:1fxx:xxxx:xxxx:xx::1000 to any -&gt; 2600:1fxx:xxxx:xxxx:xx:xxxx:xxxx:xxxx<br />
binat on $WAN inet6 from any to 2600:1fxx:xxxx:xxxx:xx:xxxx:xxxx:xxxx -&gt; 2600:xxxx:xxxx:xxxx:xx::1000</p>
<p dir="auto">Previously the rule did not appear and it appeared until 2.4.3_p1</p>
<p dir="auto">I do not know if there is an error in the way he has put, in the web interface, the NPT rule, but it worked. Nor would I want to edit the file by hand in each update.</p>
<p dir="auto">Here screenshots:</p>
<p dir="auto"><img src="/assets/uploads/files/1543889001652-captura-de-pantalla-de-2018-12-03-19-26-05-resized.png" alt="0_1543889001323_Captura de pantalla de 2018-12-03 19-26-05.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1543889011231-captura-de-pantalla-de-2018-12-03-19-26-19-resized.png" alt="0_1543889010799_Captura de pantalla de 2018-12-03 19-26-19.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The rule of use and use to provide ipv6 through OpenVPN and continues to work with that edition.</p>
<p dir="auto">https://redmine.pfsense.org/projects/pfsense/repository/revisions/29e8d025844861c12e0070ee6462339d4f4e0937/diff</p>
<p dir="auto">https://redmine.pfsense.org/issues/8575</p>
<p dir="auto">https://forum.netgate.com/topic/131924/firewall-rules-bug/5</p>
]]></description><link>https://forum.netgate.com/topic/138350/npt-rules-are-not-created-and-no-error-warning-appears</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 02:59:52 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/138350.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Dec 2018 02:06:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NPT rules are not created and no error warning appears. on Tue, 04 Dec 2018 16:07:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a> Thanks, this time I have edited the file /etc/inc/filter.inc as it appears here: https://redmine.pfsense.org/projects/pfsense/repository/revisions/e9446f537051c7b536d0b3fbb5ebd00c3766001a/diff?utf8=%E2%9C%93&amp;type=sbs</p>
<pre><code>		/* Do not form an invalid NPt rule.
		 * See https://redmine.pfsense.org/issues/8575 */
		if (!(is_subnetv6($srcaddr) || is_ipaddrv6($srcaddr)) ||
		    !(is_subnetv6($dstaddr) || is_ipaddrv6($dstaddr))) {
			continue;
		}
</code></pre>
<p dir="auto">the system patches package it seems that it is not ready yet, but with that edition by hand it works great for now and in version 2.4.5 it will be fixed.</p>
<p dir="auto">Putting a prefix other than 128 does not work in the environment I use, the rule is created, but it does not work as expected.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.netgate.com/post/808917</link><guid isPermaLink="true">https://forum.netgate.com/post/808917</guid><dc:creator><![CDATA[fabianburpf]]></dc:creator><pubDate>Tue, 04 Dec 2018 16:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to NPT rules are not created and no error warning appears. on Tue, 04 Dec 2018 14:05:53 GMT]]></title><description><![CDATA[<p dir="auto">Looks like when the code just before that test processes the address it comes out without a prefix on it since it's /128, which made it fail that validation. I created an issue and pushed a fix:<br />
https://redmine.pfsense.org/issues/9163</p>
<p dir="auto">If you use any other prefix than /128 it would work as a workaround, or apply the commit that shows up on the issue above using the system patches package. It will show up in 10 minutes or so.</p>
]]></description><link>https://forum.netgate.com/post/808878</link><guid isPermaLink="true">https://forum.netgate.com/post/808878</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Tue, 04 Dec 2018 14:05:53 GMT</pubDate></item></channel></rss>