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

    Snort broken: remove blocked hosts every 1 hour

    Scheduled Pinned Locked Moved pfSense Packages
    10 Posts 5 Posters 2.4k 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.
    • C
      ccb056
      last edited by

      here is my setup:
      2.0.2-RELEASE (amd64)
      Snort 2.9.2.3 pkg v. 2.5.4

      I have snort setup to remove blocked hosts every 1 hour, however this does not work.
      I have hosts that have been blocked for days.

      Does anyone else have this bug?

      1 Reply Last reply Reply Quote 0
      • B
        bwong3351
        last edited by

        yes it is broken for me also ….. I just have a script to clean it regularly

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

          Is there a centralized bug tracker for this snort package?

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

            The "remove blocked hosts" setting works for me and always has.  The only difference is I am currently running the 32-bit install of 2.0.2 instead of the 64-bit.  I would not expect that to be a problem, but who knows.  All the GUI does is register a cron job to do this.

            If you have not already, try completely and totally uninstalling and removing Snort.  Click the "X" on the Installed Packages tab.  When that completes, go to the Available Packages tab and re-install it.  Using just the "re-install icon" on the Installed Packages tab leads to unpredictable results.  Don't know why, but it does.  Many others have had weird errors and problems fixed by simply following these steps.

            You can report bugs at http://redmine.pfsense.org.

            Bill

            1 Reply Last reply Reply Quote 0
            • RonpfSR
              RonpfS
              last edited by

              This may also be related to the crontab entry …
              Install crontab package and have a look at it

              2.4.5-RELEASE-p1 (amd64)
              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

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

                I have tried this uninstall method multiple times, it does not fix it.
                I have the same problem on 2 different machines.
                The whitelisted IPs are for ipsec endpoints.
                Both machines are pretty standard setups, x64 with a single WAN and single LAN port, no VLANs.

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

                  @RonpfS:

                  This may also be related to the crontab entry …
                  Install crontab package and have a look at it

                  OK, I have just installed Cron 0.1.7
                  What should I do next?

                  1 Reply Last reply Reply Quote 0
                  • AhnHELA
                    AhnHEL
                    last edited by

                    Make the Cron entries for Snort match whats pictured below.

                    Untitled.png
                    Untitled.png_thumb

                    AhnHEL (Angel)

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

                      Excellent!  Thank you, I changed

                      
                      /usr/bin/nice -n20 /usr/local/sbin/expiretable -t 604800 snort2c 
                      
                      

                      to

                      
                      /usr/bin/nice -n20 /usr/local/sbin/expiretable -t 3600 snort2c 
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • AhnHELA
                        AhnHEL
                        last edited by

                        That was good to block a host for 7 days.  The setting in Snort @ Global Settings never updates this to the actual requested time setting.  You should be good now for blocked hosts to be removed after one hour.  Just be sure to stop the Snort service, delete any current blocked hosts, and then restart Snort.

                        AhnHEL (Angel)

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