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

Regex pattern matching with large payloads for TCP port

IDS/IPS
1
1
141
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.
  • H
    h.panahi
    last edited by Oct 27, 2024, 12:28 PM

    Hello, I'm new to Snort and have a question about pattern matching and memory handling. I want to set a rule for TCP traffic on port 4050 to drop packets that contain the pattern "ABC*XYZ". My concern is that the content between "ABC" and "XYZ" could be large, even up to 1GB or more. How does Snort handle such a pattern?

    If Snort detects "ABC" but doesn’t find "XYZ" right away, does it buffer all incoming packets on this port until "XYZ" appears to decide whether to drop the session? And overall, is this kind of regex pattern practical and efficient for real-time network monitoring?

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