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

    Is pfSense sensitive to dirty shutdowns/reboots?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 1.5k 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.
    • O
      oj88
      last edited by

      As the title says…

      Both my pfSense and WHS2011 boxes are protected by a single UPS (APC Back-UPS RS500) with one USB port for automated shutdown. However, it also means that it can only control one of the boxes. I chose this to be the WHS2011 server for obvious reasons (terabytes of data).

      That said, will it be too much of a big deal for pfSense when the UPS goes to sleep abruptly?

      The pfSense is not doing anything fancy other than Squid3 + SquidGuard3, DHCP, DNS, etc.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • F
        firefox
        last edited by

        Yes
        I had several times problems with squid
        Until I found that it happens because of improper shutdown of the computer
        Especially with squid

        I plugged the computer of pfsense to ups
        There is a power outage
        I turn off the computer
        And turns it back later

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          You can use the NUT package in pfSense and a NUT windows client to safely shutdown both machines. You could probably do that with the ups connected to either box physically.

          Steve

          1 Reply Last reply Reply Quote 0
          • O
            oj88
            last edited by

            Thanks for the responses.

            I'm currently looking at NUT at work but I can't make heads or tails of it. Maybe a few more hours would help me digest everything.

            1 Reply Last reply Reply Quote 0
            • B
              biggsy
              last edited by

              Have you had a look at apcupsd?

              I have it running on a Windows virtual machine.  When the on-battery level drops below 50% it tells ESXi, via ssh/putty, to first shut down all the VMs gracefully (including this apcupsd VM) and then to shut down itself (ESXi).

              I reckon you could have WHS ssh to the pfSense box and shut that down then shut itself down.

              The Windows version of apcupsd makes life a bit easier than NUT if, like me, you find Unix/Linux command line stuff can be a bit of struggle.

              1 Reply Last reply Reply Quote 0
              • O
                oj88
                last edited by

                ^ That is indeed promising. I've forgotten completely about apcupsd. I used this on a ClarkConnect box several years ago.

                Thanks for reminding me.

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

                  If you are on NanoBSD (e.g. CF) then it's not particularly sensitive.

                  A full install without any extra packages probably wouldn't have any problems either.

                  If you have packages with a lot of volatile data on the HDD such as squid, then you might have problems.

                  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.