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

    Track CARP peer and execute script on up/down status

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 345 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.
    • A
      ACiD GRiM
      last edited by

      I have two pfsense vm's that I'd like to use as failover for my single DHCP IP on WAN from my ISP. I've got CARP setup for connectivity for LAN hosts, but if one router goes down in my current configuration, the internet is lost.

      Is there a way I can detect CARP peer status either via a custom modification via CLI, or in the webui, and execute a script to set the WAN up or down based on the peer status?
      This way I can set the WAN if on both routers to the same MAC, and when the primary fails, the secondary will enable the WAN and request an IP from my ISP without having to reboot the router.

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