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 7 Watching
    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.
    • T Offline
      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
      • ? Offline
        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 Offline
          TBBZ8X8 @Guest
          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 Offline
            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
            • ? Offline
              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 Offline
                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 Offline
                  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 Offline
                    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 Offline
                      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 Offline
                        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.