<?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[Inside load balancing sticky timeout - src.track]]></title><description><![CDATA[<p dir="auto">Is it possible to keep web sessions during 600 seconds to the same websever inside a web  farm (depending on the source IP) ?</p>
<p dir="auto">The sticky feature runs as long as we have states , I tried to use a special rule with a 600 seconds state in the advanced option, in order to keep long sates, but the LB still balance inside connections after a few seconds.</p>
<p dir="auto">I would be interested in a work around or an experimental patch ?</p>
<p dir="auto">Regards,<br />
–<br />
YP</p>
]]></description><link>https://forum.netgate.com/topic/6785/inside-load-balancing-sticky-timeout-src-track</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 11:17:57 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/6785.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Dec 2007 16:54:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Sat, 22 Dec 2007 09:11:09 GMT]]></title><description><![CDATA[<p dir="auto">It doesn't work as I would want.<br />
I spent quiet a long time on pf docs and suppose this setting should keep the real server IP during this timeout setting. I am not sure i understood , but a round robin translation rule and a sticky setting should keep sources IP to the same destination server in the next connection…</p>
<p dir="auto">I can see the src nodes (and my own IP) in the pfs statistics, but I get several ones with my own IP to different web real server (behind the carp VIP) and I still get loadbalanced on the 3 www when the states are expired (before the 4 minutes defined). My max src nodes are under the 10000 limit - 2000 - so I think this is something else.<br />
I will continue to read pf howtos etc<br />
Any piece of advice would be appreciated,</p>
]]></description><link>https://forum.netgate.com/post/163651</link><guid isPermaLink="true">https://forum.netgate.com/post/163651</guid><dc:creator><![CDATA[youri]]></dc:creator><pubDate>Sat, 22 Dec 2007 09:11:09 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 22:22:51 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I'll update the code.  Please tell us how well this works.  At the least we can add it to 1.3 and HEAD with a system -&gt; advanced tunable box.</p>
]]></description><link>https://forum.netgate.com/post/163643</link><guid isPermaLink="true">https://forum.netgate.com/post/163643</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Fri, 21 Dec 2007 22:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 21:55:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/youri">@<bdi>youri</bdi></a>:</p>
<blockquote>
<p dir="auto">Sorry but i got his (1.2 RC3)</p>
<p dir="auto">There were error(s) loading the rules: /tmp/rules.debug:27: syntax errorpfctl: Syntax error in config file: pf rules not loaded - The line in question reads [27]: set src.track 240…</p>
<p dir="auto">I can read that in the /tmp/rules.debug</p>
<p dir="auto">set src.track 240</p>
</blockquote>
<p dir="auto">Sorry</p>
<p dir="auto">Here is the correct synthax</p>
<p dir="auto">$rules .= "set timeout src.track 240\n";</p>
<p dir="auto">The filter reloads, I will try it</p>
<p dir="auto">Thanks a lot.</p>
]]></description><link>https://forum.netgate.com/post/163641</link><guid isPermaLink="true">https://forum.netgate.com/post/163641</guid><dc:creator><![CDATA[youri]]></dc:creator><pubDate>Fri, 21 Dec 2007 21:55:23 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 21:49:46 GMT]]></title><description><![CDATA[<p dir="auto">Sorry but i got his (1.2 RC3)</p>
<p dir="auto">There were error(s) loading the rules: /tmp/rules.debug:27: syntax errorpfctl: Syntax error in config file: pf rules not loaded - The line in question reads [27]: set src.track 240…</p>
<p dir="auto">I can read that in the /tmp/rules.debug</p>
<p dir="auto">set src.track 240</p>
]]></description><link>https://forum.netgate.com/post/163638</link><guid isPermaLink="true">https://forum.netgate.com/post/163638</guid><dc:creator><![CDATA[youri]]></dc:creator><pubDate>Fri, 21 Dec 2007 21:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 21:33:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sullrich">@<bdi>sullrich</bdi></a>:</p>
<blockquote>
<p dir="auto">This is a overall system setting.   Setting this value will apply to all WAN's.</p>
<p dir="auto">Simply change 30 to 300 in the patch before applying.</p>
</blockquote>
<p dir="auto">Last question, is there a risk of states overload (RAM ?) playing with a too high timeout ?</p>
]]></description><link>https://forum.netgate.com/post/163636</link><guid isPermaLink="true">https://forum.netgate.com/post/163636</guid><dc:creator><![CDATA[youri]]></dc:creator><pubDate>Fri, 21 Dec 2007 21:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 21:22:49 GMT]]></title><description><![CDATA[<p dir="auto">This is a overall system setting.  Setting this value will apply to all WAN's.</p>
<p dir="auto">Simply change 30 to 300 in the patch before applying.</p>
]]></description><link>https://forum.netgate.com/post/163635</link><guid isPermaLink="true">https://forum.netgate.com/post/163635</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Fri, 21 Dec 2007 21:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 21:00:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot, I will give it a try.</p>
<p dir="auto">My load balancer looks like this :</p>
<p dir="auto">rdr inet proto tcp from any to 63.67.43.109 port = http -&gt; { 52.41.76.140, 52.41.76.141, 52.41.76.142 } port 80 round-robin sticky-address</p>
<p dir="auto">I would like an ip source tracking during 300 seconds to be sure I don't lose any sessions (like baskets etc)</p>
<p dir="auto">When this patch is applied, does this mean I just need to add an allowing rule to the 3 real server with the src track option to be sure the load balanced connection will stay during 300 seconds ? What if the web server matching a source IP is down ?</p>
<p dir="auto">Regards,<br />
YP</p>
]]></description><link>https://forum.netgate.com/post/163634</link><guid isPermaLink="true">https://forum.netgate.com/post/163634</guid><dc:creator><![CDATA[youri]]></dc:creator><pubDate>Fri, 21 Dec 2007 21:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 20:52:32 GMT]]></title><description><![CDATA[<p dir="auto">Try this patch.  It's very simple and we MIGHT be able to integrate it into 1.2 but I'll need to check with others on this.</p>
<h3><a class="anchor-offset" name="eclipse-workspace-patch-1.0"></a>Eclipse Workspace Patch 1.0</h3>
<h1><a class="anchor-offset" name="p-pfsense_releng_1_2-br-index-etc-inc-filter.inc"></a>#P pfSense_RELENG_1_2<br />
Index: etc/inc/filter.inc</h1>
<p dir="auto">RCS file: /cvsroot/pfSense/etc/inc/filter.inc,v<br />
retrieving revision 1.575.2.368.2.57<br />
diff -u -r1.575.2.368.2.57 filter.inc<br />
–- etc/inc/filter.inc 5 Oct 2007 21:52:01 -0000 1.575.2.368.2.57<br />
+++ etc/inc/filter.inc 21 Dec 2007 20:51:56 -0000<br />
@@ -178,6 +178,7 @@<br />
/* User defined maximum states in Advanced menu. */<br />
$rules .= "set limit states {$config['system']['maximumstates']}\n";<br />
}</p>
<ul>
<li>$rules .= "set src.track 30\n";<br />
$rules .= "\n";</li>
</ul>
<p dir="auto">update_filter_reload_status("Setting up SCRUB information");</p>
]]></description><link>https://forum.netgate.com/post/163633</link><guid isPermaLink="true">https://forum.netgate.com/post/163633</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Fri, 21 Dec 2007 20:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to Inside load balancing sticky timeout - src.track on Fri, 21 Dec 2007 20:49:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I suppose I need to add a src.track timeout on my rule.<br />
Is there an easy way to do it without breaking anything in the web interface ?</p>
<p dir="auto">Regards<br />
–<br />
YP</p>
]]></description><link>https://forum.netgate.com/post/163632</link><guid isPermaLink="true">https://forum.netgate.com/post/163632</guid><dc:creator><![CDATA[youri]]></dc:creator><pubDate>Fri, 21 Dec 2007 20:49:13 GMT</pubDate></item></channel></rss>