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

MULTI WAN Failback not working

Scheduled Pinned Locked Moved Routing and Multi WAN
5 Posts 3 Posters 2.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
    steelrobo
    last edited by Sep 2, 2012, 8:21 PM

    I have just setup multiwan and I can failover from WAN1 to WAN2 but traffic never fails back after WAN1 comes online. Please advice. Using pfsense2.0.1

    1 Reply Last reply Reply Quote 0
    • S
      SeventhSon
      last edited by Sep 4, 2012, 5:36 PM

      Please give us something to work with.

      Topology, IP subnets, detection IPs, system logs from when the fail over happens and the WAN1 comes back would be a start

      1 Reply Last reply Reply Quote 0
      • S
        steelrobo
        last edited by Sep 6, 2012, 6:04 AM

        Multi WAN works in the sense that any new sessions made is being redirected to WAN1 (higher priority) but I would like "active" sessions which are on WAN2 (lower priority) to be failed back to WAN1 after it comes online. Any thoughts ?

        BTW I have written a basic shell script to do this job but not sure how to put it on nanobsd.


        #!/bin/sh

        #Script to FAILBACK traffic once WAN1 comes online

        echo 0 > /var/STAT2

        while :
        do

        #Check for WAN1 status

        cat /var/log/system.log | grep apinger | grep "GW_WAN*" | grep down | tail -1 | grep canceled
        STAT1=echo $?
        echo $STAT1

        cat /var/log/system.log | grep apinger | grep "GW_WAN*" | grep down | tail -1 | grep -v canceled
        STAT3=echo $?
        echo $STAT3
        sleep 5

        if [ $STAT3 != 0 ]; then

        if [ $STAT1 = cat /var/STAT2 ]; then

        echo NO CHANGE ON WAN1

        else

        echo FAILBACK to WAN1

        ifconfig em2 down
                sleep 5
                ifconfig em2 up

        fi

        else
        fi

        echo $STAT1 > /var/STAT2

        sleep 5

        done


        1 Reply Last reply Reply Quote 0
        • S
          SeventhSon
          last edited by Sep 8, 2012, 1:57 PM

          Under System: Advanced: Miscellaneous there is the option for clearing states for a WAN that goes down, seems like you need a similar option when it "fails back".

          1 Reply Last reply Reply Quote 0
          • D
            dhatz
            last edited by Sep 8, 2012, 5:21 PM

            Check a related discussion (and redmine link) at http://forum.pfsense.org/index.php/topic,53175.0.html

            Currently pfSense won't take the initiative to kill open states on WAN-fallback (understandable, since there are scenarios where it might be inappropriate), when WAN-main comes back online.

            Are you using "sticky" with configurable timer?

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