load balancing and sticky address

teknet8 teknet8 at o2.pl
Tue Dec 5 00:06:02 PST 2006


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


More information about the freebsd-pf mailing list