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

    1LAN/2WAN: Failover won't work if WAN is down, OPT1 is up

    Scheduled Pinned Locked Moved Routing and Multi WAN
    22 Posts 7 Posters 8.3k 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.
    • S
      stramato
      last edited by

      I have a very standard setup.

      1 LAN 192.168.1.1
      1 WAN Static IP DSL
      1 OPT1 Static IP DSL

      I have 3 Pools.

      Load Balancer OK
      If OPT1 fails use WAN OK
      If WAN fails use OPT1 NOT WORKING

      When I boot pfsense without WAN, it uses OPT1 fine.

      When I boot pfsense with WAN+OPT1 works fine.

      When I unplug WAN, status message says "down" but wont use OPT1, unless I reboot pfsense

      I think I have the pools setup ok and firewall rules setup ok. I followed all the instructions from pfsense website.

      Help!

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

        Try using google dns or opendns as your monitor ip and dns servers

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • GruensFroeschliG
          GruensFroeschli
          last edited by

          Did you also make sure that you have a static route in place for at least one of your DNS servers pointing to the OPT gateway?

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • S
            stramato
            last edited by

            @GruensFroeschli:

            Did you also make sure that you have a static route in place for at least one of your DNS servers pointing to the OPT gateway?

            ah, setting up a static route, that I have not done. how do i go about this one?

            1 Reply Last reply Reply Quote 0
            • S
              stramato
              last edited by

              @Perry:

              Try using google dns or opendns as your monitor ip and dns servers

              i will try this. currently i have WAN Gateway and OPT1 Gateway as my monitor IP's.

              1 Reply Last reply Reply Quote 0
              • GruensFroeschliG
                GruensFroeschli
                last edited by

                You can add static routes under "advanced –> static routes"

                However, if you use the DNS servers directly as monitor-IPs like perry suggested, you dont need that anymore because behind the scene automatically a static route is added for the monitor IPs.

                We do what we must, because we can.

                Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                1 Reply Last reply Reply Quote 0
                • S
                  stramato
                  last edited by

                  Im going to try the setup again this afternoon.

                  So basically, i'll just change the monitor IP of WAN and OPT1 from their respective gateway IP's to Google DNS, which is 8.8.8.8

                  gonna post the results later. thanks for the help!

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

                    Hi,

                    I have the same issue as well and I tried to create static route and it does not work. The thing is that when both WAN are up, when I did a "ping" under Diagnostic>Ping I was able to ping the internet for both WAN (Wan1 and Wan2) but when I disconnect WAN1, it won't ping the internet even using Wan2 interface, which is kind of odd.

                    I hope stramato will resolve and post the solution here so other newbie like me will able to get it done.

                    1 Reply Last reply Reply Quote 0
                    • GruensFroeschliG
                      GruensFroeschli
                      last edited by

                      Did you read the note on this page that the ping utility within the webinterface DOES NOT WORK WITH MULTIWAN?

                      You need to test from a client behind the pfSense since the pfSense itself cannot make use of the loadbalancer/failover.

                      We do what we must, because we can.

                      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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

                        Thank you GruensFroeschli, sorry I did not see the note. I actually get this in the pfsense log about static route "kernel: arpresolve: can't allocate route" follow with the "address is not on the local network". I am not sure if I am doing the right thing for static route.

                        Static_Route.JPG
                        Static_Route.JPG_thumb

                        1 Reply Last reply Reply Quote 0
                        • S
                          stramato
                          last edited by

                          still wont work :(

                          Load Balance OK
                          When OPT1 Fails OK
                          When WAN Fails NO INTERNET

                          Here's my latest config:

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

                            In pic4 untick allow dns servers list…

                            in pic2 I would change the order of the monitor ip's (Servers/Gateways) as this

                            in pic1 to be sure, you do know that the only active rule is the opt1_failto_wan?

                            /Perry
                            doc.pfsense.org

                            1 Reply Last reply Reply Quote 0
                            • S
                              stramato
                              last edited by

                              @Perry:

                              in pic1 to be sure, you do know that the only active rule is the opt1_failto_wan?

                              Hi Perry,

                              You mean that only Opt1_failto_Wan is the only rule being triggered by my current config?

                              Should I just delete the firewall rules?

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

                                You mean that only Opt1_failto_Wan is the only rule being triggered by my current config?

                                correct

                                Should I just delete the firewall rules?

                                That I can't say, it's your setup :)

                                /Perry
                                doc.pfsense.org

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stramato
                                  last edited by

                                  @Perry:

                                  You mean that only Opt1_failto_Wan is the only rule being triggered by my current config?

                                  correct

                                  Should I just delete the firewall rules?

                                  That I can't say, it's your setup :)

                                  Ok I figured my firewall rules are illogical. I deleted everything in LAN firewall except the one that uses the Load Balance as gateway.

                                  Now it's working! (load balance and failover)

                                  I can now proceed further.

                                  One thing I noticed though, the Failover's reaction time is rather slow?

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

                                    Thanks guys, it works for me as well although I did not setup load balance just failover, so I remove the load balance and retain the two failover setting. However I having problem when I use squid as transparent proxy once the WAN1 fails and the WAN2 take over it won't connect to any website although it connect when I remove the transparent proxy setting.

                                    Is there any additional setup needed?

                                    Thanks in advance.

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

                                      I've read that Squid is not working in Mulit-WAN failover, is there other option?

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        lucho115
                                        last edited by

                                        new info about this problem? anybody could make work failover + squid?
                                        thks

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          stramato
                                          last edited by

                                          @lucho115:

                                          new info about this problem? anybody could make work failover + squid?
                                          thks

                                          I've decided to have 2 pfSense machines to simplify configuration:

                                          1 pfSense machine to run Multi-WAN Load Balancer

                                          1 pfsense machine to run Squid and Traffic Shaper

                                          [LAN] –- [pfSense Squid+Traffic Shaper] –- [pfSense Load Balancer] === internet

                                          This way, i'll only have 1 LAN 1 WAN for the squid/traffic shaper pfsense box, which simplifies the config.

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            Guest
                                            last edited by

                                            If its any consolation, this will be unnecessary in 2.0, but for the time being your solution is valid.

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