Load Balancing just doesn't work (but 1 WAN or the other is just fine)
-
Well i don't recall if the GUI allows it set sticky connection option for NAT too.
This should fix the problems. -
Um just for clearness check the man page and you need to set for nat source-hash
-
Can you try the attached patch and report back if it fixes the issues?!
Thank you.
-
Hi,
I'm having the same problem when using stickies + loadbalancer. What does the patch do? I will try it too anyways.
Thanks
Rodolfo -
While searching the net a bit I found this:
http://lists.freebsd.org/pipermail/freebsd-pf/2008-January/003987.html
which says:
NOTE: I seriously doubt "sticky-address" will work on FreeBSD- it was broken
for couple of years already and looks like noone cares to fix it (it work on
OpenBSD of course). Without this option load balancing is a joke.Anyone knows how much of this is true?
thanks again
Rodolfo -
It is not true.
Just people misconfigure thing as usual.
-
I am having the same problem, turning the sticky sessions option on caused alot of connection drops. If sticky session is off the behaviour is normal.
The problem now afcourse, is if there are no sticky sessions available alot of "authorization" is going to fail because the connections are balanced.
Anyone found a solution for this problem?
To get around authorization issues I added firewall rules from LAN to a specific WAN.
For instance, I forwarded all HTTPS traffic to WAN1, so banking websites and just about everything else that starts with "https://" doesn't have auth issues.
Another example would be AIM/ICQ. Those two apps require HTTPS to authenticate username and password, then use TCP 5190 to do their thing. I just forwarded 5190 to WAN1 with the existing HTTPS rule.
I have kept sticky connections off as it breaks Source Dedicated Server (srcds).
-
It is not true.
Just people misconfigure thing as usual.
But in this case things aren't configured automatically by pfsense? I tried the patch, but stickies didn't work as usual :( (it works for say…. 20 minutes then I can't make any connections to the internet). What does the path do?
Thanks
Rodolfo -
It depends on the load you have. You might be reaching source hash limit.
And the patch is a test and if you want it to be correct you should report back your findings.
-
Hi,
I studied a bit the patch and it seems to add sticky-address to the nat rules. But since I am not using a nat pool, it shouldn't do any difference.
How do I check is I reach limits? BTW I don't think this is the cause, because we have only 5 clients connecting to the interent. I tried setting up a quick'n dirty box with openbsd, and the stickies work flawlessly with 2 wans.
Regards
Rodolfo