Manually created Cron jobs relating to snort are deleted during a reboot
-
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,
-
@py
Did you use the cron package?
If not, use it. -
@viragomann Yes, I only use the cron package.
-
@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.
-
@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,