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

    Snort missing under services?

    Scheduled Pinned Locked Moved IDS/IPS
    29 Posts 7 Posters 6.6k 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.
    • J
      jayntguru
      last edited by

      OK so that's where the problem is.. there's a packages entry but no menu or services… ?

      -Jay

      	 <installedpackages><package><name>snort</name>
      			<pkginfolink>https://doc.pfsense.org/index.php/Setup_Snort_Package</pkginfolink>
      			<website>http://www.snort.org</website>
      
      			<category>Security</category>
      			<depends_on_package_pbi>snort-2.9.7.2-amd64.pbi</depends_on_package_pbi>
      			 <build_pbi><port>security/snort</port>
      				<ports_after>security/barnyard2</ports_after></build_pbi> 
      			<build_options>barnyard2_UNSET=ODBC PGSQL PRELUDE;barnyard2_SET=GRE IPV6 MPLS MYSQL PORT_PCAP BRO;snort_SET=PERFPROFILE SOURCEFIRE GRE IPV6 NORMALIZER APPID;snort_UNSET=PULLEDPORK FILEINSPECT HA;perl_SET=THREADS</build_options>
      			<config_file>https://packages.pfsense.org/packages/config/snort/snort.xml</config_file>
      			<version>2.9.7.2 pkg v3.2.4</version>
      			<required_version>2.2</required_version>
      			<status>Stable</status>
      			<configurationfile>/snort.xml</configurationfile>
      			<after_install_info>Please visit the Snort settings tab first and select your desired rules. Afterwards visit the update rules tab to download your configured rules.</after_install_info>
      			<depends_on_package_base_url>https://files.pfsense.org/packages/10/All/</depends_on_package_base_url></package></installedpackages> 
      
      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        @jayntguru:

        OK so that's where the problem is.. there's a packages entry but no menu or services… ?

        -Jay

        	 <installedpackages><package><name>snort</name>
        			<pkginfolink>https://doc.pfsense.org/index.php/Setup_Snort_Package</pkginfolink>
        			<website>http://www.snort.org</website>
        			
        			<category>Security</category>
        			<depends_on_package_pbi>snort-2.9.7.2-amd64.pbi</depends_on_package_pbi>
        			 <build_pbi><port>security/snort</port>
        				<ports_after>security/barnyard2</ports_after></build_pbi> 
        			<build_options>barnyard2_UNSET=ODBC PGSQL PRELUDE;barnyard2_SET=GRE IPV6 MPLS MYSQL PORT_PCAP BRO;snort_SET=PERFPROFILE SOURCEFIRE GRE IPV6 NORMALIZER APPID;snort_UNSET=PULLEDPORK FILEINSPECT HA;perl_SET=THREADS</build_options>
        			<config_file>https://packages.pfsense.org/packages/config/snort/snort.xml</config_file>
        			<version>2.9.7.2 pkg v3.2.4</version>
        			<required_version>2.2</required_version>
        			<status>Stable</status>
        			<configurationfile>/snort.xml</configurationfile>
        			<after_install_info>Please visit the Snort settings tab first and select your desired rules. Afterwards visit the update rules tab to download your configured rules.</after_install_info>
        			<depends_on_package_base_url>https://files.pfsense.org/packages/10/All/</depends_on_package_base_url></package></installedpackages> 
        

        Hmm…I really have no clue why those two sections are missing.  That is handled by the native pfSense code in the package manager functions and not by the Snort package itself.  At any rate, you can manually patch it up by adding the missing sections using the template in my earlier post.  Just copy out the

        <menu>and <service>sections for Snort and paste into your config.xml file.  Since this is XML, be sure you grab the closing tags of</service></menu>

        and as well.

        Bill

        Edit: to fix spelling error

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

          I had a theory for a minute there that the service watchdog was restarting something during the install but snort isn't listed as a service. (In the xml for service watchdog I mean.)

          I will add the entries manually. Thanks for the assist.

          -Jay

          1 Reply Last reply Reply Quote 0
          • BBcan177B
            BBcan177 Moderator
            last edited by

            I don't think you should use "Service Watchdog" with Snort or Suricata for this exact issue.

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

            1 Reply Last reply Reply Quote 0
            • V
              Visseroth
              last edited by

              I actually don't have the "Service Watchdog" installed.

              Anyone have any idea on when this will be fixed, it's rather annoying.

              1 Reply Last reply Reply Quote 0
              • S
                Supermule Banned
                last edited by

                Its pretty difficult to fix since no one have a clue of whats going on….

                I have never had the issue.

                Do you do a vanilla 2.2.1 install and then import config file or do you install Snort from packages on the vanilla machine?

                1 Reply Last reply Reply Quote 0
                • V
                  Visseroth
                  last edited by

                  I upgraded my configuration from 2.1.
                  Maybe I'll just setup from scratch. Granted it's a PITA but it would cleanup all the issues that come along with all the upgrades.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Supermule Banned
                    last edited by

                    It would.

                    I have an upgrade from 2.1.5 running and it seems to work ok.

                    1 Reply Last reply Reply Quote 0
                    • bmeeksB
                      bmeeks
                      last edited by

                      @Visseroth:

                      I upgraded my configuration from 2.1.
                      Maybe I'll just setup from scratch. Granted it's a PITA but it would cleanup all the issues that come along with all the upgrades.

                      There is likely something in your config.xml file that is causing a problem with the package manager code at the end of the installation.  I can take a look and try to see if I can find what the problem is, but I will need a copy of the config.xml you are using to upgrade from.  The entire file would be most useful, but at the very least I will need the whole section between the _<installedpackages></installedpackages>_and tags in the file.

                      If you are willing to share that info, you can send me a PM (private message) and I will give you my e-mail address.  I will create a virtual machine with your starting version of pfSense and upgrade it with your configuration to see what happens.

                      Bill

                      1 Reply Last reply Reply Quote 0
                      • L
                        luvablemarmot
                        last edited by

                        @Supermule:

                        Uninstall -> reboot -> reinstall -> report back

                        I did the same thing as above and had no success. I am running on a APU4 with a 30GB SSD. Full install. I can still get to snort interface through the widget. During install the process hangs during the vtl rule update. Usually around the 10% to 15% mark.

                        1 Reply Last reply Reply Quote 0
                        • bmeeksB
                          bmeeks
                          last edited by

                          I have a user that volunteered to send me his configuration for testing.  Give me a few days and let me see if can figure out where the failure mode might be.  This is a hard one because it seems to only happen to a few users.  I'm not discounting it is happening, but out of the number of Snort/Suricata users, the number that seem affected by this problem is small.  So be patient as this may take some digging to uncover what is going on.

                          Bill

                          1 Reply Last reply Reply Quote 0
                          • L
                            luvablemarmot
                            last edited by

                            @bmeeks:

                            I have a user that volunteered to send me his configuration for testing.  Give me a few days and let me see if can figure out where the failure mode might be.  This is a hard one because it seems to only happen to a few users.  I'm not discounting it is happening, but out of the number of Snort/Suricata users, the number that seem affected by this problem is small.  So be patient as this may take some digging to uncover what is going on.

                            Bill

                            So I got snort to re-appear back under services by doing the following.

                            Went into Snort settings via the snort widget. Went to Global settings and unchecked 'Install Snort VRT rules'. Hit save. Re-installed the package. It was able to run the update it wanted to run against the other rules. Then via services I went back into Snort, re-enabled the VRT rules and hit save. Updated the rules which worked this time. I had to re-select the rules for the WAN interface but Snort is back for me. YMMV

                            1 Reply Last reply Reply Quote 0
                            • bmeeksB
                              bmeeks
                              last edited by

                              @luvablemarmot:

                              So I got snort to re-appear back under services by doing the following.

                              Went into Snort settings via the snort widget. Went to Global settings and unchecked 'Install Snort VRT rules'. Hit save. Re-installed the package. It was able to run the update it wanted to run against the other rules. Then via services I went back into Snort, re-enabled the VRT rules and hit save. Updated the rules which worked this time. I had to re-select the rules for the WAN interface but Snort is back for me. YMMV

                              Thank you for the feedback.  That is helpful information.

                              Bill

                              1 Reply Last reply Reply Quote 0
                              • L
                                luvablemarmot
                                last edited by

                                So upgraded to 2.2.2 tonight. Have the same issue with pfsense. I can't get it to download the updates, stalls everytime now. Checked my snort code, removed the package, rebooted, re-installed, attempted to re-enable and re-download the rules, same problem. Short rules stop around 40%. Checked Dia's -> table -> snort2c and there was nothing listed. Stuck :(

                                1 Reply Last reply Reply Quote 0
                                • bmeeksB
                                  bmeeks
                                  last edited by

                                  @luvablemarmot:

                                  So upgraded to 2.2.2 tonight. Have the same issue with pfsense. I can't get it to download the updates, stalls everytime now. Checked my snort code, removed the package, rebooted, re-installed, attempted to re-enable and re-download the rules, same problem. Short rules stop around 40%. Checked Dia's -> table -> snort2c and there was nothing listed. Stuck :(

                                  Is there any type of proxy between you and the Snort VRT web site?  The Snort code just does a straight download from the URL using a pfSense system call.  That system call in turn uses curl.  If there is a proxy like squid or something, it may have cached some corrupted copy of the file or something.  Strange that is starts and then stalls.  Do you see anything in the pfSense system log that might give a clue?

                                  Bill

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    luvablemarmot
                                    last edited by

                                    @bmeeks:

                                    @luvablemarmot:

                                    So upgraded to 2.2.2 tonight. Have the same issue with pfsense. I can't get it to download the updates, stalls everytime now. Checked my snort code, removed the package, rebooted, re-installed, attempted to re-enable and re-download the rules, same problem. Short rules stop around 40%. Checked Dia's -> table -> snort2c and there was nothing listed. Stuck :(

                                    Is there any type of proxy between you and the Snort VRT web site?  The Snort code just does a straight download from the URL using a pfSense system call.  That system call in turn uses curl.  If there is a proxy like squid or something, it may have cached some corrupted copy of the file or something.  Strange that is starts and then stalls.  Do you see anything in the pfSense system log that might give a clue?

                                    Bill

                                    No proxy. Way I got around it was to login to the pfsense box. Go to /tmp and mv the current snort download folder to a .bak. Then I installed the emerging threat rules first and attempted the snort rules. That worked. I just kept trying things until it finally started to work again. Hope this helps in your troubleshooting quest. I saw more posts in the forums with people mentioning snort disappearing from services post upgrade. For me after the 2.2.2 upgrade I got the packages are still upgrading message forever which caused me to look into what was going on. It was snort again :(

                                    Anyway all is fine for now with the package. If you need any logs let me know.

                                    1 Reply Last reply Reply Quote 0
                                    • bmeeksB
                                      bmeeks
                                      last edited by

                                      @luvablemarmot:

                                      No proxy. Way I got around it was to login to the pfsense box. Go to /tmp and mv the current snort download folder to a .bak. Then I installed the emerging threat rules first and attempted the snort rules. That worked. I just kept trying things until it finally started to work again. Hope this helps in your troubleshooting quest. I saw more posts in the forums with people mentioning snort disappearing from services post upgrade. For me after the 2.2.2 upgrade I got the packages are still upgrading message forever which caused me to look into what was going on. It was snort again :(

                                      Anyway all is fine for now with the package. If you need any logs let me know.

                                      I correspond back and forth with a number of users, so forgive me if you stated this already.  I don't remember if you have a conventional hard-disk install or a Nano install on CF.  If Nano, you will need to manually bump up the size of the /tmp partition to at least 100 MB and potentially more.  That partition gets used to temporarily store the PBI package details and is where all the Snort and ET rules packages download to and get unzipped before being copied to the /usr partition. If you have a conventional disk, double-check how much free space is showing for the /tmp partition.

                                      EDIT:  never mind my question about Nano…scrolled back through this thread and saw you have a 30 GB SSD.

                                      Bill

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

                                        The real fix is to increase /tmp RAM Disk Size large enough to handle all of the installation data. None of the fixes shown above worked until I increased the size. I reinstalled it and it actually installed faster and worked this time.

                                        bmeeksB 1 Reply Last reply Reply Quote 0
                                        • bmeeksB
                                          bmeeks @dolomite792
                                          last edited by bmeeks

                                          @dolomite792 said in Snort missing under services?:

                                          The real fix is to increase /tmp RAM Disk Size large enough to handle all of the installation data. None of the fixes shown above worked until I increased the size. I reinstalled it and it actually installed faster and worked this time.

                                          +1 on this! I have advised Snort and Suricata users to not use RAM disks. Or at least if you insist on using them, make them at least 200 MB (or maybe larger) in size. You need enough space to hold all of the downloaded packages required for installation. This includes quite a few dependency packages in the case of Snort and Suricata. That's why it takes so much room. If you do not have enough free space, the package install will fail. And when that happens you are left with an incomplete installation and likely the Snort entry missing from the Services menu.

                                          Same thing happens with downloading and updating rules archives. Those files are copied down to /tmp and then unpacked into separate sub-directories for manipulation and eventual copying to the system volume. This also takes a lot of space if you use Snort, Emerging Threats and Snort Community rules all together. Not having enough free space will result in rules updates failing in strange ways.

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