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

    pfSense repeatedly rebooting at exactly 12:30

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 6 Posters 1.2k 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
      akuma1x
      last edited by

      Do you have any packages installed, filtering any traffic or creating log data from filtering, that would be filling up either your RAM or storage, and crashing your pfsense box?

      Also, what kind of hardware is this running on - DIY hardware, VM, or an official Netgate machine?

      Jeff

      1 Reply Last reply Reply Quote 0
      • T
        TBBZ8X8
        last edited by

        I have iperf, openvpn-client-export, and suricata.

        I am not using suricata right now and I am not creating logs.

        Current storage utilization is 45% of 120GB and ram utilization is hovering right around 6%

        Its an HP 1U server I re-purposed, Dual Xeon X5550, 24gb ram, 120gb ssd

        Thank you for the reply Jeff I really appreciate it!

        1 Reply Last reply Reply Quote 0
        • A
          akuma1x
          last edited by

          How long has this hardware been running? The fans spinning up suddenly before crashing might be a heat problem with your hardware, but it's a tough issue to diagnose over a forum post. Might be time to power it down, pop the cover and check for dust.

          Also, most crashes with pfsense installations are either hardware related - bad RAM, failing power supplies or hard drives, other stuff, or the other reason is because of FreeBSD kernel panics.

          https://docs.netgate.com/pfsense/en/latest/hardware/unexpected-reboot-troubleshooting.html

          Jeff

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by bmeeks

            Do you by chance have a UPS associated with this server connected with a USB cable? If so, it's possible the UPS is trying a self-test once per day and experiencing a battery problem. That could falsely trigger the UPS monitoring daemon (if you have one installed) to reboot the machine.

            I would look in the pfSense system log to see what messages, if any, are being logged around that time period. The very first place you should look when any kind of strange behavior occurs is the system log to see what may be getting logged that could be hints as to what the problem might be.

            1 Reply Last reply Reply Quote 0
            • T
              TBBZ8X8
              last edited by

              Just popped the cover off. It's basically dust free in there. I've been running it for about a year.

              I do have it plugged into a UPS but I have another server managing it (usb is connected to the other server)

              Took a look at the logs. There are too many of them for me to see what may have happened at 12:30. However everything that comes after that seems to indicate a restart just occurred. I'm increasing the maximum log entries and ill report back after 12:30

              Thanks Guys!

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                Have you looked at your crontab? What runs at 12:30?

                T 1 Reply Last reply Reply Quote 0
                • T
                  TBBZ8X8 @A Former User
                  last edited by

                  @jwj Really stupid question but how would I do that? Is that something I can access through the gui or should I ssh?

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • RonpfSR
                    RonpfS
                    last edited by

                    Install the Cron package.

                    2.4.5-RELEASE-p1 (amd64)
                    Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                    Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      Sorry for the delay responding. There is a cron package you can install. That's the easiest way.

                      From mine I think it's the update URL tables job that is biting you.

                      Screen Shot 2020-04-08 at 22.13.09.png

                      1 Reply Last reply Reply Quote 0
                      • T
                        TBBZ8X8
                        last edited by

                        @RonpfS Excellent thank you. I think I found the issue. it was running this

                        /usr/bin/nice -n20 /usr/local/bin/php-cgi -f
                        /usr/local/pkg/suricata/suricata_check_for_rule_updates.php

                        at exactly 12:30 every day

                        And that you to everyone else that helped! I really appreciate it!

                        bmeeksB 1 Reply Last reply Reply Quote 0
                        • bmeeksB
                          bmeeks @TBBZ8X8
                          last edited by bmeeks

                          @TBBZ8X8 said in pfSense repeatedly rebooting at exactly 12:30:

                          @RonpfS Excellent thank you. I think I found the issue. it was running this

                          /usr/bin/nice -n20 /usr/local/bin/php-cgi -f
                          /usr/local/pkg/suricata/suricata_check_for_rule_updates.php

                          at exactly 12:30 every day

                          And that you to everyone else that helped! I really appreciate it!

                          That job should not cause a reboot. It will restart Suricata at the end of the task, and if you have Suricata running with Inline IPS Mode enabled (which uses the kernel netmap device), that will cause the physical NIC interface to be disabled and then re-enabled during the restart. But it should not cause a physical reboot of the box itself.

                          How do you have Suricata configured? Is it using Inline IPS Mode? If so, you can try enabling "Live Rule Swap" on the GLOBAL SETTINGS tab. That will not cause the Suricata daemon to stop and restart itself. Instead it will load new rules into memory and then swap over to using them. That will then prevent the netmap device from restarting the physical NIC interface. The downside of this option is that for a small interval Suricata will consume nearly twice normal memory as it will keep two copies of your enabled rules in memory until it can get pointers updated to use the new rules so the old ones can be deleted from memory.

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            TBBZ8X8 @bmeeks
                            last edited by

                            @bmeeks Thanks for the reply!

                            I had switched the time of the job to when I knew no one was on the network but turns out it resets that when suricata updates. So i changed it in the suricata settings and enabled live rule swap like you suggested.

                            Finger crossed it stays working this time!

                            Thanks again!

                            bmeeksB 1 Reply Last reply Reply Quote 0
                            • bmeeksB
                              bmeeks @TBBZ8X8
                              last edited by bmeeks

                              @TBBZ8X8 said in pfSense repeatedly rebooting at exactly 12:30:

                              @bmeeks Thanks for the reply!

                              I had switched the time of the job to when I knew no one was on the network but turns out it resets that when suricata updates. So i changed it in the suricata settings and enabled live rule swap like you suggested.

                              Finger crossed it stays working this time!

                              Thanks again!

                              You must change the update job time on the GLOBAL SETTINGS tab. Suricata rewrites its configuration, including things like the cron task start time, each time a change is made and saved in the GUI or the "resync packages" command is called by pfSense itself.

                              As mentioned in my earlier post (after coming back and fixing some terrible typos I made ... ☹), Suricata updating should never reboot the entire firewall. If that happens, something is really bad wrong. However, when using the netmap device in Inline IPS Mode, the netmap device itself will restart the NIC interface when Suricata is stopped and then restarted during the rules update. So swapping over to the Live Swap option will prevent the physical stop/start cycle of the Suricata daemon and thus also the cycling of the NIC interface by netmap.

                              1 Reply Last reply Reply Quote 0
                              • DerelictD
                                Derelict LAYER 8 Netgate
                                last edited by

                                Is it really rebooting? What's the system uptime?

                                Chattanooga, Tennessee, USA
                                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                Do Not Chat For Help! NO_WAN_EGRESS(TM)

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