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

    Snort stops working after snort update (newest 2.0 RELEASE)

    Scheduled Pinned Locked Moved pfSense Packages
    113 Posts 25 Posters 64.1k 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.
    • C
      Cino
      last edited by

      @ermal:

      Well i fixed the FreeBSD package used on pfSense to compile snort with the proper flags to restart on reload error rather than exit since the present binary will just plain exit on reload errors.

      I honestly do not think that it will really work properly reloading not as root user so i am not reverting that change.

      Tomorrow the binary should be updated and the fixes done today should fix the report.

      @ermal

      I believe the snort_interfaces.php needs to be updated to correctly display snort status. With the changes you just made, snort stated but snort_interfaces.php page states that its not started. The services page, does show that snort is running and i see the process running in the background.

      Also, snort isn't auto-starting anymore upon reboot. nothing in my log or on the console

      Unless the new binary is needed for the changes you made to resolve the 2 issues i noticed.

      As a side-note… With changes made to the 2.1 code to use pbi I notice that that my box didn't download snort binaries this afternoon. Example: I uninstalled snort, noticed that snort-2.8.6.1 and snort-2.9.0.5 where still listed under pkg_info. I manually deleted them using pkg_delete.. Rebooted the box, installed snort and did a rule update. Looked at my log and only had 4 snort entries. I looked to see if the binaries where under /usr/local/bin... Nothing, so i added snort package via pkg_add -r http://files.pfsense.org/packages/8/All/snort-2.9.0.5.tbz and then was able to get snort to start...

      just wondering if I should do the same tomorrow to get the new binaries.

      As always, thanks for all your support on the snort package

      Edit:

      When i run  /usr/local/etc/rc.d/snort.sh restart
      i'm seeing these errors:

      
      ls: /tmp/snort.sh.pid: No such file or directory
      rm: /tmp/snort.sh.pid: No such file or directory
      rm: /var/run/snort*: No such file or directory
      ls: /tmp/snort.sh.pid: No such file or directory
      rm: /var/run/snort_39737_em3.pid: No such file or directory
      
      

      When i run  /usr/local/etc/rc.d/snort.sh start
      just:

      
      ls: /tmp/snort.sh.pid: No such file or directory
      
      

      i thought the pid and such were stored at '/var/log/snort/run'?

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

        Those errors are harmless.
        That code is not very trustworthy but no time to make it proper use pidfiles.

        The chnages i made has nothing in relation to what you report on snort_interfaces.php.

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

          i'll have to do some more testing and look over the code because i can't seem to get snort_interfaces.php to show that snort is running..

          like i said, i can't get snort to run when type "/usr/local/etc/rc.d/snort.sh" start but i able to get it to start running "/usr/local/etc/rc.d/snort.sh start_real"
          Would this be the reason why it wont auto-start on reboot?

          1 Reply Last reply Reply Quote 0
          • E
            eri--
            last edited by

            Try again reinstalling.

            Seems the code generated for the snort.sh was as always full of surprises :)

            1 Reply Last reply Reply Quote 0
            • RonpfSR
              RonpfS
              last edited by

              Removed snort, installed snort
              this vanished

              		 <minute>3</minute>
              			<hour>0</hour>
              			<mday>*/1</mday>
              			<month>*</month>
              			<wday>*</wday>
              			<who>root</who>
              			<command></command>/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/snort/snort_check_for_rule_updates.php >> /tmp/snort_update.log 
              		 <minute>*/15</minute>
              			<hour>*</hour>
              			<mday>*</mday>
              			<month>*</month>
              			<wday>*</wday>
              			<who>root</who>
              			<command></command>/usr/bin/nice -n20 /usr/local/sbin/expiretable -t 10800 snort2c 
              

              I save in the Global settings it showed up again like this

              		 <minute>*/15</minute>
              			<hour>*</hour>
              			<mday>*</mday>
              			<month>*</month>
              			<wday>*</wday>
              			<who>root</who>
              			<command></command>/usr/bin/nice -n20 /usr/local/sbin/expiretable -t 10800 snort2c 
              		 <minute>3</minute>
              			<hour>0</hour>
              			<mday>*/1</mday>
              			<month>*</month>
              			<wday>*</wday>
              			<who>root</who>
              			<command></command>/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/snort/snort_check_for_rule_updates.php >> /tmp/snort_update.log 
              

              I ran Update and snort started, trigger Alerts and Blocks IP ;o)  ;D
              maybe if I ran Update first, the crontab entry might have reappeared.

              However, the Snort Interface shows a GREEN arrow, RED Wan,
              the If settings show a start button.
              But snort is running as root in System Activity
              Snort is showed running under Services. Stopping snort under Services requires a refresh to update the status to not running
              You also have to refresh Dashboard to see the updated snort status. Starting snort in  Dashboard failed

              I started Snort under Services: Snort work ok.

              During all that time, the Snort Interface ALLWAYS shows a GREEN arrow, RED Wan

              The midnight update went fine and snort reloaded without problem.  ::)

              2.4.5-RELEASE-p1 (amd64)
              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

                that seem to do it! thanks again.

                I trying to figure out why i'm not seeing it up. You didn't make any changes to the page(and snort_interfaces_edit.php) but they are not reporting status correctly.

                I'm wondering because root is running snort is it failing the few checks i see not idk.

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

                  @RonpfS  Every time you reinstall snort, save the global settings page for it to re-create the cron job.. This has been normal practice since snort was fixed a few months back.

                  I'm having the same issue with the snort_interface.php showing the status of snort.

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

                    Any body seen that snort is using more mem than before?

                    Using ac-std with just 3 categories enable…. my mem goes to 58% where before it was only like 28% any ideas?

                    1 Reply Last reply Reply Quote 0
                    • B
                      bdwyer
                      last edited by

                      I too now have the issue with Snort not being seen as running, although it is.

                      CCNP, MCITP

                      Intel Atom N550 - 2gb DDR3
                      Jetway NC9C-550-LF
                      Antec ISK 300-150
                      HP ProCurve 1810-24
                      Cisco 1841 & 2821, Cisco 3550 x3

                      1 Reply Last reply Reply Quote 0
                      • RonpfSR
                        RonpfS
                        last edited by

                        I just changed the WAN ip and snort failed with

                        2011-11-10 22:50:24	Daemon.Error	x.x.x.x	snort[41456]: FATAL ERROR: /usr/local/etc/snort/snort_18203_pppoe0/snort.conf(356) Invalid configuration line: s
                        2011-11-10 22:50:24	Daemon.Info	x.x.x.x	SnortStartup[6772]: Snort HARD START For 18203_pppoe0...
                        

                        Start manual is ok …

                        2.4.5-RELEASE-p1 (amd64)
                        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                        1 Reply Last reply Reply Quote 0
                        • E
                          eri--
                          last edited by

                          Fixed the display on the GUI and snort reload on ip change.

                          Now who will send me beer?!

                          Of course you need to reinstall.

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

                            Notice work I me an other user have found an issue with the interface.php page http://forum.pfsense.org/index.php/topic,42955.msg221944.html#msg221944

                            When i try to start from the interface page, i get the below error, the file location is doubled

                            snort[4101]: FATAL ERROR: Unable to open rules file "/usr/local/etc/snort/snort_39737_em3//usr/local/etc/snort/snort_39737_em3/rules/emerging-attack_response.rules": No such file or directory.

                            if i reboot the box or do a manually rule update, snort starts fine

                            Also, did the new binaries compile over night? I look under http://files.pfsense.org/packages/8/All/ and the date stamp didn't change. As i said in a previous post, my box isn't downloading binaries anymore and i think it has to do with the future pbi that is coming when 2.1 is on freebsd 9.

                            p.s you like pale ale's

                            1 Reply Last reply Reply Quote 0
                            • E
                              eri--
                              last edited by

                              Post your snort.conf since nothing has changed there!
                              Apart that PBI installs iirc snort 2.9.1

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

                                @ermal:

                                Post your snort.conf since nothing has changed there!
                                Apart that PBI installs iirc snort 2.9.1

                                Dont know if this helps: When I stop snort via the interface page, it deletes /usr/local/etc/snort/snort_39737_em3 folder. When i try to start it, it doesn't create it.. So thats why snort wont start. BUT if I do a manually update of the rules, it creates the folder and snort is able to start again

                                1 Reply Last reply Reply Quote 0
                                • E
                                  eri--
                                  last edited by

                                  Fixed.
                                  Try after 15 minutes.

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

                                    @ermal:

                                    Fixed.
                                    Try after 15 minutes.

                                    looking good man! i'll do some more testing later today. also, since i never tested this for you before; barnyard2 is reporting data to my windows mysql server. I did have to manually copy the barnyard2 file from file.pfsense.org to get it on my box but i don't know if that's because its not in the package install or the issue I'm having with my box not pulling down binaries.

                                    I don't think the new snort binary has been complied yet… I dont them on files.pfsense.org... also for the pbi, they look to be 2.9.1 but i'll have to wait for a freebsd9 snapshot before i can test

                                    1 Reply Last reply Reply Quote 0
                                    • RonpfSR
                                      RonpfS
                                      last edited by

                                      Removed and installed Services: Snort 2.9.1 pkg v. 2.0

                                      I did see 2.9.0.5.tar during the install ??

                                      Now the status is ok in the GUI.
                                      I changed the WAN IP and snort restarted fine  ::)

                                      Thank you

                                      2.4.5-RELEASE-p1 (amd64)
                                      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        eri--
                                        last edited by

                                        I will need some beer together with pfSense.org guys to continue improve this more :)

                                        Hope people put some effort into donation as they do in the reporting of issues ;)

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dhatz
                                          last edited by

                                          Ermal, you are right of course.

                                          Considering that according to recent blog post pfsense has recently surpassed 100k active installs, there should be a better way to fund projects than posting in the Bounty forum and waiting a couple of weeks for others to join in, since apparently a very small fraction of pfsense users reads these forums regularly.

                                          I'm thinking of a funding platform like http://www.indiegogo.com/ (just the concept) coupled with a way for people to vote up/down on features (e.g. feature.astaro.com)

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

                                            @RonpfS 2.9.0.5 is the correct file for install for 2.0 installs. I have 2.1 development code installed on my box for testing…

                                            @Ermal  I sent some money this morning... Bug Scott for a case or 2 :-)

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