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

    Squid with dual-WAN loadbalancing - anyone figured it out?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    6 Posts 4 Posters 2.6k 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.
    • J Offline
      jarlel
      last edited by

      Hi!

      Has anyone figured out how to make this work?

      *pfSense 2.0.1
      *One LAN
      *Two WANs set up with load balancing (not fail-over)
      *Squid

      Have tried all the suggestions around, but doesn't look like anybody has made this work.

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

        An alternative if this doesn't work would be to have squid working for traffic towards one WAN and traffik to the other WAN
        could go directly. However I couldn't make this work as squid doesn't pass traffic when the current default gateway WAN isn't used.

        Does someone know how to make squid work for one WAN and still let traffic through the other WAN?

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

          there are a zillion posts about this … try searching the forums and ask questions at the respective posts

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

            Yes, but no posts state that it works, none have reported it OK, so just wondering if anyone that might have made it work without
            posting about it could share their configs :-)

            1 Reply Last reply Reply Quote 0
            • M Offline
              MedoZero
              last edited by

              i did try this and it works fine . the squid work in transparent mode . and every thing work fine except one thing , i dont know if you will face it or not . see here
              http://forum.pfsense.org/index.php/topic,48199.0.html

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

                We have a multi-WAN setup and Squid load-balancing works (inbound).  We use transparent mode for Squid, so by default it just uses the default gateway for inbound traffic (leaving the other two gateways unused).  So, we setup a floating firewall rule to "loop" the interface traffic to that default WAN gateway then thru to the gateway group.  Then, we added "tcp_outgoing_address 127.0.0.1" to Custom Options of Squid to complete the setup.

                Sample: we have OPT1, OPT2 (as default GW), OPT3 interfaces in a gateway group (GG1).

                Our firewall rule looks like this:

                Proto: TCP
                Source: OPT2 address
                Port: *
                Destination: *
                Port: 80 (HTTP)
                Gateway: GG1

                Don't forget to tick "Apply the action immediately on match" for the floating rule. ;)

                load-balance.jpg
                load-balance.jpg_thumb

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