Navigation

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

    Simple loadbalancing help

    Routing and Multi WAN
    3
    12
    3365
    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
      cwest last edited by

      Hi,

      Firstly, Thanks to the PF team! it's given new life to a sad, ol' pc. :P

      Let me be honest upfront, I have very little understanding of networking and network concepts…

      Anyway, I've searched, and read up on most of the links on the forum about loadbalancing, but I get seem to get my head around it all. I've configured pfsense (1.0.1) to see both connections, and can ping out from the webc, but i can't seem to configure it for loadbalancing.

      I've got 1 DSL (WAN/PPPoE) + 1 Cable (OPT1/DHCP), and I'm not sure how to set up the LB pools to handle it...All traffic is going out on WAN. I think my problem might with the IP/Monitor IP entries, i'm not entirely sure how to set that up. I did a trace route on both connections, and used the 2nd hop after the pfsense box for the monitor IP, and used the pfsense boxes' IP for the IP box.  ???

      Any help would be very much appreciated!

      1 Reply Last reply Reply Quote 0
      • S
        sullrich last edited by

        Update to a recent snapshot from http://snapshots.pfsense.com/FreeBSD6/RELENG_1/updates/ and the Load balancing setup will be a LOT easier.  It has been greatly simplified since 1.0.1.

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

          Thanks!

          ALOT easier indeed. Everything makes sense now…sorta ::)

          However, It's not Loadbalancing, so I'm guessing I missed something, as all traffic is going out on WAN. I started some heavy BT traffic, so I've got about 700 connections to test it out with, but the only thing going out of OPT1 are to check the link.

          edit: yea, definitely not working as its supposed to. Disconnecting WAN causes me to lose the net entirely. maybe I messed with something, so I'll try setting back to defaults.
          edit2: alright...Rebooted the box, and all of a sudden it started loadbalancing, rebooted it again, back to WAN...

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

            There's definately something messed up. I suggest starting over from scratch with a factory default config. Along with the gui changes some config.xml changes happened which might not work with your old config now.

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

              Ok, so I did a completely new install of pfsense, set up dual wan, but again its only using one connection. If i boot the the box with WAN unplugged, It'll use OPT1, plugging it back in, it continues to use OPT1 until I reboot. I set up my DSL with DHCP from modem, but it still used one or the other.

              So yea…I have no idea whats going on. One thing I noticed is that the link status under Status>Load Balancer never changes from online if I unplug either of the connections. I'm wondering if it could possibly be a hardware issue with one of the NICs?

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

                You probably have a monitor IP problem then.

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

                  I should be able to ping out on both connections right?

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

                    Yes, but you have to use different targets if you want to test or the old state will keep you on the connection where it was initially established, at least as long as the state exists. Rather try tracerouting to different targets (like google.com, yahoo.com, slashdot.org,…). You should see the requests following different paths.

                    But if the loadbalancer doesn't detect linkchanges (like going down if you unplug an interface) your monitor IPs are not correct.

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

                      Ok, I think I understand what your saying. I've got it setup properly so it sees if unplug either of the interfaces, but it still only uses WAN, even if that link is down, which also means its not load balancing at all.

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

                        Then I'm out of ideas. It really should not be that complicated.  :-\

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

                          alright, I got it sorted out. Must be some funky hardware issue with one of my NICs. The box needs to boot with a certain interface unplugged, then plugging it in after it boots causes pfsense to allow outbound traffic on it.

                          Thanks to hoba and sullrich for the assistance!

                          Edit: Scratch the above. It DID work, only once tho. However, I found something I find strange…Using the ping utility in pfsense, regardless of the connection selected, it will ping out...normal right? other than the minor fact that only one connection is plugged in. :o This is something new for me, as before it would just time out on its non preferred connection.

                          Edit2: ok...so, it DOES work after all. Not sure what I did, but its working...pretty well at that. The result, well, I've got about 20 or so flashing LED's now...

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

                            Only traffic running through the pfSense will be balanced. The pfSense itself will always only use the default gateway or what's in the routing table.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Products

                            • Platform Overview
                            • TNSR
                            • pfSense
                            • Appliances

                            Services

                            • Training
                            • Professional Services

                            Support

                            • Subscription Plans
                            • Contact Support
                            • Product Lifecycle
                            • Documentation

                            News

                            • Media Coverage
                            • Press
                            • Events

                            Resources

                            • Blog
                            • FAQ
                            • Find a Partner
                            • Resource Library
                            • Security Information

                            Company

                            • About Us
                            • Careers
                            • Partners
                            • Contact Us
                            • Legal
                            Our Mission

                            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                            Subscribe to our Newsletter

                            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                            © 2021 Rubicon Communications, LLC | Privacy Policy