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

Multiwan and squid no work properly

Scheduled Pinned Locked Moved Routing and Multi WAN
19 Posts 6 Posters 4.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.
  • A
    aykiri1
    last edited by Nov 25, 2013, 4:15 PM

    version is 2.1 64bit

    i have 2 wan and 1 lan

    wan1:192.168.1.2      (wangw 192.168.1.1)
    wan2:192.168.2.2      (opt1gw 192.168.2.1)

    there are 50 pc on network. and first 25 pc going from wan1  second 25 pc going from wan2
    without squid its working properly but when i activate squid. all 50 pc's going from default(wan1)
    what i must do ?
    regards.

    1 Reply Last reply Reply Quote 0
    • H
      hyrol
      last edited by Nov 26, 2013, 2:11 AM

      use pfsense 2.0.3, pfsense 2.1 doesn't work squid engine.

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

      1 Reply Last reply Reply Quote 0
      • A
        aykiri1
        last edited by Nov 26, 2013, 7:54 AM

        @hyrol:

        use pfsense 2.0.3, pfsense 2.1 doesn't work squid engine.

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

        will try test thx

        1 Reply Last reply Reply Quote 0
        • B
          basitkhan
          last edited by Nov 26, 2013, 8:51 AM

          HI…
          I am also facing the same issue i have 3 wan connections and 1 Lan with multiple networks (Distributed network) 10.2.x.x/16 and 172.16.x.x/16 on lan side.
          Without squid proxy everything working fine and silk smooth
          I have installed

          2.1-RELEASE (amd64)
          built on Wed Sep 11 18:17:48 EDT 2013

          Squid Proxy 3.3.8 pkg 2.2 (Lower version does not support Share Point website so I must have to install this)
          Some of my clients use proxy through browser configuration, and some are transparent.
          (Required some modules to be copy in /usr/local/lib directory of pfsense http://e-sac.siteseguro.ws/pfsense/8/amd64/All/ldd/ got from here)

          When i select LAN+loopback squid does not work at all and stange error show on browser like INVALID ADDRESS

          Squid always go though the default wan not the load balancing
          I have tried all the tutorials with static nat, floating rule, etc but all in vain.

          Please guide me to solve this issue.

          Thanks

          1 Reply Last reply Reply Quote 0
          • A
            aykiri1
            last edited by Nov 26, 2013, 10:03 AM

            hyrol answered. use 2.0.2 or 2.0.3
            squid engine not work on 2.1

            1 Reply Last reply Reply Quote 0
            • B
              basitkhan
              last edited by Nov 27, 2013, 8:09 AM

              hi..

              i did it as in link but not working at all

              1 Reply Last reply Reply Quote 0
              • A
                aykiri1
                last edited by Nov 27, 2013, 7:25 PM

                why selecting loopback ?
                only select LAN.

                1 Reply Last reply Reply Quote 0
                • B
                  basitkhan
                  last edited by Nov 28, 2013, 3:25 AM

                  I tried both wiht loopback and without loop back but still not working :(

                  1 Reply Last reply Reply Quote 0
                  • H
                    hyrol
                    last edited by Nov 29, 2013, 12:50 AM

                    @Basit:

                    I tried both wiht loopback and without loop back but still not working :(

                    You still using pfSense 2.1, it does not work because it floating rule does not work.

                    1 Reply Last reply Reply Quote 0
                    • A
                      aykiri1
                      last edited by Nov 29, 2013, 6:17 PM

                      i fixed it.

                      create an acl with src and add ip list any text file (every ip per line) then set acl to wan/2 or wan/1 which you want
                      add this acl to first line. that other acl's work all default gateway.
                      regards

                      1 Reply Last reply Reply Quote 0
                      • B
                        basitkhan
                        last edited by Dec 2, 2013, 3:59 AM

                        @aykiri1:

                        i fixed it.

                        create an acl with src and add ip list any text file (every ip per line) then set acl to wan/2 or wan/1 which you want
                        add this acl to first line. that other acl's work all default gateway.
                        regards

                        i used  pfsense 2.0.3 and share your config or screen shots for better understanding, i m still struck in it :(
                        waiting…

                        1 Reply Last reply Reply Quote 0
                        • A
                          aykiri1
                          last edited by Dec 2, 2013, 8:18 AM Dec 2, 2013, 8:08 AM

                          my version 2.1 64 bit
                          goto proxy server screen
                          and see custom options.

                          default is :

                          tcp_outgoing_address 127.0.0.1;;redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard -c /usr/pbi/squidguard-amd64/etc/squidGuard/squidGuard.conf;redirector_bypass off;url_rewrite_children 5

                          then add this string as your config

                          acl nameofacl src "/usr/local/etc/squid/ip.txt";tcp_outgoing_address X.X.X.X nameofacl;

                          nameofacl is what you will write of name its not important you can use any
                          X.X.X.X is your wan interface (not gateway)

                          "/usr/local/etc/squid/ip.txt" is ip list which you want to ip's going to which interface.
                          open any txt file. then write per line 1 ip

                          example:
                          192.168.1.40
                          192.168.1.41
                          192.168.1.42
                          etc…

                          no use /24 or /16 /8 for subnet

                          no need any floating rule .. its working perfect with squid 2.1 and squidguard
                          i think moderators change thread name to (fixed)

                          1 Reply Last reply Reply Quote 0
                          • H
                            hyrol
                            last edited by Dec 4, 2013, 3:48 AM Dec 4, 2013, 3:27 AM

                            @aykiri1:

                            then add this string as your config

                            acl nameofacl src "/usr/local/etc/squid/ip.txt";tcp_outgoing_address X.X.X.X nameofacl;

                            nameofacl is what you will write of name its not important you can use any
                            X.X.X.X is your wan interface (not gateway)

                            what happen when WAN PPPoE dynamic "tcp_outgoing_address X.X.X.X nameofacl"

                            for me it's not roundrobin/loadbalacing

                            1 Reply Last reply Reply Quote 0
                            • J
                              javerleo
                              last edited by Dec 17, 2013, 3:38 AM

                              @aykiri1:

                              my version 2.1 64 bit
                              goto proxy server screen
                              and see custom options.

                              default is :

                              tcp_outgoing_address 127.0.0.1;;redirect_program /usr/pbi/squidguard-amd64/bin/squidGuard -c /usr/pbi/squidguard-amd64/etc/squidGuard/squidGuard.conf;redirector_bypass off;url_rewrite_children 5

                              then add this string as your config

                              acl nameofacl src "/usr/local/etc/squid/ip.txt";tcp_outgoing_address X.X.X.X nameofacl;

                              nameofacl is what you will write of name its not important you can use any
                              X.X.X.X is your wan interface (not gateway)

                              "/usr/local/etc/squid/ip.txt" is ip list which you want to ip's going to which interface.
                              open any txt file. then write per line 1 ip

                              example:
                              192.168.1.40
                              192.168.1.41
                              192.168.1.42
                              etc…

                              no use /24 or /16 /8 for subnet

                              no need any floating rule .. its working perfect with squid 2.1 and squidguard
                              i think moderators change thread name to (fixed)

                              A good contribution. But even if it works, it is not the same functionality we had before pfSense 2.1: Squid Outgoing connections balanced automatically between  WAN interfaces.

                              This is an important topic. Maybe the hero members can contribute with a final post: Can we have Squid working with multi WAN on 2.1? What are the required steps?

                              :)

                              Thanks.

                              –-----------
                              God is my best friend

                              1 Reply Last reply Reply Quote 0
                              • B
                                basitkhan
                                last edited by Dec 17, 2013, 4:09 AM

                                Still Waiting to work squid proxy with 2.1 :(
                                the per ip list is fine but what to do if one wan connection goes down? it will still keep sending the request to failed wan :(
                                this is major bug! kindly update it as soon as possible

                                Thanks for all

                                1 Reply Last reply Reply Quote 0
                                • A
                                  afrugone
                                  last edited by Jan 10, 2014, 1:45 PM

                                  Any news about fixing PfSense 2.1 to work with Multiwan+Squid, I'll need it and don't like to downgrade to 2.03.

                                  Thanks for your comments

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Kababayan
                                    last edited by Jan 13, 2014, 12:05 PM

                                    Have 3 wans two wans uses load balance for proxy. third wan is for gaming and other traffic. Using pfsense 2.1 upgraded from 2.0.3. Using Lusca Proxy.

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      javerleo
                                      last edited by Jan 19, 2014, 4:20 AM

                                      So far I was forced to downgrade to 2.0.3 to have squid working with multi-wan but I don't like the idea of losing the new 2.1 functionality.

                                      Hero members: come and save us !!! (as usually they do)

                                      :)

                                      –-----------
                                      God is my best friend

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        hyrol
                                        last edited by Jan 28, 2014, 2:43 AM

                                        I was get a solution, please follow the forum link below.

                                        https://forum.pfsense.org/index.php/topic,66822.0.html
                                        or
                                        https://forum.pfsense.org/index.php/topic,60977.0.html

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          [[user:consent.lead]]
                                          [[user:consent.not_received]]