Automatic CARP/Failover check



  • Hi,
    after upgrading our pfSense-cluster recently I wondered whether it would be a nice addition to have an automated check of the failover functionality. I thought of a possibility to setup a scheduled routine to failover to the second cluster member, as if I set the appliance into persistent CARP maintenance mode and return back to the primary member after a certain amount of time (maybe after 60/120 minutes). By scheduling this it cannot be forgotten and you'd always know if CARP is working fine in case the primary appliance fails.

    What do you think, could this be implemented and are other interested in smth like this aswell?

    Thanks

    Regards
    Marco


  • LAYER 8 Netgate

    If that's what you want you could make a small cron job that runs something like this on the primary:

    /usr/local/sbin/pfSsh.php playback enablecarpmaint
    sleep 3600
    /usr/local/sbin/pfSsh.php playback disablecarpmaint



  • Hi,
    thanks for the commands, I'll have a look into this later this week.

    Regards
    Marco


Log in to reply