Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to Check my Load Balancing is Working or Not?

    Routing and Multi WAN
    4
    10
    8.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abcvidu
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        www.pfsense.org/ip.php

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

        1 Reply Last reply Reply Quote 0
        • M
          Metu69salemi
          last edited by

          Use this for checking it
          That link is speedtest.net

          1 Reply Last reply Reply Quote 0
          • A
            abcvidu
            last edited by

            WOW, Its working. Thanks

            1 Reply Last reply Reply Quote 0
            • C
              coolVariable
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • M
                Metu69salemi
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • C
                  coolVariable
                  last edited by

                  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?

                  Untitled-1.jpg
                  Untitled-1.jpg_thumb

                  1 Reply Last reply Reply Quote 0
                  • M
                    Metu69salemi
                    last edited by

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

                    1 Reply Last reply Reply Quote 0
                    • C
                      coolVariable
                      last edited by

                      @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 ....

                      1 Reply Last reply Reply Quote 0
                      • M
                        Metu69salemi
                        last edited by

                        You could post that problem here or open new topic

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.