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

Suricata Rule Update - 404 Error

Scheduled Pinned Locked Moved IDS/IPS
15 Posts 2 Posters 1.7k Views 2 Watching
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.
  • B Offline
    bmeeks
    last edited by Apr 2, 2020, 6:21 PM

    What version of Suricata and on what type of hardware are running it? Is it a Netgate appliance, and if so, which model? What is your pfSense version?

    1 Reply Last reply Reply Quote 0
    • C Offline
      ccb056
      last edited by Apr 2, 2020, 6:26 PM

      Bill,

      This recently started occurring on two dell optiplex machines I have in different locations

      71b03569-f91b-4f48-b06a-8ae3b21b0a37-image.png

      bed07270-bc96-40d8-be21-1695e09ead50-image.png

      Oddly enough - I have a third machine (not a dell) in china, and I am not having this issue there:
      ff17ffba-e43f-4953-9507-93787c84ac97-image.png

      All three machines were using the same config, and all use the same version of suricata

      271c2577-09fa-4218-b60e-fcac82b6864d-image.png

      1 Reply Last reply Reply Quote 0
      • B Offline
        bmeeks
        last edited by bmeeks Apr 2, 2020, 6:30 PM Apr 2, 2020, 6:28 PM

        Just tested in a pfSense-2.4.5 virtual machine. Installed the Suricata package and everything went fine including downloading and installing the current Emerging Threats Open rules package.

        Here is the Rules Update Log from that test just now --

        Starting rules update...  Time: 2020-04-02 14:25:41
        	Downloading Emerging Threats Open rules md5 file...
        	Checking Emerging Threats Open rules md5 file...
        	There is a new set of Emerging Threats Open rules posted.
        	Downloading file 'emerging.rules.tar.gz'...
        	Done downloading rules file.
        	Downloading Snort VRT rules md5 file...
        	Checking Snort VRT rules md5 file...
        	There is a new set of Snort rules posted.
        	Downloading file 'snortrules-snapshot-2983.tar.gz'...
        	Done downloading rules file.
        	Downloading Snort GPLv2 Community Rules md5 file...
        	Checking Snort GPLv2 Community Rules md5 file...
        	There is a new set of Snort GPLv2 Community Rules posted.
        	Downloading file 'community-rules.tar.gz'...
        	Done downloading rules file.
        	Extracting and installing Emerging Threats Open rules...
        	Installation of Emerging Threats Open rules completed.
        	Extracting and installing Snort rules...
        	Installation of Snort rules completed.
        	Extracting and installing Snort GPLv2 Community Rules...
        	Installation of Snort GPLv2 Community Rules completed.
        	Copying new config and map files...
        	Updating rules configuration for: WAN ...
        	Updating rules configuration for: OPT1 ...
        	Updating rules configuration for: LAN ...
        The Rules update has finished.  Time: 2020-04-02 14:26:08
        

        I also happen to have the Snort and Snort GPLv2 rules on this particular VM as I use it frequently to test both Snort and Suricata packages.

        And just be sure it works on a routine update, here is a manual update check:

        Starting rules update...  Time: 2020-04-02 14:29:09
        	Downloading Emerging Threats Open rules md5 file...
        	Checking Emerging Threats Open rules md5 file...
        	Emerging Threats Open rules are up to date.
        	Downloading Snort VRT rules md5 file...
        	Checking Snort VRT rules md5 file...
        	Snort VRT rules are up to date.
        	Downloading Snort GPLv2 Community Rules md5 file...
        	Checking Snort GPLv2 Community Rules md5 file...
        	Snort GPLv2 Community Rules are up to date.
        The Rules update has finished.  Time: 2020-04-02 14:29:10
        

        It's working fine. You have something weird going on in your firewall configuration.

        1 Reply Last reply Reply Quote 0
        • C Offline
          ccb056
          last edited by Apr 2, 2020, 6:30 PM

          The only difference I can think of between the two machines that do not work and the one machine that does:

          I updated the packages on the two non-working machines prior to updating to 2.4.5

          I updated the packages on the working machine after updating to 2.4.5

          B 1 Reply Last reply Apr 2, 2020, 6:32 PM Reply Quote 0
          • B Offline
            bmeeks @ccb056
            last edited by Apr 2, 2020, 6:32 PM

            @ccb056 said in Suricata Rule Update - 404 Error:

            The only difference I can think of between the two machines that do not work and the one machine that does:

            I updated the packages on the two non-working machines prior to updating to 2.4.5

            I updated the packages on the working machine after updating to 2.4.5

            Bingo! The pfSense upgrade docs clearly recommend that you ALWAYS update pfSense first when a new version is available. Only after that should you upgrade any packages.

            You need to remove the Suricata package from the non-working machines and try installing it again.

            1 Reply Last reply Reply Quote 0
            • C Offline
              ccb056
              last edited by Apr 2, 2020, 6:34 PM

              I have removed and re-installed the packages, multiple times, with this option explicitly un-checked

              af946e6f-31f0-47d5-ae1d-6bbb6dd080af-image.png

              The problem persists

              Are there files/directories I need to delete on the machine after running through the un-install in the webgui?

              1 Reply Last reply Reply Quote 0
              • B Offline
                bmeeks
                last edited by Apr 2, 2020, 6:41 PM

                Remove the package, and then open a command-line session to the firewall.

                Clean up any Suricata directories and files you find in these locations:

                /usr/local/etc/
                /usr/local/pkg/
                /usr/local/bin/

                Change into each of those sub-directories and execute this command:

                rm -rf suricata
                

                Then reinstall the package. That should do it. If it does not, then I'm out of ideas. The PHP package determines which ET-Open rule set to download based on the version of Suricata binary existing on your system.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  ccb056
                  last edited by ccb056 Apr 2, 2020, 9:01 PM Apr 2, 2020, 9:00 PM

                  Unfortunately its still not working

                  I think I will try backing up the pfsense config, and re-staging the firewalls

                  Thanks for your help Bill

                  B 1 Reply Last reply Apr 2, 2020, 9:06 PM Reply Quote 0
                  • B Offline
                    bmeeks @ccb056
                    last edited by bmeeks Apr 2, 2020, 9:07 PM Apr 2, 2020, 9:06 PM

                    @ccb056 said in Suricata Rule Update - 404 Error:

                    Unfortunately its still not working

                    I think I will try backing up the pfsense config, and re-staging the firewalls

                    Thanks for your help Bill

                    The last thing you could try, short of a full reinstall is this: https://docs.netgate.com/pfsense/en/latest/install/upgrade-troubleshooting.html#forced-pkg-reinstall. This worked for some users in another thread having Suricata issues. However, their problem was a failure to start due to missing libraries.

                    However, as that link states, a full reinstall from media is usually the best solution. What has happened is the update of the packages prior to update of the base OS left things in a confused state for the pkg utility.

                    C 1 Reply Last reply Apr 3, 2020, 2:57 AM Reply Quote 1
                    • C Offline
                      ccb056 @bmeeks
                      last edited by Apr 3, 2020, 2:57 AM

                      @bmeeks said in Suricata Rule Update - 404 Error:

                      @ccb056 said in Suricata Rule Update - 404 Error:

                      Unfortunately its still not working

                      I think I will try backing up the pfsense config, and re-staging the firewalls

                      Thanks for your help Bill

                      The last thing you could try, short of a full reinstall is this: https://docs.netgate.com/pfsense/en/latest/install/upgrade-troubleshooting.html#forced-pkg-reinstall. This worked for some users in another thread having Suricata issues. However, their problem was a failure to start due to missing libraries.

                      However, as that link states, a full reinstall from media is usually the best solution. What has happened is the update of the packages prior to update of the base OS left things in a confused state for the pkg utility.

                      Bill - Perfect ! I ran through the forced pkg reinstall and my issue is now resolved.

                      Thanks again!

                      1 Reply Last reply Reply Quote 0
                      15 out of 15
                      • First post
                        15/15
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received