Cronjob for snort?
-
Is there a way to create a cronjob that can start and stop snort at a given time?
I have been able to do this under command line scripting but the service tab shows the snort service as not running. I want to be able to see when the snort service is running and when it stop.Thank You!
-
Bump… Any body?
Thank You!
-
WoW nobody?
-
You have two choices use Cron or a package I created that runs PHP as a service the package is called PHPService allowing you to run any php code as a service. Or there is also a there is a cron wrapper package to make cron easier to use.
Snort startup script should be found in the /usr/local/etc/rc.d/ directory most likely called snort.sh you should be able to use that to start and stop snort. You could then use PHP to determine the time to start/stop or use the Cron package to do the same.
-
mcrane Thanks!
-
mcrane,
snort.sh seems to not start the service… I run snort.sh and it dies right after 1min or so....
Any ideas?
TIA!
-
Try it this way.
To start snort:
/usr/local/etc/rc.d/snort.sh startTo stop snort:
/usr/local/etc/rc.d/snort.sh stop -
Thats how I have it but it fails to start snort.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy