<?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[Static routes & nat - a bug?]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">pfSense 2.1.3<br />
I've two WAN ifs: RT with gateway 212.14.214.254 (default) and DMZ - 192.168.200.200 with gateway 192.168.200.5<br />
LAN interface has IP 192.168.183.107.<br />
On the DMZ subnet there is another router (192.168.200.2) with direct link to 94.247.0.0/16 net.</p>
<p dir="auto">I want my lan to be able to reach 94.247.0.0/16 net through 192.168.200.2.<br />
I think, I need a static route for that.</p>
<p dir="auto">Without additional routes trace looks like this:```<br />
  1    &lt;1 мс    &lt;1 мс    &lt;1 мс  192.168.183.107<br />
  2     2 ms     2 ms     3 ms  212.14.214.254<br />
  3     7 ms     9 ms    89 ms  94.247.56.233<br />
  4    &lt;1 мс    &lt;1 мс    &lt;1 мс  94.247.56.234<br />
...</p>
<pre><code>It used default gateway as expected.

After setting static route for 94.247.0.0/16 to go through 192.168.200.2 trace looks like this:```
  1    &lt;1 мс    &lt;1 мс    &lt;1 мс  192.168.183.107
  2    &lt;1 мс    &lt;1 мс     1 ms  192.168.200.5
  3    81 ms     2 ms     2 ms  212.14.192.24
  4    13 ms     9 ms     8 ms  94.247.56.233
...
</code></pre>
<p dir="auto">It uses gateway I've set on DMZ interface, not 192.168.200.2.</p>
<p dir="auto">If I switch outbound NAT to manual and delete rules belonging to DMZ it starts to work as expected:```<br />
  1    &lt;1 мс    &lt;1 мс    &lt;1 мс  192.168.183.107<br />
  2    &lt;1 мс     1 ms     1 ms  192.168.200.2<br />
  3     *        *     ^C</p>
<pre><code>It uses right gateway but fail to reach site without NAT.

I need to understand, why with NAT pfSense uses wrong gateway.
Any ideas?
I'll be happy to provide any additional info.</code></pre>
]]></description><link>https://forum.netgate.com/topic/69515/static-routes-nat-a-bug</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:34:30 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/69515.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 May 2014 04:49:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Static routes & nat - a bug? on Sun, 03 Apr 2022 12:48:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello Ilyaa,</p>
<p dir="auto">Have you obtained clarification on this issue? I'm also looking into this in CE version 2.6, please give me a light.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.netgate.com/post/1035949</link><guid isPermaLink="true">https://forum.netgate.com/post/1035949</guid><dc:creator><![CDATA[sacristiano]]></dc:creator><pubDate>Sun, 03 Apr 2022 12:48:59 GMT</pubDate></item></channel></rss>