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

    Disable carp after upgrade

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 967 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.
    • J
      jeffreysmith
      last edited by

      I am having the issue described here http://redmine.pfsense.org/issues/2218 where carp is passed back to the master before packages are reinstalled which means I have downtime untill the packages reinstall and start. This can be a few minutes when reinstalling Squid.

      From what I understand the best way to currently stop this happening is use the shellcmd package and set the following command to run on boot.

      sysctl net.inet.carp.allow=0
      

      Does anyone know at the point this will get run, will the carp ip addresses have been already given to the master meaning I have some downtime?
      After an upgrade will I not have to wait for the shellcmd package to reinstall before it runs anything, meaning if it installs last I still have the same downtime?
      Is there a way I can set this permanently on my master which is 2.0.1 which will survive across an upgrade to 2.0.3?

      Are there any other work arounds for this problem?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The shellcmd package only manages shellcmd tags, it doesn't actually add support for running those commands, that's already baked into pfSense, we just don't offer a GUI to do it out of the box.

        There are several types of shellcmd, and you can use an earlyshellcmd to make sure something runs early in the boot process so it's set sooner.

        Or you can set that in /boot/loader.conf.local or system tunables (System > Advanced, Tunables tab) which also get set at bootup.

        Not sure how much that might help though, but it's worth trying.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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