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

    Automatic reboot every day 2am

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 1.9k 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.
    • B Offline
      billyjp
      last edited by

      Hello! I search for a solution for a automatic reboot my pfsense every day at 2am.
      I searched the internet but i didnt find an answer. I also searched for a plugin but there isnt.

      Does anyone have a sulution for this?

      PS: I need this because my OPENVPNServer doese a wrong routing after about 3 days running.

      1 Reply Last reply Reply Quote 0
      • awebsterA Offline
        awebster
        last edited by

        Install Cron package, then add a command to reboot it at 2am.

        –A.

        –A.

        1 Reply Last reply Reply Quote 0
        • B Offline
          billyjp
          last edited by

          Thank you very much for this tip.
          I looked to the website "find more infos…" But i can´t find the correct command for a reboot.

          Can you please tell me what i have to type into the command field?

          Just REBOOT?

          THX alot

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

            I'd probably use something like /sbin/shutdown -r now

            But I'd try to isolate the problem with OpenVPN first.

            Those who know more about the php scripts might be able to tell you how to just restart the OpenVPN instance in question.

            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
            • C Offline
              cmb
              last edited by

              It'd be better to fix the actual problem rather than trying to band aid it. What Derelict and awebster posted will do what you're looking for, but I'd recommend starting a thread about the routing issue you're having and fixing the actual root cause.

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