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

    Snort: Global Threshold

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 2.0k 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.
    • M
      mdima
      last edited by

      Hello,
      I am totally new in this forum. I am using pfSense v.1.2.3-Release, I found very useful that Snort is integrated and blocking attacks/intruders.

      I would like to activate also the "Block offenders" options, but if I just enable it I will have a lot of false positives, or people that get banned from my network just because they made a mistake accessing their pop3 account.

      So I found out the magic word: Global Threshold. I would like that pfSense blocks the attacking ip only if from that ip are reported more than n events in t seconds, so I wrote the following rule:

      threshold gen_id 0, sig_id 0, type both, count 40, seconds 600

      in order to blocks the ips that generate more than 40 events in 10 minutes (all the events managed by Snort), but unfortunately it doesn't work (ips are banned at the first event).

      How can I solve this?

      Thank a lot,
      Michele

      1 Reply Last reply Reply Quote 0
      • M
        mdima
        last edited by

        ok, I made it…

        event_filter gen_id 0, sig_id 0, type both, track by_src, count 40, seconds 600

        Also, the Snort service needs to be restarted to apply a change to the suppression file...

        Hope will be useful to the community.

        Michele

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

          Thank you so unbelievable very much for this. Super helpful tbh. I've been so frustrated sometimes by false positives - Thumbs up for this!

          pfsense: 2.1.5-RELEASE, AMD64
          Running on: MB/CPU: ASUS P8H77-I / Core i3-2120T | MEM: 8GB DDR3 | HDD: WD Blue 120GB 2.5" SATA | WAN/LAN: Fujitsu D2735-2 – Intel® chip 82576NS | WLAN: Realtek® 8111F PCIe | Connection: 1000/1000Mbit (Bredband2.com)
          [/U

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