How to Check my Load Balancing is Working or Not?



  • Hi,

    I am using Pfsense 2.0-RC3 (i386) built on Fri Aug 12 16:23:11 EDT 2011. Its working fine. My Fail over function is also working fine, But I want make sure my load balancing is really working or not? is anybody there to help me?  ::) ::)

    Nuwan



  • www.pfsense.org/ip.php

    refreshing the page several times should display you yor different WAN addresses.





  • WOW, Its working. Thanks



  • Mmmhh. Mine does not seem to change.
    What am I doing wrong?

    Gateways are set both as Tier 1 under System => Routing => Groups
    OPT1 Gateway is given a weight of 2 and WAN Gateway is given a weight of 1 under System => Routing => Gateways

    I only see the IP for OPT1 Gateway.



  • Is your opt1 double as fast as wangw?
    How did you implement loadbalance?



  • Yes. OPT1 is approx twice as fast as the WAN. 3x for outbound.
    OPT1 gateway is set as the default and has a weight of 2.

    I used the recommendations for load balancing under pfsense 2.0 RC3, ie do nothing but
    (i) define a group for both gateways under system => routing => groups,
    (ii) change the rule from LAN to Gateway under firewall => rules => lan so it uses the gateway group,
    (iii) enable both checkboxes under System => advanced => misc for "Use sticky connections" and "Allow default gateway switching", and
    (iv) enable a rule for HTTPS to always go out through one Gateway (to avoid issues with https logins), ie everything HTTPS from LANnet goes through one gateway.

    Why is it not working?




  • Your https rule is not going to work, it has to be above the default rule.
    But the real question, i have no glue



  • @Metu69salemi:

    Your https rule is not going to work, it has to be above the default rule.
    But the real question, i have no glue

    Thank you.
    I don't think the weighting works properly … and I used the "my ip" check countless times at this point, even having everyone in our location (10+ people) checking it.
    I understand that with a weight of 1:2 for WAN to OPT1, it should pick OPT1 for the first connection, WAN for the second and OPT1 again for the third. Is that not correct? I do believe that is the problem.
    I played around with the weight:

    • if I set it 1:1 it clearly prefers the WAN, probably ~7+ times out of 10
    • if I set it 1:2 it clearly prefers the OPT1, probably ~9 times out of 10
    • if I set it to 2:3 it still prefers the OPT1, though less than with 1:2 and much closer to the desired weight ... maybe 7-8 out of 10.

    I can live with my 2:3 setting (which gets a result close to my desired 1:2) but it is annoying that this feature does not work properly (or at least does not work as one would expect it to work).

    Now I only need to figure out why the VPN functionality does not work as set out in the guides ....



  • You could post that problem here or open new topic


Log in to reply