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

    Manual installation of Snort

    Scheduled Pinned Locked Moved IDS/IPS
    17 Posts 3 Posters 3.3k 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.
    • K
      KWicky
      last edited by

      Hi,
      Anyone know if Snort can be manually reinstalled as it's no longer in the available packages area ?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        If it doesn't show in the Available Packages tab, it should be on the Installed Packages tab. The package is still there and live in the repo. So unless you're on a super old unsupported release (e.g. 2.2.x or earlier) you should still be able to reinstall it from the Installed Packages tab.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • K
          KWicky
          last edited by

          Thanks @jimp for your quick reply.
          It's not in the Installed Packages tab, looks like some other admin staff has been browsing files and removed the Snort folder from the /etc folder.
          He is no longer employed.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Assuming you are on 2.4.3-p1, from the command line, run:

            pkg delete -fy snort\* pfSense-pkg-snort\*

            And then it should show up in the GUI again on one tab or the other.

            If you are on 2.3.x that should also work. Anything older and you'll need to upgrade to a supported release to see or install any packages.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • K
              KWicky
              last edited by

              @jimp said in Manual installation of Snort:

              pkg delete -fy snort* pfSense-pkg-snort*

              Yes @jimp, I'm on v2.4.3 and tried that with the following result...

              No packages matched for pattern 'snort*'

              No packages matched for pattern 'pfSense-pkg-snort*'

              Checking integrity... done (0 conflicting)
              2 packages requested for removal: 0 locked, 2 missing

              I think I need to get the Snort package and put that into the /etc folder but don't know where to download the correct Snort package for this pfSense!

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by jimp

                A package would not touch /etc on pfSense, so that wouldn't help, and doesn't make sense in this context.

                First, go to System > Update, Update Settings tab. Make sure you are set to Latest Stable Version. Save. Then check for packages again.

                Do other packages show up in the list, but not snort?

                If so, you might need to manually force the reinstall from the command line:

                pkg install -fy pfSense-pkg-snort

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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

                  Snort will put configuration information in this path --

                  /usr/local/etc/snort

                  but never in /etc. Was Snort originally installed from the pfSense package repo, or did someone perhaps manually install the package directly from FreeBSD ports?

                  Bill

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    KWicky @jimp
                    last edited by

                    @jimp said in Manual installation of Snort:

                    pkg install -fy pfSense-pkg-snort

                    Thanks @jimp, tried that and got the following result...

                    Updating pfSense-core repository catalogue...
                    pkg: Repository pfSense-core load error: access repo file(/var/db/pkg/repo-pfSense-core.sqlite) failed: No such file or directory
                    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_3_amd64-core/meta.txz: No address record
                    repository pfSense-core has no meta file, using default settings
                    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_3_amd64-core/packagesite.txz: No address record
                    Unable to update repository pfSense-core
                    Updating pfSense repository catalogue...
                    pkg: Repository pfSense load error: access repo file(/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
                    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_3_amd64-pfSense_factory-v2_4_3/meta.txz: No address record
                    repository pfSense has no meta file, using default settings
                    pkg: https://firmware.netgate.com/pkg/pfSense_factory-v2_4_3_amd64-pfSense_factory-v2_4_3/packagesite.txz: No address record
                    Unable to update repository pfSense
                    Error updating repositories!

                    As mentioned previously, there's no snort folder within the /etc folder !
                    I think this is what needs manually installed?

                    1 Reply Last reply Reply Quote 0
                    • K
                      KWicky @bmeeks
                      last edited by

                      @bmeeks
                      Hi Bill,
                      Yes, Snort was originally installed from the pfSense pkg repo and there is no snort folder within the /usr/local/etc folder

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

                        @kwicky said in Manual installation of Snort:

                        @bmeeks
                        Hi Bill,
                        Yes, Snort was originally installed from the pfSense pkg repo and there is no snort folder within the /usr/local/etc folder

                        Your issues are much much bigger than a missing /usr/local/etc/snort folder. All those errors from pkg when trying to install Snort indicate your firewall's pkg system database is very broken.

                        I would backup the configuration using the option under DIAGNOSTICS and reinstall pfSense from scratch, then restore the backed up configuration.

                        Bill

                        K 1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          From those errors it appears as though you do not have working DNS or network connectivity.

                          You need to fix whatever is preventing the firewall from resolving those DNS records. It could be a missing gateway, improper DNS configuration, or several other causes.

                          Safe to say at this point it has nothing at all to do with snort.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            KWicky @bmeeks
                            last edited by

                            @bmeeks
                            Hi Bill,
                            Sorry for the late response.
                            Do I reinstall pfSence using the Factory Defaults link in Diagnostics ?

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

                              @kwicky said in Manual installation of Snort:

                              @bmeeks
                              Hi Bill,
                              Sorry for the late response.
                              Do I reinstall pfSence using the Factory Defaults link in Diagnostics ?

                              No, you will need to download the proper image file and install fresh. Did you buy a pfSense appliance from Netgate or did you roll your own? If you bought an appliance from Netgate, you should have support for a period of time and you can contact them for assistance. If you rolled your own hardware and installed pfSense, then you will need to repeat the installation process you used the first time.

                              Depending on exactly what is messed up in your system, using the Factory Defaults under DIAGNOSTICS may or may not fix the problem. I guess it wouldn't hurt to try, though.

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                KWicky @jimp
                                last edited by

                                @jimp
                                Is there an image file I can download to reinstall the pfSense software from scratch?

                                1 Reply Last reply Reply Quote 0
                                • K
                                  KWicky @bmeeks
                                  last edited by

                                  @bmeeks
                                  @jimp

                                  Thanks for all your time and advice.
                                  I followed the steps as mentioned in the Netgate forum which can be viewed here then rebooted my SG-4860 and everything came back and all packages updated.

                                  Thanks Guys.

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    KWicky @KWicky
                                    last edited by

                                    @bmeeks
                                    @jimp

                                    Just viewed the Snort logs and seems everything went wonky donky when storm Hector hit the UK on June 14th.

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

                                      @kwicky said in Manual installation of Snort:

                                      @bmeeks
                                      @jimp

                                      Just viewed the Snort logs and seems everything went wonky donky when storm Hector hit the UK on June 14th.

                                      It's possible a power disturbance caused disk corruption on your firewall. Is your firewall on a UPS (uninterruptable power supply)? If not, you might want to consider adding one as that will protect you from power surges and brownouts/blackouts like those caused by storms.

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