Snort - the de facto standard for intrusion detection/prevention
next up previous contents
Next: Format Up: Payload Detection Rule Options Previous: Example   Contents


depth

The depth keyword allows the rule writer to specify how far into a packet Snort should search for the specified pattern. depth modifies the previous `content' keyword in the rule.

A depth of 5 would tell Snort to only look for the specified pattern within the first 5 bytes of the payload.

As the depth keyword is a modifier to the previous `content' keyword, there must be a content in the rule before `depth' is specified.

See Figure [*] for an example of a combined content, offset, and depth search rule.



Subsections

Steven Sturges 2007-10-04