<?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[[2 wan] How to force a specific lan host to use always one gateway only.]]></title><description><![CDATA[<p dir="auto">Hi there. Just installed pfsense with a standard configuration: 1 LAN, 2 WAN (each with 8 static public ip's). What I need is a simple failover (load balancing not required at the moment) solution and after a few tests I can say it works flawlessly.<br />
Here is now my question: I need my mail server to be the only authorized host to generate traffic through port 25 and in addition it has to use the wan1's gateway, never the wan2's gateway. How do I implement this?<br />
I tried with several rules but after simulating a failure on primary wan connection, I can still see mails going out through the secondary gateway.<br />
I thought something like this would have worked but I'm wrong :-(</p>
<hr />
<p dir="auto">firewall rules<br />
Lan</p>
<p dir="auto">(block) TCP/UDP  ! 10.0.0.1  *  *  25 (SMTP)  WAN GATEWAY </p>
<p dir="auto">many thanks in advance.<br />
Max<br />
Italy</p>
]]></description><link>https://forum.netgate.com/topic/26261/2-wan-how-to-force-a-specific-lan-host-to-use-always-one-gateway-only</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 05:20:12 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/26261.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Sep 2010 11:47:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [2 wan] How to force a specific lan host to use always one gateway only. on Fri, 03 Sep 2010 17:30:25 GMT]]></title><description><![CDATA[<p dir="auto">Yes, what is needed is a rule that matches the traffic before any other rules and has the desired gateway selected.</p>
]]></description><link>https://forum.netgate.com/post/245312</link><guid isPermaLink="true">https://forum.netgate.com/post/245312</guid><dc:creator><![CDATA[kpa]]></dc:creator><pubDate>Fri, 03 Sep 2010 17:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to [2 wan] How to force a specific lan host to use always one gateway only. on Fri, 03 Sep 2010 13:06:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kpa" aria-label="Profile: kpa">@<bdi>kpa</bdi></a>:</p>
<blockquote>
<p dir="auto">You need a second rule that allows the outgoing connection from the mail server and has the default selected as gateway, the rule needs to be before any other rules.</p>
</blockquote>
<p dir="auto">Assuming that I want to use the wan2's gateway, do you mean something like this?</p>
<hr />
<p dir="auto">firewall rules<br />
Lan<br />
(allow)    tcp            10.0.0.1        *      *      25 (SMTP)    wan2 gateway<br />
(block)  TCP/UDP      ! 10.0.0.1      *      *      25 (SMTP)      (failover pool)   </p>
<p dir="auto">thanks<br />
Max</p>
]]></description><link>https://forum.netgate.com/post/245293</link><guid isPermaLink="true">https://forum.netgate.com/post/245293</guid><dc:creator><![CDATA[MaxFontana]]></dc:creator><pubDate>Fri, 03 Sep 2010 13:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to [2 wan] How to force a specific lan host to use always one gateway only. on Fri, 03 Sep 2010 12:19:21 GMT]]></title><description><![CDATA[<p dir="auto">You need a second rule that allows the outgoing connection from the mail server and has the default selected as gateway, the rule needs to be before any other rules.</p>
]]></description><link>https://forum.netgate.com/post/245288</link><guid isPermaLink="true">https://forum.netgate.com/post/245288</guid><dc:creator><![CDATA[kpa]]></dc:creator><pubDate>Fri, 03 Sep 2010 12:19:21 GMT</pubDate></item></channel></rss>