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.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.
    • bmeeksB
      bmeeks
      last edited by bmeeks

      You are not supposed to put anything in that box UNLESS you host your own local and private web site for the rules. Notice the name of that box -- "Custom Rule Download URL". That's "custom" as in "not default", I want to host my own rules in some special place, etc. ... ☺. Also read the help/hint text directly above the box.

      Remove everything from that box and then save the configuration again. And uncheck the "Use Custom URL" checkbox as well.

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

        I've removed the string, and unchecked the box - the update now fails with a 404 error:

        5cf7bf8f-691d-47bc-bb55-11ba8725e056-image.png

        38ebba52-dbd5-4388-a7c2-566c485174d9-image.png

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

          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
            ccb056
            last edited by

            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
            • bmeeksB
              bmeeks
              last edited by bmeeks

              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
                ccb056
                last edited by

                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

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

                  @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
                    ccb056
                    last edited by

                    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
                    • bmeeksB
                      bmeeks
                      last edited by

                      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
                        ccb056
                        last edited by ccb056

                        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

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

                          @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 Reply Quote 1
                          • C
                            ccb056 @bmeeks
                            last edited by

                            @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
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.