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

    Snort problem

    Scheduled Pinned Locked Moved pfSense Packages
    104 Posts 21 Posters 48.7k 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.
    • S Offline
      shaddow501
      last edited by

      Its mean that you didn't save the file correctly cause the change wasn't implemented.
      after implementing the file you need to save. and then save again in the snort setting page.

      also I have checked and the netbios rules should not be checked till the dcerpc2 and dcerpc2_server, will be compiled correctly into the snort package

      1 Reply Last reply Reply Quote 0
      • C Offline
        cmb
        last edited by

        this is fixed in the package now

        1 Reply Last reply Reply Quote 0
        • S Offline
          shaddow501
          last edited by

          What is fixed?
          i do not see any package update?
          can you please be more specific what is fixed? and how? did you add the preprocessor "dcerpc2" and the preprocessor "dcerpc2_server" ?
          or just modify the snort.inc to disable the use of them?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            @cmb:

            this is fixed in the package now

            OK, Confirm that it is now working after i uninstall and reinstall from the package.  Thanks guys you guys are highly appreciated.

            1 Reply Last reply Reply Quote 0
            • S Offline
              shaddow501
              last edited by

              Well it is not really fixed…. netbios rules still get snort to fail.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                @shaddow501:

                Well it is not really fixed…. netbios rules still get snort to fail.

                Use the netbios.rules from the so_rules folder.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Roodawakening
                  last edited by

                  I've tried all of the suggestions contained within this thread and it's still not functioning properly. My PfSense box has been up and running for over 30 hours and not a single Snort alert in all that time. I just don't understand what the problem is. Can anyone advise?

                  Thanks…

                  "The descent to hell is easy. The gates stand open day and night. But to reclimb the slope and escape to the upper air: This is labor."
                  –Virgil, Aeneid, Book 6

                  Rob

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    @Roodawakening:

                    I've tried all of the suggestions contained within this thread and it's still not functioning properly. My PfSense box has been up and running for over 30 hours and not a single Snort alert in all that time. I just don't understand what the problem is. Can anyone advise?

                    Thanks…

                    Do you have any snort rules in the Categories section of snort?  If you are using pfsense 1.2.2 version i believe that it's haveing problem updating the rules so you might have to manually download the latest rules from snort.org and do a SSH and also manually install the rules.  If you have the latest rules already install than you might have to start the service.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Roodawakening
                      last edited by

                      @1clicc:

                      @Roodawakening:

                      I've tried all of the suggestions contained within this thread and it's still not functioning properly. My PfSense box has been up and running for over 30 hours and not a single Snort alert in all that time. I just don't understand what the problem is. Can anyone advise?

                      Thanks…

                      Do you have any snort rules in the Categories section of snort?  If you are using pfsense 1.2.2 version i believe that it's haveing problem updating the rules so you might have to manually download the latest rules from snort.org and do a SSH and also manually install the rules.  If you have the latest rules already install than you might have to start the service.

                      Ironically, Snort worked perfectly on 1.2.2. The problems started as soon as I "upgraded" to 1.2.3 RC-1. After monkeying with it for far too long, I finally "downgraded" back to 1.2.2–a version known to work on my machine. Unfortunately, Snort doesn't run on 1.2.2 now either. But I appreciate the suggestion. I'll try it again.

                      "The descent to hell is easy. The gates stand open day and night. But to reclimb the slope and escape to the upper air: This is labor."
                      –Virgil, Aeneid, Book 6

                      Rob

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mentalhemroids
                        last edited by

                        @Roodawakening:

                        Ironically, Snort worked perfectly on 1.2.2. The problems started as soon as I "upgraded" to 1.2.3 RC-1. After monkeying with it for far too long, I finally "downgraded" back to 1.2.2–a version known to work on my machine. Unfortunately, Snort doesn't run on 1.2.2 now either. But I appreciate the suggestion. I'll try it again.

                        I would tell you to try reinstalling snort; there was a problem recently and doing a reinstall corrected my brief issues, so do that first.  Then try re-doing your pfSense box.  I can't say how many times I've redone mine over problems I didn't understand.  Which has got me in hot water with the Mrs.  I have changed my setup at least 10 times.  I now have two pfSense boxes running snort - the netbios rules + using ac-bnfa and have squid running on the second box behind the first WAN connected pfSense box.  If at first you don't succeed, try again.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jamesdean
                          last edited by

                          Hi.

                          Sorry I have been gone. I just started a new job and have been really busy.

                          Snort 2.8.4.1 right now does not work because the mysql client port is out of date.

                          Mysql client needs to be at mysql 5.1, dependencies libdnet-1.11_3.tbz and pcre.7.9 must be installed.

                          Moreover, It seems that the snort port and the mysql client port were built on different machines.
                          Sourcefire is using the new RPC2 netbios rules so snort needs to be at snort 2.8.4.1.

                          My snort.inc is good so theres no need to comment out the RPC2 options.

                          I emailed the core team on how to fix the package hopefully this will be resolved today.
                          I'll be hear all day so, please ask and I will respond to any messages.

                          thanx

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            firbc
                            last edited by

                            @shaddow501:

                            Well it is not really fixed…. netbios rules still get snort to fail.

                            Same problem here.

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              jamesdean
                              last edited by

                              @firbc:

                              @shaddow501:

                              Well it is not really fixed…. netbios rules still get snort to fail.

                              Same problem here.

                              reinstall the snort. should work now.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                ColdFusion
                                last edited by

                                seems to work now, no errors in log.

                                thanks for the update..

                                John

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  simonchs
                                  last edited by

                                  i've just reinstalled twice the snort package, but i can't start-up the snort service, here are the log:

                                  May 26 18:35:47 xxxxx snort[23564]: Initializing daemon mode
                                  May 26 18:35:47 xxxxx snort[23564]: Initializing daemon mode
                                  May 26 18:35:47 xxxxx snort[23567]: PID path stat checked out ok, PID path set to /var/run/
                                  May 26 18:35:47 xxxxx snort[23567]: PID path stat checked out ok, PID path set to /var/run/
                                  May 26 18:35:47 xxxxx snort[23567]: FATAL ERROR: Failed to Lock PID File "/var/run//snort_em1.pid" for PID "23567"
                                  May 26 18:35:47 xxxxx snort[23567]: FATAL ERROR: Failed to Lock PID File "/var/run//snort_em1.pid" for PID "23567"
                                  May 26 18:35:48 xxxxx snort[23564]: Child exited unexpectedly
                                  May 26 18:35:48 xxxxx snort[23564]: Child exited unexpectedly
                                  May 26 18:35:48 xxxxx snort[23564]: Daemon parent exiting
                                  May 26 18:35:48 xxxxx snort[23564]: Daemon parent exiting
                                  May 26 18:35:56 xxxxx snort2c[23647]: snort2c running in daemon mode pid: 23647
                                  May 26 18:35:56 xxxxx snort2c[23647]: snort2c running in daemon mode pid: 23647
                                  May 26 18:36:13 xxxxx SnortStartup[23667]: Ram free BEFORE starting Snort: 59M – Ram free AFTER starting Snort: 59M -- Mode ac-bnfa -- Snort memory usage:

                                  i've tried to stop the snort service, remove the file /var/run/snort_em1.pid.lck and start the snort service again, and even reboot my pfsense, but got the same log as above.

                                  any trick?

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    ColdFusion
                                    last edited by

                                    Did you update the rules at all after installation? If not update..should start.

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      Slam
                                      last edited by

                                      Seems to be working great on pfs 1.2.3 w/dual wan & CP, thanks for the update.

                                      Slam

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jamesdean
                                        last edited by

                                        @simonchs:

                                        i've just reinstalled twice the snort package, but i can't start-up the snort service, here are the log:

                                        May 26 18:35:47 xxxxx snort[23564]: Initializing daemon mode
                                        May 26 18:35:47 xxxxx snort[23564]: Initializing daemon mode
                                        May 26 18:35:47 xxxxx snort[23567]: PID path stat checked out ok, PID path set to /var/run/
                                        May 26 18:35:47 xxxxx snort[23567]: PID path stat checked out ok, PID path set to /var/run/
                                        May 26 18:35:47 xxxxx snort[23567]: FATAL ERROR: Failed to Lock PID File "/var/run//snort_em1.pid" for PID "23567"
                                        May 26 18:35:47 xxxxx snort[23567]: FATAL ERROR: Failed to Lock PID File "/var/run//snort_em1.pid" for PID "23567"
                                        May 26 18:35:48 xxxxx snort[23564]: Child exited unexpectedly
                                        May 26 18:35:48 xxxxx snort[23564]: Child exited unexpectedly
                                        May 26 18:35:48 xxxxx snort[23564]: Daemon parent exiting
                                        May 26 18:35:48 xxxxx snort[23564]: Daemon parent exiting
                                        May 26 18:35:56 xxxxx snort2c[23647]: snort2c running in daemon mode pid: 23647
                                        May 26 18:35:56 xxxxx snort2c[23647]: snort2c running in daemon mode pid: 23647
                                        May 26 18:36:13 xxxxx SnortStartup[23667]: Ram free BEFORE starting Snort: 59M – Ram free AFTER starting Snort: 59M -- Mode ac-bnfa -- Snort memory usage:

                                        i've tried to stop the snort service, remove the file /var/run/snort_em1.pid.lck and start the snort service again, and even reboot my pfsense, but got the same log as above.

                                        any trick?

                                        If any of you are still having problems. Please fallow these steps.

                                        1. Reinstall snort. (So that the new code gets updated.)

                                        2. Deinstall snort. (New code deinstalls all the old snort packages.)

                                        3. Install the snort package.

                                        4. Update the rules.

                                        Finished, snort should work now.

                                        James

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          simonchs
                                          last edited by

                                          @ColdFusion:

                                          Did you update the rules at all after installation? If not update..should start.

                                          yes, i've update the rules once the install/re-install complete.

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            simonchs
                                            last edited by

                                            @jamesdean:

                                            @simonchs:

                                            i've just reinstalled twice the snort package, but i can't start-up the snort service, here are the log:

                                            May 26 18:35:47 xxxxx snort[23564]: Initializing daemon mode
                                            May 26 18:35:47 xxxxx snort[23564]: Initializing daemon mode
                                            May 26 18:35:47 xxxxx snort[23567]: PID path stat checked out ok, PID path set to /var/run/
                                            May 26 18:35:47 xxxxx snort[23567]: PID path stat checked out ok, PID path set to /var/run/
                                            May 26 18:35:47 xxxxx snort[23567]: FATAL ERROR: Failed to Lock PID File "/var/run//snort_em1.pid" for PID "23567"
                                            May 26 18:35:47 xxxxx snort[23567]: FATAL ERROR: Failed to Lock PID File "/var/run//snort_em1.pid" for PID "23567"
                                            May 26 18:35:48 xxxxx snort[23564]: Child exited unexpectedly
                                            May 26 18:35:48 xxxxx snort[23564]: Child exited unexpectedly
                                            May 26 18:35:48 xxxxx snort[23564]: Daemon parent exiting
                                            May 26 18:35:48 xxxxx snort[23564]: Daemon parent exiting
                                            May 26 18:35:56 xxxxx snort2c[23647]: snort2c running in daemon mode pid: 23647
                                            May 26 18:35:56 xxxxx snort2c[23647]: snort2c running in daemon mode pid: 23647
                                            May 26 18:36:13 xxxxx SnortStartup[23667]: Ram free BEFORE starting Snort: 59M – Ram free AFTER starting Snort: 59M -- Mode ac-bnfa -- Snort memory usage:

                                            i've tried to stop the snort service, remove the file /var/run/snort_em1.pid.lck and start the snort service again, and even reboot my pfsense, but got the same log as above.

                                            any trick?

                                            If any of you are still having problems. Please fallow these steps.

                                            1. Reinstall snort. (So that the new code gets updated.)

                                            2. Deinstall snort. (New code deinstalls all the old snort packages.)

                                            3. Install the snort package.

                                            4. Update the rules.

                                            Finished, snort should work now.

                                            James

                                            thanks James, still no luck, same log shown as above post. the "snort" can't start while the "snort2c" can run.

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