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

    Outbound loadbalancing beta 3

    Routing and Multi WAN
    3
    10
    5.3k
    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.
    • C
      charles.regan
      last edited by

      doesn't works and/or works like ****

      gateway1 201.120.48.1
      gateway2 201.120.134.1
      gateway3 201.120.51.1

      if I ping 201.120.48.1 I can see the traffic passing in gateway3 to get to it.

      Apr 17 18:18:27 slbd[32073]: Switching to sitedown for VIP 127.0.0.1:666
      Apr 17 18:18:25 php: : There were error(s) loading the rules: /tmp/rules.debug:170: syntax error pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [170]: pass in quick on $lan route-to { } round-robin route-to ( Loadbalance ) from 10.0.0.0/16 to any keep state label "USER_RULE: Load Balance"
      Apr 17 18:18:22 last message repeated 9 times
      Apr 17 18:18:02 last message repeated 14 times
      Apr 17 18:17:27 slbd[32073]: Switching to sitedown for VIP 127.0.0.1:666

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        We just fixed some things and it really SHOULD work with beta3. If there are no last minute bugs found in the next hour beta3 will be released.

        1 Reply Last reply Reply Quote 0
        • C
          charles.regan
          last edited by

          big problem here.

          rules.debug:
          pass in quick on $lan  route-to { ( rl3 201.120.51.1 ) , ( rl3 201.120.51.1 ) } round-robin from 10.0.0.0/16 to any keep state  label "USER_RULE: Load Balance"

          if i go into loadbalancer my pool is gateway2 201.120.134.1 and gateway3 201.120.51.1

          something is wrong

          1 Reply Last reply Reply Quote 0
          • C
            charles.regan
            last edited by

            what i can see is that it only takes the last gateway in the pool

            1 Reply Last reply Reply Quote 0
            • B
              billm
              last edited by

              @charles.regan:

              what i can see is that it only takes the last gateway in the pool

              What are the monitor IPs?

              –Bill

              pfSense core developer
              blog - http://www.ucsecurity.com/
              twitter - billmarquette

              1 Reply Last reply Reply Quote 0
              • H
                hoba
                last edited by

                Please wait for beta3. I tested that under several conditions and this feature should now really work as expected (several fixes where made even after the latest snapshot).

                1 Reply Last reply Reply Quote 0
                • B
                  billm
                  last edited by

                  @billm:

                  @charles.regan:

                  what i can see is that it only takes the last gateway in the pool

                  What are the monitor IPs?

                  Also, what does your routing table look like?

                  –Bill

                  pfSense core developer
                  blog - http://www.ucsecurity.com/
                  twitter - billmarquette

                  1 Reply Last reply Reply Quote 0
                  • C
                    charles.regan
                    last edited by

                    I think i'Ve found the problem.
                    my monitor ip where all the same for all gateway.

                    i've checked the routing table and the route for the monitor ip was rl3.
                    that should explain the problem. weird that it worked since version 0.6.

                    what should be the monitor ip ?
                    if my gateway is 201.120.51.1, can I use 201.120.51.1 as the monitor ip ?

                    thanks

                    1 Reply Last reply Reply Quote 0
                    • C
                      charles.regan
                      last edited by

                      works good now / monitor ip same as gateway.

                      thanks folks

                      1 Reply Last reply Reply Quote 0
                      • H
                        hoba
                        last edited by

                        @charles.regan:

                        I think i'Ve found the problem.
                        my monitor ip where all the same for all gateway.

                        i've checked the routing table and the route for the monitor ip was rl3.
                        that should explain the problem. weird that it worked since version 0.6.

                        what should be the monitor ip ?
                        if my gateway is 201.120.51.1, can I use 201.120.51.1 as the monitor ip ?

                        thanks

                        It will add a route for the monitor IP to the refferenced gateway. If you enter always the same monitor IP for all gateways it will overwrite the previous route and you'll end up with only one route. The monitor IP should be different for each gateway. You should set the monitor to a hop near you at the appropriate interface. Depending how your connection is set up the gateway IP or the first hop after your gateway might be a good choice.

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