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

New HOWTO: pfSense Squid Web Proxy with multi-WAN links (it works!)

Scheduled Pinned Locked Moved Routing and Multi WAN
80 Posts 46 Posters 126.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.
  • C
    chanrio13
    last edited by Jun 2, 2011, 2:28 PM

    good day pfmasters, i would like to ask if this work on multi-wan fail over?

    ive tested squid with multi wan
    wan for browsing
    opt for others
    when squid is on transparent mode, when wan is disconected and failback to opt interface, i cannot browse but when im on non transparent failover works perfect

    1 Reply Last reply Reply Quote 0
    • L
      lucatero
      last edited by Jun 2, 2011, 4:00 PM

      Please help me,  I can't file access: http://securite-ti.com/pfSense_Web_Proxy_with_multi-WAN_links.pdf

      1 Reply Last reply Reply Quote 0
      • Z
        zzajdica
        last edited by Jun 2, 2011, 8:51 PM

        Hello,

        Thanks for this.  Unfortunately it is not working for me.. Here is the issue.. the failover is working fine, i unplug the primary and a few seconds later I am pinging out to the internet.  Browsing does not work and here is why:

        Under System, Routing, I have 2 Gateways.. the Primary gateway has Default Gateway checked.. so when it goes down the default gateway goes away.. so Squid cannot route out to fetch these pages.  So, is there a way for me to setup some weighted routes so squid (and the pfsense firewall) can route out in case the primary connection goes down?

        1 Reply Last reply Reply Quote 0
        • H
          heper
          last edited by Jun 3, 2011, 12:53 AM

          @ermal: i've found that when binding squid to localhost only causes traffic from lan not to go through the proxy … should any other redirect rules be implement when running it your way ?

          @zzajdica: the floating rules are there to push http traffic to the correct gateway ... check if your floating rules correspond with the ones in this how-to and let us know if that helped

          1 Reply Last reply Reply Quote 0
          • M
            mikehomee
            last edited by Jun 3, 2011, 7:37 AM

            Hi!
            Thanks for the docs! I'm having some issues also.
            1. Following the guides you made, it's working! really! but after few seconds the squid is starting to fail then all connection are totally blocked by squid.
                - maybe it's on squid
            2. In this mode, while the tier 1 is down. The pfsense itself doesn't have internet connection (im not sure how to say it)
                - can't ping any host or even check for updates.
                - **but as long as all workstations does have connection and forwarders are working i think i can live with this.

            I really appreciate what you made!!
            I'm Hoping you can help us!!

            Thank yoU!!!

            1 Reply Last reply Reply Quote 0
            • M
              mikehomee
              last edited by Jun 3, 2011, 10:42 AM

              Hi!!
              After following those guides, it does gives me interest to study pfsense deeply.
              I'm running pfsense 2.0 RC2 (updated) squid + wan failover that for me is working. Just did it TODAY.
              I did not set or use any rules (as in no rules are being used.)
              I still need to monitor this over the weekend. I'd be happy to share it with you guys if this one works with my needs.
              Like port forwarders and carp/pfsync.

              THank you for giving me encouragement!!

              1 Reply Last reply Reply Quote 0
              • Z
                zzajdica
                last edited by Jun 3, 2011, 4:39 PM

                My floating rule is set.  I also tried upgrading to the newest snapshot but it did not help.  Please see attached for my settings.  Thanks!





                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Jun 3, 2011, 4:42 PM

                  Edit the floating rule so that the interfaces and direction are also visible in the screenshots. That's the most important info there aside from what you've shown.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • Z
                    zzajdica
                    last edited by Jun 3, 2011, 4:53 PM

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by Jun 3, 2011, 4:55 PM

                      Check "quick" on that rule.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • Z
                        zzajdica
                        last edited by Jun 3, 2011, 4:57 PM

                        Tried that didn't work

                        1 Reply Last reply Reply Quote 0
                        • H
                          heper
                          last edited by Jun 4, 2011, 11:53 PM

                          @zzajdica

                          duplicate the floating rule you made for http traffic, then modify it for dns (proto tcp/udp / port dns=53)

                          1 Reply Last reply Reply Quote 0
                          • N
                            nassman
                            last edited by Jun 5, 2011, 2:31 PM

                            All ways not work.
                            we need standard way work with all , not for one.
                            very bad.

                            1 Reply Last reply Reply Quote 0
                            • Z
                              zzajdica
                              last edited by Jun 6, 2011, 1:18 PM

                              Thanks Heper but that also did not work.  I'm going to be deploying this later on with a different network (Right now I am just testing) with DNS servers on the LAN so maybe I'll have better luck in that environment.  I'll post back as soon as this happens.

                              Many thanks.

                              1 Reply Last reply Reply Quote 0
                              • A
                                acriollo
                                last edited by Jun 7, 2011, 12:43 AM

                                Hi you guys, any one have the document ? i cant get it from the url posted.

                                thanks in advanced.

                                Regards

                                1 Reply Last reply Reply Quote 0
                                • A
                                  acriollo
                                  last edited by Jun 8, 2011, 4:50 AM

                                  @acriollo:

                                  Hi you guys, any one have the document ? i cant get it from the url posted.

                                  thanks in advanced.

                                  Regards

                                  Solved, the link was down till now.

                                  Thanks

                                  1 Reply Last reply Reply Quote 0
                                  • Z
                                    zzajdica
                                    last edited by Jun 8, 2011, 6:52 PM

                                    Still couldn't get it to work.. failover works great if I don't have Squid running.

                                    1 Reply Last reply Reply Quote 0
                                    • O
                                      onkeldave83
                                      last edited by Jun 14, 2011, 3:17 PM Jun 14, 2011, 3:12 PM

                                      We need LoadBalancing and FailOVER! squid guys working faster please!

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mbedyn
                                        last edited by Jun 15, 2011, 10:26 PM

                                        @DimitriS
                                        Did you tested this setup in case of loadbalancing? 
                                        After my test it perfectly works in case of failover, but not when I set up loadbalancing between two gateways..
                                        I tried to bind squid to loopback and LAN and only loopback, and works well only when gateways sets in failover.

                                        Michael

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          Frozen_Fire
                                          last edited by Jun 16, 2011, 6:47 AM

                                          I agree with mbedyn, failover works but not loadbalancing.

                                          1 Reply Last reply Reply Quote 0
                                          21 out of 80
                                          • First post
                                            31/80
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received