<?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[Access load balanced servers from LAN, only works from external clients]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">192.168.2.103 = computer on LAN<br />
192.168.2.62 = webserver on LAN, that is load balanced.</p>
<p dir="auto">I set up a load balance (Services -&gt; Load Balancer, altså known as "relayd") for my webservers, and it works fine from the internet when visiting my external domain-name. but when i try to access the same domain name from a computer on the LAN subnet that the load balanced servers are located on, it wont work. i am not getting any "blocked" in the firewall log, and the state table -&gt;source tracking shows the following: "192.168.2.103 -&gt; 192.168.2.62"</p>
<p dir="auto">What is wrong here ? everything looks fine to me, but i just cant get the connection to work when trying from a computer on the same LAN as the webserver.</p>
<p dir="auto">Its seems like some sort of NAT reflections is missing, since i am not using any NAT (load balancer listens on WAN IP) i cant seem to create a NAT reflection rule (i used NAT before, when i did not use load balancing and it worked from both external and LAN subnet), how to i tell my pfsense box to redirect clients correctly ?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netgate.com/topic/54277/access-load-balanced-servers-from-lan-only-works-from-external-clients</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 18:38:40 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/54277.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Mar 2013 21:02:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Access load balanced servers from LAN, only works from external clients on Mon, 18 Mar 2013 18:44:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a>:</p>
<blockquote>
<p dir="auto">The servers are in the same subnet as the client, so that won't work because this happens:</p>
<p dir="auto">Client makes request to the LB:</p>
<p dir="auto">Source: 192.168.2.103  Destination: X.X.X.X</p>
<p dir="auto">LB Forwards the request:<br />
Source: 192.168.2.103  Destination: 192.168.2.62</p>
<p dir="auto">Server Responds:<br />
Source: 192.168.2.62  Destination: 192.168.2.103</p>
<p dir="auto">Client drops the packet because it didn't come from X.X.X.X.</p>
<p dir="auto">The only ways to avoid that are:<br />
1. Put servers in a separate subnet/interface so the traffic must flow back through the firewall.<br />
2. Switch to manual outbound NAT, make a rule to NAT out LAN from a source of the LAN subnet to a destination of the servers on the target port. That will make the servers believe the request came from the firewall, so the packets flow back the proper way.</p>
<p dir="auto">#1 is best. #2 is OK but you lose the source IP in web traffic logs.</p>
</blockquote>
<p dir="auto">Great answer, thanks a lot! now i understand why it did not work, it's so simple i could not see it!!</p>
]]></description><link>https://forum.netgate.com/post/385144</link><guid isPermaLink="true">https://forum.netgate.com/post/385144</guid><dc:creator><![CDATA[Steffan]]></dc:creator><pubDate>Mon, 18 Mar 2013 18:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to Access load balanced servers from LAN, only works from external clients on Mon, 18 Mar 2013 17:29:09 GMT]]></title><description><![CDATA[<p dir="auto">The servers are in the same subnet as the client, so that won't work because this happens:</p>
<p dir="auto">Client makes request to the LB:</p>
<p dir="auto">Source: 192.168.2.103  Destination: X.X.X.X</p>
<p dir="auto">LB Forwards the request:<br />
Source: 192.168.2.103  Destination: 192.168.2.62</p>
<p dir="auto">Server Responds:<br />
Source: 192.168.2.62  Destination: 192.168.2.103</p>
<p dir="auto">Client drops the packet because it didn't come from X.X.X.X.</p>
<p dir="auto">The only ways to avoid that are:<br />
1. Put servers in a separate subnet/interface so the traffic must flow back through the firewall.<br />
2. Switch to manual outbound NAT, make a rule to NAT out LAN from a source of the LAN subnet to a destination of the servers on the target port. That will make the servers believe the request came from the firewall, so the packets flow back the proper way.</p>
<p dir="auto">#1 is best. #2 is OK but you lose the source IP in web traffic logs.</p>
]]></description><link>https://forum.netgate.com/post/385127</link><guid isPermaLink="true">https://forum.netgate.com/post/385127</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 18 Mar 2013 17:29:09 GMT</pubDate></item></channel></rss>