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

    Scheduled rules not working according to schedule

    Scheduled Pinned Locked Moved Firewalling
    17 Posts 6 Posters 8.8k 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.
    • H Offline
      heiko
      last edited by

      Hello,
      i have re-tested you configuration. The Schedules works here….

      Do you have all cron-items ? Please Check your config.xml for these section...

      <cron><minute>0</minute>
      <hour></hour>
      <mday>
      </mday>
      <month></month>
      <wday>
      </wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 newsyslog
      <minute>1,31</minute>
      <hour>0-5</hour>
      <mday></mday>
      <month>
      </month>
      <wday></wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 adjkerntz -a
      <minute>1</minute>
      <hour>
      </hour>
      <mday>1</mday>
      <month></month>
      <wday>
      </wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 /etc/rc.update_bogons.sh
      <minute>/60</minute>
      <hour>
      </hour>
      <mday></mday>
      <month>
      </month>
      <wday></wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
      <minute>1</minute>
      <hour>1</hour>
      <mday>
      </mday>
      <month></month>
      <wday>
      </wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 /etc/rc.dyndns.update
      <minute>/60</minute>
      <hour>
      </hour>
      <mday></mday>
      <month>
      </month>
      <wday></wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 virusprot
      <minute>
      /60</minute>
      <hour></hour>
      <mday>
      </mday>
      <month></month>
      <wday>
      </wday>
      <who>root</who>
      <command></command>/usr/bin/nice -n20 /usr/local/sbin/expiretable -t 1800 snort2c
      <minute>/5</minute>
      <hour>
      </hour>
      <mday></mday>
      <month>
      </month>
      <wday></wday>
      <who>root</who>
      <command></command>/usr/local/bin/checkreload.sh
      <minute>0,15,30,45</minute>
      <hour>
      </hour>
      <mday></mday>
      <month>
      </month>
      <wday></wday>
      <who>root</who>
      <command></command>/etc/rc.filter_configure_sync
      <minute>
      /5</minute>
      <hour></hour>
      <mday>
      </mday>
      <month></month>
      <wday>
      </wday>
      <who>root</who>
      <command></command>/etc/ping_hosts.sh</cron>

      1 Reply Last reply Reply Quote 0
      • E Offline
        eskild
        last edited by

        Hi,
        it seems like my config is slightly different than yours. This is the last lines of my config where the schedule part is:

        <description>Default OVPN server</description>

        <cron><schedules><schedule><name>Buddy</name>
        <descr>Block schedule</descr>
        <timerange><position>1,2,3,4,5,6,7</position>
        <hour>1:00-6:00</hour>
        <rangedescr></rangedescr></timerange></schedule>
        <schedule><name>Test</name>
        <descr><timerange><position>1,2,3,4,5,6,7</position>
        <hour>12:00-23:45</hour>
        <rangedescr></rangedescr></timerange></descr></schedule></schedules>
        <rrd><enable></enable></rrd></cron>

        1 Reply Last reply Reply Quote 0
        • H Offline
          heiko
          last edited by

          Hello,
          you must have the cron items which i posted!

          1 Reply Last reply Reply Quote 0
          • E Offline
            eskild
            last edited by

            This is the only cron item that i have:
            <cron>I have searched through the entire config.</cron>

            1 Reply Last reply Reply Quote 0
            • H Offline
              heiko
              last edited by

              Ok, i think that´s the problem, please make a backup of your config.xml and paste the cron-item section which i posted into your config.xml.
              Make a restore and test it again…
              Greetings
              heiko

              1 Reply Last reply Reply Quote 0
              • E Offline
                eskild
                last edited by

                Thanks, those changes did the job, and scheduling is working perfect.

                I have no idea why the cron part was missing, but i have used pfSense since it was in alfa stage and have not installed and configured the system from scratch since the first install.

                Thanks again.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  heiko
                  last edited by

                  That´s fine, have fun…..

                  Up to now, i cannot find the bug now and then an update killed the crons...., so i cannot duplicate this behaviour.

                  Greetings
                  Heiko

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DanielSHaischt
                    last edited by

                    I tried to upgrade from 1.2 BETA3 to RC2 and the cron items did not disappear. Tho I did not setup any schedules. Means I don't know whether this behavior only occurs if upgrading and having setup schedules.

                    Regards
                    Daniel S. Haischt

                    Mit freundlichen Gruessen / With kind regards
                    DAn.I.El S. Haischt

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mastrboy
                      last edited by

                      my schedules are not working properly either, i am also missing that cron info from my config file, and /etc/crontab is empty:

                      SHELL=/bin/sh
                      PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
                      HOME=/var/log
                      #minute hour    mday    month   wday    who      command
                      #
                      
                      

                      I am currently running 1.2-RC4 upgraded from a fresh install of 1.2-RC3

                      Anyone else still got this issue?

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sullrich
                        last edited by

                        You have serious other issues then.  /etc/crontab has all kinds of stuff setup by pfSense well beyond schedules no matter what.

                        I would reinstall.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mastrboy
                          last edited by

                          i did a clean install of 1.2-RC4 and restored my config, here is what happened.

                          The /etc/crontab was emptied because my backed up config did not contain <cron>entries.

                          So i had to to a reinstall in a vmware extract the cron entries from the xml file and add them to my current config and then restore the configuration again..

                          Is this correct behavior by PFsense? to empty the /etc/crontab if you do not have cron entries in your config file?</cron>

                          1 Reply Last reply Reply Quote 0
                          • H Offline
                            heiko
                            last edited by

                            No, you need cron items in your config. Please download and test it with rc5, i cannot duplicate this problem

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