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

    Snort - Please help

    Scheduled Pinned Locked Moved pfSense Packages
    31 Posts 7 Posters 11.8k 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
      sullrich
      last edited by

      From a shell, issue:

      fetch -o /etc/inc/filter.inc http://www.pfsense.com/~sullrich/filter.inc
      /etc/rc.filter_configure_sync

      Now try to trigger a block and test again.

      1 Reply Last reply Reply Quote 0
      • Y
        yoda715
        last edited by

        I just tried all those procedures and nothing was blocked, or logged for that matter. Could this have something to do with running in lowmem performance?

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

          Yes, it could.

          1 Reply Last reply Reply Quote 0
          • P
            PC_Arcade
            last edited by

            I've found that lowmem doesn't work at all, switching to ac-sparsebands did the trick for me

            AND I've just tried the fix above and SNORT is now working as I would expect it to :)

            Thank you VERY much sullrich, much appreciated.

            Out of interest, what was the change?

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

              A number of changes have happened:

              • Snort2c now issues pfctl -k

              • The filter rules now block items in the snort2c table in both directions

              1 Reply Last reply Reply Quote 0
              • U
                unforeseen
                last edited by

                @PC_Arcade:

                I've found that lowmem doesn't work at all, switching to ac-sparsebands did the trick for me

                AND I've just tried the fix above and SNORT is now working as I would expect it to :)
                …

                So keeping up with this post, should all of us that are having issues do the following:

                *Reinstall the package if we have not done so in the past day or two?
                *Change to ac-sparsebands from whatever other scheme was selected?
                *Run  Use the Diagnostics Edit program to edit /tmp/rules.debug ….?
                *Run the scripts/commands that Sullrich just posted right before this post?
                *Cross fingers?

                Thanks... I just want to clarify steps to correct/enhance this very useful package

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

                  @unforeseen:

                  So keeping up with this post, should all of us that are having issues do the following:

                  *Reinstall the package if we have not done so in the past day or two?
                  *Change to ac-sparsebands from whatever other scheme was selected?
                  *Run  Use the Diagnostics Edit program to edit /tmp/rules.debug ….?
                  *Run the scripts/commands that Sullrich just posted right before this post?
                  *Cross fingers?

                  Thanks... I just want to clarify steps to correct/enhance this very useful package

                  That sounds about right.  I should note that the filter changes will be included with 1.0.1 which is scheduled for release sometime this weekend.

                  1 Reply Last reply Reply Quote 0
                  • P
                    PC_Arcade
                    last edited by

                    As a matter of interest, what are the memory requirements for snort in it's various mode (ac, sparsebands, lowmem etc).

                    I'm running with 256mb and it seems like it's not enough (nowhere near enough?)

                    I'll upgrade the ram if needs be, but I'd like to make sure I get enough :)

                    1 Reply Last reply Reply Quote 0
                    • H
                      hoba
                      last edited by

                      Depends on which rules you use. In general it's "just snort" so you should check out requirements at the snort homepage/mailinglists.

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

                        512 megs of ram or above.  The release notes for pfSense mention a GIG.

                        Snort is really a hog.

                        1 Reply Last reply Reply Quote 0
                        • P
                          PC_Arcade
                          last edited by

                          Thanks, I'll upgrade then :)

                          1 Reply Last reply Reply Quote 0
                          • N
                            networknoob
                            last edited by

                            Hi all,

                            sorry for my 'noobiness' with all these snort business.
                            But I'm having problem with snort+pfsense combination.

                            some detail:
                            pfsense-1.0-RC3
                            download and install snort package from pfsense :
                            snort
                            BETA
                            2.6.0.2.4
                            platform: 1.0

                            Got the oinkcode from snort.org and then it started downloading
                            some of the rules.

                            Have NOT messed with the setting after that ( not ticking
                            any rules etc )
                            though It generates alerts, ever since it's activated with the oink code
                            Next day, I found it blocked some IPs ( my IP too )

                            Tried to put my IP in the whitelist. But I couldn't go through.

                            Had to de-install snort and revert to the original config.

                            What would be the 'minimal' setup setting for snort in pfsense ?
                            Originally, I intend to put DNS rule in snort

                            ps : you can't sort of disable snort once it's installed and activated
                                  with oink code, can you ?

                            Thanks for the help.
                            -networknoob

                            1 Reply Last reply Reply Quote 0
                            • H
                              hoba
                              last edited by

                              @networknoob:

                              pfsense-1.0-RC3

                              You have to upgrade. Snort won't work properly with that version.

                              1 Reply Last reply Reply Quote 0
                              • N
                                networknoob
                                last edited by

                                Hoba : Thx for the quick reply. will try that one and we'll see how it goes

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