load balancing multi-wan

Started by jasonblewis, February 26, 2018, 01:19:53 AM

Previous topic - Next topic
February 26, 2018, 01:19:53 AM Last Edit: February 26, 2018, 01:21:30 AM by jasonblewis
Hi,

I've tried setting up load balancing with my 2 ADSL connections as per the multi wan setup instructions. I set both WANs to the same tier but I don't see much in the way of "load balancing" it seems to always favour one of the WANs.

How does one test this to make sure its working as it is supposed to?

In https://forum.opnsense.org/index.php?topic=3969.msg14151#msg14151 Franco states that its just round robin per connection, bit I don't think mine is even acheiving that. For example, If i do:
curl ipinfo.io/ip repeatedly, I'd expect it to get different WAN IPs from time to time as it would be sending out the request from one of the two WANs, but it seems to always get the same IP.

Any tips would be appreciated

tia



I could be wrong but just to use the same command line will make load balance work.

Have you tried put real workload on your opn sense and check Report => Health => Trafic ??

You'll need to turn off sticky connections in the firewall advanced settings to get the behaviour you want.

We flipped defaults from round-robin to sticky round-robin for this, mostly because that's what people always asked for. The knobs are in the GUI of course, but I would not have expected having to help get that feature turned off again. :)


Cheers,
Franco

given the sticky connections is probably what one needs to ensure websites keep working, how do you recommend testing if the load balancing is actually working?

ok, i just tested with sticky connections turned off and as you suggested, it did give the behaviour i was expecting.

You can get some bad side effects without sticky .. keep this in mind if you use this and some sites/games/apps wont work.