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

    Warning/bug? when updating SNORT package

    Scheduled Pinned Locked Moved IDS/IPS
    6 Posts 3 Posters 547 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.
    • P
      pawprint
      last edited by

      I assume this is a bug but perhaps I missed something.

      I updated the snort package (to 4.1.6_11) expecting it would be an in-place update but it completely wiped all settings, custom rules etc. Thankfully I had a backup and was able to restore but a warning to others as I doubt many would expect this. Make sure you have a backup before proceeding.

      To the maintainers: perhaps this is a bug?

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @pawprint
        last edited by

        @pawprint Do you have the setting checked to not keep settings upon uninstall? (However it’s worded)

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

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

          Yeah, the only way this should happen is if you have unchecked the Keep Snort Settings After Deinstall option on the GLOBAL SETTINGS tab. That option is checked and thus enabled by default (meaning settings are saved when removing the package).

          1 Reply Last reply Reply Quote 0
          • P
            pawprint @SteveITS
            last edited by

            @SteveITS

            That setting is checked "Keep Snort Settings After Deinstall" So that wasn't it. I considered that could have been it but technically I also didn't deinstall anything. I upgraded it. I suspected that but if this is the case it's not an "upgrade" but a "uninstall" and "reinstall" which again, I don't think most people would expect, especially anyone familiar with Linux package managers and package updates.

            Regardless that wasn't the issue. It wiped everything for some other reason.

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

              @pawprint said in Warning/bug? when updating SNORT package:

              @SteveITS

              That setting is checked "Keep Snort Settings After Deinstall" So that wasn't it. I considered that could have been it but technically I also didn't deinstall anything. I upgraded it. I suspected that but if this is the case it's not an "upgrade" but a "uninstall" and "reinstall" which again, I don't think most people would expect, especially anyone familiar with Linux package managers and package updates.

              Regardless that wasn't the issue. It wiped everything for some other reason.

              Package upgrades on pfSense actually perform an uninstall and reinstall of the GUI components. That's because the current "hooks" that pfSense offers packages during install or upgrade do not distinguish between the two. So, packages treat upgrades the same as a removal and reinstall. This is not ideal, but it is what it is.

              I don't know why you lost your configuration. That is not the normal experience. The 4.1.6_11 Snort package upgrade was just recently posted, and a number of folks applied that update. Yours is the only report of losing the configuration of Snort. So, that would imply some kind of one-off situation. Unfortunately, I don't have a good suggestion where to start troubleshooting. First thing I would try is see if the problem is repeatable by removing the package and installing it again. That will be the same as "upgrade" because as I mentioned earlier the same steps of GUI code get executed in either case.

              P 1 Reply Last reply Reply Quote 1
              • P
                pawprint @bmeeks
                last edited by

                @bmeeks

                Thanks for the clarification. I'm guessing something happened during the unusual (I'm calling it that since it's not standard Linux behaviour to uninstall and reinstall in order to update a package) process. Knowing that and ensuring I have a config backup before any package update I'm not too worried.

                Lots to learn (and unlearn) as always getting into a new system. Really appreciate the help from the forum.

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