Failover need to failback



  • i have pfsense on my comp.

    i have 2 wan=wan1 and wan2

    failover= wan1=tier1 wan2=tier2
    failover2=wan1=tier2 wan2=tier1                both on top of lan rule

    failover1 and 2 are working properly

    wan1=isp1  wan2=isp2


    wan1=bandwith for browsing  wan2=bandwith for gmaing
    both wan are up(wan1 and wan2  is up)= on my chrome browser when i visit speedtest my isp is isp1

    scenario:
    1.wan1 fails and wan2 up= on my chrome browser when i visit speedtest my isp is isp2(wan1=down wan2=gaming and browsing)
        a)wan1 goes back again = wan1 up and wan2 up= on my chrome browser when i visit speedtest my isp is still isp2
    (it seems like pfsense doesnt recognize the wan1 is up again)all my bandwith is still on wan2.(wan2=gaming and browsing)

    i want my pfsense to recognize after wan1 fails then goes back again i want my pfsense to recognize that wan1 is up and
    automatically goes back to my default setup which is (wan1=isp1 browsing  /wan2=isp2 gaming )

    not this setup after wan1 fails then goes back again (wan1=isp1 up again but pfsense not using it  wan2=isp2 browsing and gaming)

    hopefully you will understand my explanation.

    english is not my mother tongue.thanks

    i really really appreaciate help. thanks



  • I think there is an issue that pfSense does not clear states on a working WAN gateway when a higher tier WAN gateway comes up. If you leave your browser for a few minutes doing nothing, then the state for that SpeedTest should time out. Then start over again with SpeedTest and you should go to the correct WAN1.
    Try http://checkip.dyndns.org/ - for me that quickly times out and then tells me the public IP of the current WAN after failover or failback.
    I am not sure what can be done about state clearing on WAN1 up - because a lot of the states running on WAN2 might actually be states that are for gaming (i.e. are the result of the rule for failover2 gateway group), and so those states should not be cleared. In principle that requires a bit of smarts - maybe "pf" can do that automagically? - clearing all states that match a particular rule/s.



  • would carp help me with this kind of setup?

    i just saw carp on menu bar and besides it there is a word failover like this =carp(failover)

    would it clear states after the wan1 gets back after downtime.



  • thank you for replying phil

    you really help a lot thank you