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

    PfSense Squid Proxy for Multi-WAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    36 Posts 15 Posters 31.2k 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.
    • A
      AMD_infinium05
      last edited by

      has anyone tried this on 2.0.3 ?

      I have tried it earlier and I think i have messed up…... i have removed packages and revert to original settings, now my internet is working fine with load balancing, and failovers.

      1 Reply Last reply Reply Quote 0
      • V
        vielfede
        last edited by

        @fabianoheringer:

        For some reason, this setup not working on pfsense 2.1 and squid 3.3.4, my box was working very well with 2.0.3, but now it´s not with 2.1, any ideas?

        ON
        2.1-RC1 (amd64)
        built on Thu Aug 15 16:30:12 EDT 2013
        FreeBSD 8.3-RELEASE-p9

        I solved by activating "Allow default gateway switching" option in Advanced configs (failover only) and removing all floating and NAT rules..
        Hope this helps…

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

          @vielfede:

          @fabianoheringer:

          For some reason, this setup not working on pfsense 2.1 and squid 3.3.4, my box was working very well with 2.0.3, but now it´s not with 2.1, any ideas?

          ON
          2.1-RC1 (amd64)
          built on Thu Aug 15 16:30:12 EDT 2013
          FreeBSD 8.3-RELEASE-p9

          I solved by activating "Allow default gateway switching" option in Advanced configs (failover only) and removing all floating and NAT rules..
          Hope this helps…

          that is not solved, it still has 2 problems that aren't an issue for your specific use.
          It doesn't help with loadbalancing or when someone has more than 2 WANs of which 1 WAN reallly should not do http traffic (because it is reserved for other use like VoIP, or because the ip can't be known publicly etcetera)

          It really is a stupid bug in 2.1. Worse is that 2.0.x had a bug that failover doesn't work for connections like VoIP/SIP so going back isn't an option either, at least for me… really nice

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

            Finally, after a long time trying pfSense Squid Package + Multi Wan and I have managed to find its way in a deadlock.
            pfSense 2.1 Squid Package + Multi Wan, no longer using the Floating Rules, but using the Interface Groups.
            Good Luck Everyone.

            ![Interface Groups.jpg](/public/imported_attachments/1/Interface Groups.jpg)
            ![Interface Groups.jpg_thumb](/public/imported_attachments/1/Interface Groups.jpg_thumb)
            ![Proxy Server.jpg](/public/imported_attachments/1/Proxy Server.jpg)
            ![Proxy Server.jpg_thumb](/public/imported_attachments/1/Proxy Server.jpg_thumb)
            ![Internet Rules.jpg](/public/imported_attachments/1/Internet Rules.jpg)
            ![Internet Rules.jpg_thumb](/public/imported_attachments/1/Internet Rules.jpg_thumb)
            ![Floating Rules.jpg](/public/imported_attachments/1/Floating Rules.jpg)
            ![Floating Rules.jpg_thumb](/public/imported_attachments/1/Floating Rules.jpg_thumb)

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

              Thanks, and congratulations!

              What version of squid and squidguard are you using?

              Please send a screenshot of your system->routing screen showing your default route.

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

                Created the interface group, but how are you getting squid to use the group and not the default gateway?

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

                  Still configure the same as pfSense 2.0.3 Squid Package Multi Wan, only changes to the Floating Rules to Interface Group.

                  ![Lan Rules.jpg_thumb](/public/imported_attachments/1/Lan Rules.jpg_thumb)
                  ![Lan Rules.jpg](/public/imported_attachments/1/Lan Rules.jpg)
                  Groups.jpg_thumb
                  Groups.jpg
                  Gateways.jpg_thumb
                  Gateways.jpg

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

                    Thanks but I am not seeing where or how you have used the interface group.

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

                      Under Menu Interface

                      Interface.jpg
                      Interface.jpg_thumb

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

                        Hyrol,

                        Many thanks, but where I use the new "Internet" interface created at "Interface Groups", I don't like to abuse of your time, but could you resume how will be the new configuration?

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

                          afrugone,

                          What you mean, all configure same as pfSense 2.0.3 Squid Multi WANs, difference only Floating rules vs Interface Group. pfSense 2.1 not more using Floating rules for Squid Multi WANs.

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

                            OK I´ll try this,

                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • M
                              mohamed hafez
                              last edited by

                              @hyrol:

                              afrugone,

                              What you mean, all configure same as pfSense 2.0.3 Squid Multi WANs, difference only Floating rules vs Interface Group. pfSense 2.1 not more using Floating rules for Squid Multi WANs.

                              I've done as you said exactly but not working at all

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

                                Actually this is not Load-Balance Round Robin, this is Load-Balance Bandwith Agreggation and you can see all the WANs its working.
                                It is worth it from nothing.

                                Load-Balance.jpg
                                Load-Balance.jpg_thumb

                                1 Reply Last reply Reply Quote 0
                                • P
                                  pubmsu
                                  last edited by

                                  Hi @hyrol,

                                  The last LAN rule screenshot you posted actually bypasses the squid altogether and sends the traffic directly to the loadbalancer gateway group. That's how you're getting bandwidth aggregation (but not squid caching).

                                  And the interface group "Internet" is not really playing any role anywhere.

                                  So, in summary, this does not seem to be a working solution for 2.1.x for squid plus load-balancing or failover.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dims
                                    last edited by

                                    NOTE:

                                    if you have problems with multi WAN (which may be the reason you look at this topic) you may find it senseless, because you browser can have problems with downloading images

                                    SO SEE THIS TOPIC NOT VIA ROUTER YOU PLAN TO CONFIGURE :)

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