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

    Multi wan load balancing

    Scheduled Pinned Locked Moved Routing and Multi WAN
    9 Posts 5 Posters 3.8k Views
    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.
    • F Offline
      Franscois
      last edited by

      Hi Guy's

      My First post here, thanks for helping!

      For the last week i have tried every solution offered on the wiki and everything available on Google search and i still can not get load balancing to work.

      I have PFsense 2.0.2 running, with 2 Wan connections.
      on PF we are running squid Proxy with Squid Guard to help filter out unwanted web content from popping up on the Schools computers.

      I have setup the gateway group, set the firewall rules to use the group as the default gateway, set floating rules, followed settings for dns.
      tried my own variation of settings… But traffic only goes through one of the WAN connections (i have also tried all of the suggested settings in squid)

      Any one able to offer a bit of help?
      Ill post screen shots of all of my settings as well.

      Thanks

      1 Reply Last reply Reply Quote 0
      • J Offline
        jikjik101
        last edited by

        post your settings and we might be able to help.

        1 Reply Last reply Reply Quote 0
        • F Offline
          Franscois
          last edited by

          Her is a link to my settings, i have removed the floating rule.

          https://skydrive.live.com/redir?resid=B6EBE8BF898FB9A4!194&authkey=!AGdkaMcBxaZdJ04

          1 Reply Last reply Reply Quote 0
          • H Offline
            hackin8
            last edited by

            Your link to the settings is too small to read - even with magnification I cannot read the details.

            Meantime - a suggestion.  If you direct the firewall rule to use each wan (in turn) does traffic get redirected correctly to each WAN?

            1 Reply Last reply Reply Quote 0
            • F Offline
              Franscois
              last edited by

              Thanks for the response

              I have tried your previous suggestion and traffic flows correctly depending on the firewall rules.
              Hopefully you can see this picture in a bit more details, if not i can only get better screens tomorrow.

              But here is some info on my setup:

              1x Lan and 2x wan connections that go to 2 ROS servers, on each of the ROS servers we are running 5 different vpn connections.

              |–----VPN------
                                                |------VPN------
                                                |------VPN------
                                                |------VPN------
                                                |------VPN------
                            |---------- ROS (10Mb Fiber)
              --------PFSENSE
                            |---------- ROS (10Mb Fiber)
                                                |------VPN------
                                                |------VPN------
                                                |------VPN------
                                                |------VPN------
                                                |------VPN------
              PFSENSE Pacages:
              Squid (transparent mode)
              Squid Guard (used for Blacklist and forcing Safesearch)
              Sarg Reports (User Usage reports)

              PFsense Setup:
              Lan:    172.16.0.1
              Wan 1: 192.168.0.1
              Wan 2: 192.168.2.3

              Gateway Group: Rosgroup (contains both gateways on the same level)

              Firewall rules :
              LAN: all traffic directed to use the Rosgroup as the default gateway.
              Floating: I have removed the floating rule because it did not seem to change anything.

              Nat: Automatic (i have set manual NAT settings but no success)

              1 Reply Last reply Reply Quote 0
              • R Offline
                robtoronto
                last edited by

                I am still working on this issue myself, But … Can you please try this.

                Please uninstall squid ( Dont stop it, .. Remove it.)

                Make sure your Multi Wan GW and rules are setup

                and then hop on a site like...www.dnsleaktest.com does the wan LB?

                I am having issues myself also with this I have not spent much time on it, Looking to work on it next week sometime., I can tell you thou, I would put a case a beer down that its squid that's causing your issue. I have read everything I have been able to find and nothing has worked so far. I will keep in touch on this post , let's get this one solved !!!! :)

                WiFi

                LAN

                Got Speed?

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jikjik101
                  last edited by

                  had you tried this? http://forum.pfsense.org/index.php/topic,37083.0.html

                  sometimes for squid to loadbalance, you need a lot of LUCK. ;D
                  i installed a multiwan loadbalance with squid for many times already, but my latest installation is unsuccessful. maybe it's 2.0.2, or maybe not.

                  try putting the tcp_outgoing_address 127.0.0.1; at Customs Option of your proxy.
                  that is step 6, page 8 on that HOWTO.

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    robtoronto
                    last edited by

                    @jikjik101:

                    had you tried this? http://forum.pfsense.org/index.php/topic,37083.0.html

                    sometimes for squid to loadbalance, you need a lot of LUCK. ;D
                    i installed a multiwan loadbalance with squid for many times already, but my latest installation is unsuccessful. maybe it's 2.0.2, or maybe not.

                    try putting the tcp_outgoing_address 127.0.0.1; at Customs Option of your proxy.
                    that is step 6, page 8 on that HOWTO.

                    Ahhh so i'm not the only one who feels that way ;)

                    I know I have tried with the outgoing address, will try again later today and follow up. But.. On the note of maybe it being 2.0.2, you may be on to something there I might fallback to 2.0.1 and try that way also.

                    WiFi

                    LAN

                    Got Speed?

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      hyrol
                      last edited by

                      http://forum.pfsense.org/index.php/topic,59605.0.html

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