<?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[Two gateways and policy routing]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I have the following problem: I have configured the opt1 Interface of my Netgate 3100 as a WAN interface (added gateway in the interface configuration). It has an IP of 10.150.0.2 and shares the 10.150.0.0/16 network with two other hosts, which both are gateways to different ISPs.</p>
<p dir="auto">One of these gateways is also the default gateway that's configured for the Netgate (10.150.0.1).</p>
<p dir="auto">Now, I want to use a policy routing rule to route all traffic from a special IP to the second gateway (10.150.0.3) by setting the gateway in the advanced section. The rule is also being used , as the counters show.</p>
<p dir="auto">However, even though the gateway 10.150.0.3 is configured, traffic passing the rule is still using the default gateway 10.150.0.1.</p>
<p dir="auto">The big question here: what am I doing wrong?</p>
<p dir="auto">Best regards,<br />
Christian Loth</p>
]]></description><link>https://forum.netgate.com/topic/169628/two-gateways-and-policy-routing</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 10:22:08 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/169628.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Feb 2022 14:10:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Two gateways and policy routing on Fri, 04 Feb 2022 15:03:42 GMT]]></title><description><![CDATA[<p dir="auto">@christian-loth said in <a href="/post/1023612">Two gateways and policy routing</a>:</p>
<blockquote>
<p dir="auto">Yes. I mean it's a private net, got enough of those. :-)<br />
It's not a technical reason, just following a scheme of using private nets that are part of 10/8.</p>
</blockquote>
<p dir="auto">Better to use rather small subnets to prevent routing issues. For instance if you connect to a remote network using a site to site VPN.</p>
]]></description><link>https://forum.netgate.com/post/1023613</link><guid isPermaLink="true">https://forum.netgate.com/post/1023613</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Fri, 04 Feb 2022 15:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to Two gateways and policy routing on Fri, 04 Feb 2022 14:55:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/viragomann" aria-label="Profile: viragomann">@<bdi>viragomann</bdi></a> said in <a href="/post/1023611">Two gateways and policy routing</a>:</p>
<blockquote>
<p dir="auto">@christian-loth said in <a href="/post/1023602">Two gateways and policy routing</a>:</p>
<blockquote>
<p dir="auto">It has an IP of 10.150.0.2 and shares the 10.150.0.0/16 network with two other hosts</p>
</blockquote>
<p dir="auto">So you have set up a /16 network for three hosts?</p>
</blockquote>
<p dir="auto">Yes. I mean it's a private net, got enough of those. :-)<br />
It's not a technical reason, just following a scheme of using private nets that are part of 10/8.</p>
<blockquote>
<blockquote>
<p dir="auto">However, even though the gateway 10.150.0.3 is configured, traffic passing the rule is still using the default gateway 10.150.0.1.</p>
</blockquote>
<p dir="auto">Is the rule on the top of the rule set so the is applied before others?</p>
</blockquote>
<p dir="auto">Yes</p>
<blockquote>
<p dir="auto">Did you consider to delete states after activating the rule?</p>
</blockquote>
<p dir="auto">No, will do so next time.</p>
<blockquote>
<p dir="auto">Post the rule set please.</p>
</blockquote>
<p dir="auto">Need to make sure to get permission for that, so I probably reply with a rule set on monday.</p>
<p dir="auto">Best regards,<br />
Christian Loth</p>
]]></description><link>https://forum.netgate.com/post/1023612</link><guid isPermaLink="true">https://forum.netgate.com/post/1023612</guid><dc:creator><![CDATA[christian.loth]]></dc:creator><pubDate>Fri, 04 Feb 2022 14:55:45 GMT</pubDate></item><item><title><![CDATA[Reply to Two gateways and policy routing on Fri, 04 Feb 2022 14:45:29 GMT]]></title><description><![CDATA[<p dir="auto">@christian-loth said in <a href="/post/1023602">Two gateways and policy routing</a>:</p>
<blockquote>
<p dir="auto">It has an IP of 10.150.0.2 and shares the 10.150.0.0/16 network with two other hosts</p>
</blockquote>
<p dir="auto">So you have set up a /16 network for three hosts?</p>
<blockquote>
<p dir="auto">However, even though the gateway 10.150.0.3 is configured, traffic passing the rule is still using the default gateway 10.150.0.1.</p>
</blockquote>
<p dir="auto">Is the rule on the top of the rule set so the is applied before others?<br />
Did you consider to delete states after activating the rule?</p>
<p dir="auto">Post the rule set please.</p>
]]></description><link>https://forum.netgate.com/post/1023611</link><guid isPermaLink="true">https://forum.netgate.com/post/1023611</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Fri, 04 Feb 2022 14:45:29 GMT</pubDate></item></channel></rss>