Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Dec 2006 09:06:00 +0100
From:      =?UTF-8?Q?"teknet8"?= <teknet8@o2.pl>
To:        freebsd-pf@freebsd.org
Subject:   load balancing and sticky address
Message-ID:  <179cfa74.46ad9551.45752868.5314d@o2.pl>

next in thread | raw e-mail | index | archive | help

Hello
 
I would like to use smart sticky address fuction.
The problem is:
 
table <lb> { 10.0.0.1, 10.0.0.2, 10.0.0.3 }
rdr on xl0 inet proto tcp from any to IP_PUBLICO port 80 -> { <lb> }
round-robin sticky-address
pass in quick log on xl0 proto tcp from any to <lb> port 80 flags S/SA
modulate state (src.track 1800)
 
I want to remember old (finished) sessions traces for 30 minutes, and
do the same decision in load balancing for that 30 minutes.
 
Problem is when one of the destination hosts fail.
If clientA is using 10.0.0.2 and 10.0.0.2 fails sticky address option
will force pf to route traffic from clientA to 10.0.0.2 for next 30 minutes.
 
How can i solve such problem ?
 
Is the exactly the same problem as described in:
http://archives.neohapsis.com/archives/openbsd/2006-05/2815.html
 

  
Thanx
Michal



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?179cfa74.46ad9551.45752868.5314d>