• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • E
    eskild
    last edited by Aug 13, 2007, 5:18 PM

    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
      heiko
      last edited by Aug 13, 2007, 5:34 PM

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

      1 Reply Last reply Reply Quote 0
      • E
        eskild
        last edited by Aug 13, 2007, 5:42 PM

        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
          heiko
          last edited by Aug 13, 2007, 5:52 PM

          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
            eskild
            last edited by Aug 13, 2007, 6:55 PM

            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
              heiko
              last edited by Aug 13, 2007, 7:06 PM

              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
                DanielSHaischt
                last edited by Aug 13, 2007, 8:28 PM

                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
                  mastrboy
                  last edited by Jan 23, 2008, 11:33 PM

                  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
                    sullrich
                    last edited by Jan 23, 2008, 11:43 PM

                    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
                      mastrboy
                      last edited by Feb 5, 2008, 11:41 PM

                      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
                        heiko
                        last edited by Feb 12, 2008, 6:19 PM

                        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.
                          [[user:consent.lead]]
                          [[user:consent.not_received]]