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

    Snort 2.9.2.3 pkg v. 2.4.2 Issues

    Scheduled Pinned Locked Moved pfSense Packages
    116 Posts 19 Posters 33.5k 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.
    • E
      eri--
      last edited by

      mdima nothing else on the logs?

      1 Reply Last reply Reply Quote 0
      • J
        judex
        last edited by

        I do not exactly know, if this is a feature or a bug:

        When I leave Home NEt set as default in the GUI the Home Net variable is automagically set in the interfaces snort.conf.
        There the whole subnet of the WAN interface gets added. Not only my WAN IP and the gateway, but the subnet with a 24 netmask. That can't be by design!?!

        Greetings, Judex

        2.1-RELEASE (amd64)
        built on Wed Sep 11 18:17:48 EDT 2013
        FreeBSD 8.3-RELEASE-p11

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

          reinstalling 2.4.2, snort fails to start:

          *** Welcome to pfSense 2.0.1-RELEASE-pfSense (amd64) on pfsense ***

          [2.0.1-RELEASE][admin@pfsense.localdomain]/root(1): /usr/local/bin/snort
          /libexec/ld-elf.so.1: /usr/local/lib/libdnet.1: unsupported file layout

          Also, all .so rules were missing on this version, so not available to select.

          Cheers,
          Dennis.

          1 Reply Last reply Reply Quote 0
          • M
            mdima
            last edited by

            @ermal:

            Please reinstall again!
            You need a new snort binary for the alerts to be displayed correctly.

            Hi Ermal, nothing else AFAIK. If you want I can send you in private the full system log where that happened (I just saved it for reference).

            Thanks,
            Michele

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

              Please reinstall again in 30 minutes.
              You need a new binary again.

              I think i fixed the alert_pf issues with the ioctl.

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

                where is all snot rules? I have only 10-15 and i have premium account :(

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

                  @judex:

                  I do not exactly know, if this is a feature or a bug:

                  When I leave Home NEt set as default in the GUI the Home Net variable is automagically set in the interfaces snort.conf.
                  There the whole subnet of the WAN interface gets added. Not only my WAN IP and the gateway, but the subnet with a 24 netmask. That can't be by design!?!

                  Greetings, Judex

                  Judex, it seems it was there since the beginning like this.
                  Removed the subnet cause i do not think is right as well.

                  Actually i am not sure if all the other interfaces ips need to be there apart the one snort is listening.

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

                    @HOD:

                    I did a complete reinstall of snort (10min ago) and i have the same error of my last post.

                    snort[23088]: FATAL ERROR: s2c_parse_load_wl() => Invalid data in whitelist file: Invalid argument

                    @ermal:

                    For all the others having issues with blocking please whenever you have system log of 'unable to parse', get the file under the /usr/local/etc/snort/snort_$iface*/$whitelistname and post it here.

                    cat /usr/local/etc/snort/snort_18407_pppoe0/whitlsit
                    suppress gen_id 119, sig_id 2
                    suppress gen_id 119, sig_id 31
                    suppress gen_id 119, sig_id 32
                    suppress gen_id 120, sig_id 3
                    suppress gen_id 120, sig_id 6
                    suppress gen_id 120, sig_id 8
                    suppress gen_id 120, sig_id 10
                    suppress gen_id 122, sig_id 26
                    suppress gen_id 137, sig_id 1

                    greetz HOD

                    EDIT: my System 2.0.1-RELEASE (amd64) Snort 2.9.2.3 pkg v. 2.4.2

                    This should have been fixed also.
                    HOD can yo uconfirm that you have the same name for the suppress and whitelist selected?

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

                      Ermal, I'm happy to finally see you working on the Snort package.

                      Could you provide some info about how Snort interfaces with PF, in order to provide IPS functionality (ie to auto block offending IPs ) ? When I last checked some weeks ago, it seemed that both SnortSam and your enhanced version of spoink were enabled.

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

                        @simby:

                        where is all snot rules? I have only 10-15 and i have premium account :(

                        i dont have a premium account but we are missing a lot of rules and all the shared .so ones.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mdima
                          last edited by

                          Hi Ermal,
                            just updated. If I have again problems I will report it.

                          Btw, I confirm that I lost half of the snort.org rules after the update.

                          Thanks,
                          Michele

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

                            @mschiek01:

                            @miles267:

                            1.) 2.4.2 log returns the following error:

                            snort[62803]: FATAL ERROR: /usr/local/etc/snort/snort_60243_em3/snort.conf(235) Unknown rule type: FILE_DATA_PORTS.

                            The only entry in my Advanced Config Pass Through dialog box is as follows (on both WAN and LAN interfaces):

                            FILE_DATA_PORTS [$HTTP_PORTS,110,143]

                            2.) if I enter any ports into the Define SSL_Ignore box (for example: 443 563 995 etc) when i attempt to start the interface, it returns the following error:

                            snort[37766]: FATAL ERROR: /usr/local/etc/snort/snort_9414_em2/snort.conf(55) Missing argument to SSL_PORTS_IGNORE

                            3.) BLOCKED page only shows the IP address but all Alert Descriptions are blank

                            snort[37766]: FATAL ERROR: /usr/local/etc/snort/snort_9414_em2/snort.conf(55) Missing argument to SSL_PORTS_IGNORE

                            I had the same error, someone suggested that commas are now required even though it says spaces this corrected the problem.

                            I had the same error.  Quotes fixed it for me.

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

                              @mschiek01:

                              @miles267:

                              1.) 2.4.2 log returns the following error:

                              snort[62803]: FATAL ERROR: /usr/local/etc/snort/snort_60243_em3/snort.conf(235) Unknown rule type: FILE_DATA_PORTS.

                              The only entry in my Advanced Config Pass Through dialog box is as follows (on both WAN and LAN interfaces):

                              FILE_DATA_PORTS [$HTTP_PORTS,110,143]

                              2.) if I enter any ports into the Define SSL_Ignore box (for example: 443 563 995 etc) when i attempt to start the interface, it returns the following error:

                              snort[37766]: FATAL ERROR: /usr/local/etc/snort/snort_9414_em2/snort.conf(55) Missing argument to SSL_PORTS_IGNORE

                              3.) BLOCKED page only shows the IP address but all Alert Descriptions are blank

                              snort[37766]: FATAL ERROR: /usr/local/etc/snort/snort_9414_em2/snort.conf(55) Missing argument to SSL_PORTS_IGNORE

                              I had the same error, someone suggested that commas are now required even though it says spaces this corrected the problem.

                              I had the same error.  Quotes fixed it for me.

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

                                @ermal:

                                Can you put the alert file here and tell me if its full alert style logging or fast?

                                There is no more alert type.  There was until I removed the package and reinstalled to see if that would fix the issues I'm seeing, but since then, no more alert type.  Tried uninstall and reinstall again (without saving snort xml configuration each time) with same results.  No alert type available.  I can also confirm other's findings that a good deal of the snort rules are not showing up any longer.  I also have a new one, I think.  I have snort configured twice on my WAN interface.  One for block only rules, one for alert only rules.  This worked fine until the v2.4.2 upgrade.  Now I can only have one instance of Snort per interface, so I can either have blocking rules or alert only rules, but not both.

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

                                  @breusshe:

                                  @ermal:

                                  Can you put the alert file here and tell me if its full alert style logging or fast?

                                  There is no more alert type.  There was until I removed the package and reinstalled to see if that would fix the issues I'm seeing, but since then, no more alert type.  Tried uninstall and reinstall again (without saving snort xml configuration each time) with same results.  No alert type available.  I can also confirm other's findings that a good deal of the snort rules are not showing up any longer.  I also have a new one, I think.  I have snort configured twice on my WAN interface.  One for block only rules, one for alert only rules.  This worked fine until the v2.4.2 upgrade.  Now I can only have one instance of Snort per interface, so I can either have blocking rules or alert only rules, but not both.

                                  I do not understand the both instances and blocking vs alerting one?

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

                                    @dhatz:

                                    Ermal, I'm happy to finally see you working on the Snort package.

                                    Could you provide some info about how Snort interfaces with PF, in order to provide IPS functionality (ie to auto block offending IPs ) ? When I last checked some weeks ago, it seemed that both SnortSam and your enhanced version of spoink were enabled.

                                    I do not see a problem with that!
                                    What gets enabled in config gets added to the action.

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

                                      I have not been able to get snort working last few versions. I have been busy so have not had the chance to see why.

                                      I reset all the settings and started again after the last update and cleared off the dynamic .so rules which fixed it previously. When I run /usr/local/bin/snort it seems to work without any problems. But when I try to run snort form the web gui it does not change to a status of started and there is no snort process. The syslog looks like it started ok as there are no snort errors in it.

                                      I have also tried reinstalling the gui.

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

                                        Ok there were some issues with download script directory references.
                                        Fixed that please try again with a re-update of the package.

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

                                          I just removed it completely and reinstalled and it is working ok now.

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            judex
                                            last edited by

                                            Just reinstalled and it seems to work so far.
                                            On rule update I noticed following Warning:

                                            Warning: unlink(/usr/local/etc/snort/tmp/so_rules): Operation not permitted in /usr/local/pkg/snort/snort_check_for_rule_updates.php on line 200

                                            2.1-RELEASE (amd64)
                                            built on Wed Sep 11 18:17:48 EDT 2013
                                            FreeBSD 8.3-RELEASE-p11

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