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

    Manually created Cron jobs relating to snort are deleted during a reboot

    Scheduled Pinned Locked Moved IDS/IPS
    5 Posts 2 Posters 718 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.
    • P
      py
      last edited by

      I have 2 manually created cron jobs that get deleted during a reboot of pfsense. Is there a way to make these persistent across reboots? The jobs are:
      /sbin/pfctl -T show -t snort2c > /usr/local/etc/snort2c.bak
      (set to run every 5 minutes)
      and
      /sbin/pfctl -t snort2c -T replace -f /usr/local/etc/snort2c.bak
      (set to run @reboot)

      I realize this question may be more appropriate in another category but i thought I'd start here.

      Thanks,

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @py
        last edited by

        @py
        Did you use the cron package?
        If not, use it.

        P 1 Reply Last reply Reply Quote 0
        • P
          py @viragomann
          last edited by

          @viragomann Yes, I only use the cron package.

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @py
            last edited by

            @py
            Jobs created with the cron package should basically survive a reboot.

            Does this also happen to other manually created jobs?
            Try a very simple like "echo hello".

            If so maybe there is something wrong with the package? Try to reinstall it.

            P 1 Reply Last reply Reply Quote 0
            • P
              py @viragomann
              last edited by

              @viragomann This has been resolved. I was switching from snort to suricata and I had both packages installed temporarily. Once snort was completely removed it worked as expected.

              Thank You,

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