Navigation

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

    Cronjob for snort?

    pfSense Packages
    2
    8
    2272
    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.
    • S
      serialdie last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • S
        serialdie last edited by

        Bump… Any body?

        Thank You!

        1 Reply Last reply Reply Quote 0
        • S
          serialdie last edited by

          WoW nobody?

          1 Reply Last reply Reply Quote 0
          • C
            cybrsrfr last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • S
              serialdie last edited by

              mcrane Thanks!

              1 Reply Last reply Reply Quote 0
              • S
                serialdie last edited by

                mcrane,

                snort.sh seems to not start the service… I run snort.sh and it dies right after 1min or so....

                Any ideas?

                TIA!

                1 Reply Last reply Reply Quote 0
                • C
                  cybrsrfr last edited by

                  Try it this way.

                  To start snort:
                  /usr/local/etc/rc.d/snort.sh start

                  To stop snort:
                  /usr/local/etc/rc.d/snort.sh stop

                  1 Reply Last reply Reply Quote 0
                  • S
                    serialdie last edited by

                    Thats how I have it but it fails to start snort.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Products

                    • Platform Overview
                    • TNSR
                    • pfSense Plus
                    • Appliances

                    Services

                    • Training
                    • Professional Services

                    Support

                    • Subscription Plans
                    • Contact Support
                    • Product Lifecycle
                    • Documentation

                    News

                    • Media Coverage
                    • Press
                    • Events

                    Resources

                    • Blog
                    • FAQ
                    • Find a Partner
                    • Resource Library
                    • Security Information

                    Company

                    • About Us
                    • Careers
                    • Partners
                    • Contact Us
                    • Legal
                    Our Mission

                    We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                    Subscribe to our Newsletter

                    Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                    © 2021 Rubicon Communications, LLC | Privacy Policy