OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: jasonblewis on February 26, 2018, 01:19:53 am

Title: load balancing multi-wan
Post by: jasonblewis on February 26, 2018, 01:19:53 am
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 (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


Title: Re: load balancing multi-wan
Post by: Denis Raigorodski on March 02, 2018, 02:09:05 pm
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 ??
Title: Re: load balancing multi-wan
Post by: nallar on March 02, 2018, 04:05:28 pm
You'll need to turn off sticky connections in the firewall advanced settings to get the behaviour you want.
Title: Re: load balancing multi-wan
Post by: franco on March 02, 2018, 04:46:26 pm
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
Title: Re: load balancing multi-wan
Post by: jasonblewis on March 14, 2018, 02:20:43 am
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?
Title: Re: load balancing multi-wan
Post by: jasonblewis on March 14, 2018, 02:26:55 am
ok, i just tested with sticky connections turned off and as you suggested, it did give the behaviour i was expecting.
Title: Re: load balancing multi-wan
Post by: mimugmail on March 14, 2018, 06:47:39 am
You can get some bad side effects without sticky .. keep this in mind if you use this and some sites/games/apps wont work.