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

    Pfsense 2.1.x, Squid3 and MultiWAN no working status???

    Routing and Multi WAN
    16
    22
    6.2k
    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.
    • P
      pukkita
      last edited by

      Hi,

      I noticed squid only uses default gateway on pfsense 2.1.x multi-wan setups.

      This is mentioned in the wiki, pointing to the forum for solutions; I have searched high and low but haven't found any fix for this.

      Is this scheduled to be fixed? there is no workaround?

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

        +1

        1 Reply Last reply Reply Quote 0
        • T
          Trisky
          last edited by

          +2 :P

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

            +3 :o

            1 Reply Last reply Reply Quote 0
            • E
              edosselio
              last edited by

              +4 ;D

              1 Reply Last reply Reply Quote 0
              • T
                timthetortoise
                last edited by

                For pure failover, here is a workaround that restarts squid on a WAN failover event. I actually had one ISP down this morning when I got in to the office, and none of my users had any idea anything was wrong. Apparently it works great.

                1 Reply Last reply Reply Quote 0
                • G
                  georgio777
                  last edited by

                  @pukkita:

                  Hi,

                  I noticed squid only uses default gateway on pfsense 2.1.x multi-wan setups.

                  This is mentioned in the wiki, pointing to the forum for solutions; I have searched high and low but haven't found any fix for this.

                  Is this scheduled to be fixed? there is no workaround?

                  Although it is not scheduled to be fixed, it has already been proposed in Redmine here: https://redmine.pfsense.org/issues/1411

                  We just need to wait until it is implemented.

                  Regarding the workarounds, the only workaround found so far is this one: https://forum.pfsense.org/index.php?topic=66822.msg374832#msg374832

                  However, you must have static WAN IPs for the gateways that you want to "load balance".

                  1 Reply Last reply Reply Quote 0
                  • R
                    rubic
                    last edited by

                    @georgio777:

                    Although it is not scheduled to be fixed, it has already been proposed in Redmine here: https://redmine.pfsense.org/issues/1411

                    Because of FreeBSD routing table realization there is no way to have pfSense 'gateway group abstraction' as default gateway. There may be only one default gateway IP in the end. So thing proposed is just another way to do 'default gateway switching'. No load balancing here.
                    There was few lines of pf.c patched code that made Sguid multi wan 'tcp_outgoing_address 127.0.0.1' working in 1.2.3. Something like:
                    if outgoing packet leaves the system on a wrong interface

                    1. undo nat
                    2. kill state
                    3. force re-routing (output on the right interface)
                      Now only 'undo nat' remain. I think the devs had a good reason to do so.  May be because the states processing slightly changed. Nobody knows but ermal
                    1 Reply Last reply Reply Quote 0
                    • E
                      Ekrem
                      last edited by

                      2.1.3 working better much…

                      1 Reply Last reply Reply Quote 0
                      • T
                        timthetortoise
                        last edited by

                        Can anyone else confirm 2.1.3 is working properly for multi-WAN/failover?

                        1 Reply Last reply Reply Quote 0
                        • G
                          georgio777
                          last edited by

                          @timthetortoise:

                          Can anyone else confirm 2.1.3 is working properly for multi-WAN/failover?

                          I tried according to the Ekrem's topic here: https://forum.pfsense.org/index.php?topic=76467.0 (is in Turkish) without any success. As my concern still no solution at 2.1.3.

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

                            Hi,  im new to PFS. If there is prolem with multiwan LB,  can i use one PFSense box for multiwan load balance and next second PFSense box for other things (like squid, snort, …)?

                            pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

                            1 Reply Last reply Reply Quote 0
                            • G
                              georgio777
                              last edited by

                              @marian78:

                              Hi,  im new to PFS. If there is prolem with multiwan LB,  can i use one PFSense box for multiwan load balance and next second PFSense box for other things (like squid, snort, …)?

                              There isn't any problem with MultiWAN Load Balancing, the only constraint mentioned in this thread is that services running in a pfSense box only route to the default gateway, being unable to load balance, however outside the box, such LAN devices, it is working fine.

                              Regarding using a second pfSense Box to run services while the first box load balancing, it is possible and a good solution.

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

                                ok, some time is gone, i read many posts, but i cant find, if it still not work. Can you direct me to solution, if there any (pfsense v2.1.5 i386 + squid3-dev + qlproxy + snort)? Thx

                                pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

                                1 Reply Last reply Reply Quote 0
                                • E
                                  edosselio
                                  last edited by

                                  This seems to work with the last 2.2 snapshot.  :) :)

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    ffp
                                    last edited by

                                    hi guys
                                    I have pfsense 2.1.5 + load balance with 2 wans fixed ip + squid (not working correct)

                                    I tried everything I found on this forum, but no success!

                                    Curiosity … the closest I got was disabling the firewall rules loadbalance and yet balanciamento in fail over worked.

                                    Much need of a solution.
                                    :-\  :(

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      daniel.cabral
                                      last edited by

                                      Hey man! Can you explain better the procedure on pf 2.2? I'm exausted all possibilities with 2.1.3 and 2.1.5 and go back to 2.0.x is not an option atm.
                                      Failover works, but LB not. Without squid, it works like a charm.

                                      Beta versions on productions machines always are a risk to us, but if someone can say it's working… :P

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

                                        not working for me either, searching for a solution!

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          enphor
                                          last edited by

                                          I'm a new pfsense home user and have been trying to figure out a way to have squid route outbound over an Openvpn client connection to an anonymized vpn service, while the rest of port 80/443 traffic is handled over the regular default route.

                                          At first I was hopeful that I could use setfib to have squid use an alternate routing table, but pfsense wasn't compiled with the necessary options.

                                          I'm on a 2.2 snapshot running Squid 2.x. I may try the v3 dev package and give the recommendation to use the tcp_outgoing_address directive next.

                                          I suppose multiple routing tables and the option to use setfib on a per service basis for services running on pfsense would be a cool thing to do in the future. Would this and other situations where you have services running on pfsense and wish to have a custom route for each of them. I'm a noob, so there may be better ways….

                                          1 Reply Last reply Reply Quote 0
                                          • W
                                            whitexp
                                            last edited by

                                            any solution ?

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