doc: Move fast_pattern and prefilter to dedicated page

pull/3062/head
Ralph Broenink 8 years ago committed by Victor Julien
parent fea037fda8
commit bb1bf2643d

@ -561,7 +561,7 @@ Fast Pattern
when doing fast pattern matching, something the other algorithims and when doing fast pattern matching, something the other algorithims and
Snort do not do. Snort do not do.
- :doc:`fast-pattern` - :ref:`rules-keyword-fast_pattern`
Don't Cross The Streams Don't Cross The Streams
----------------------- -----------------------

@ -706,9 +706,3 @@ pcre
---- ----
For information about the ``pcre`` keyword, check the :doc:`pcre` page. For information about the ``pcre`` keyword, check the :doc:`pcre` page.
fast_pattern
------------
For information about the ``fast_pattern`` keyword, check the
:doc:`fast-pattern` page.

@ -6,8 +6,8 @@ Suricata Rules
intro intro
meta meta
header-keywords header-keywords
prefilter
payload-keywords payload-keywords
prefilter-keywords
http-keywords http-keywords
flow-keywords flow-keywords
flowint flowint

@ -6,7 +6,6 @@ Payload Keywords
:maxdepth: 2 :maxdepth: 2
pcre pcre
fast-pattern
Payload keywords inspect the content of the payload of a packet or Payload keywords inspect the content of the payload of a packet or
stream. stream.
@ -303,8 +302,3 @@ pcre
---- ----
For information about pcre check the :doc:`pcre` page. For information about pcre check the :doc:`pcre` page.
fast_pattern
------------
For information about fast_pattern check the :doc:`fast-pattern` page.

@ -1,6 +1,11 @@
Fast Pattern =====================
============ Prefiltering Keywords
=====================
.. _rules-keyword-fast_pattern:
fast_pattern
============
.. toctree:: .. toctree::
fast-pattern-explained fast-pattern-explained
@ -41,7 +46,7 @@ Fast-pattern can also be combined with all previous mentioned
keywords, and all mentioned HTTP-modifiers. keywords, and all mentioned HTTP-modifiers.
fast_pattern:only fast_pattern:only
----------------- ~~~~~~~~~~~~~~~~~
Sometimes a signature contains only one content. In that case it is Sometimes a signature contains only one content. In that case it is
not necessary Suricata will check it any further after a match has not necessary Suricata will check it any further after a match has
@ -50,8 +55,8 @@ matches. Suricata notices this automatically. In some signatures this
is still indicated with 'fast_pattern:only;'. Although Suricata does is still indicated with 'fast_pattern:only;'. Although Suricata does
not need fast_pattern:only, it does support it. not need fast_pattern:only, it does support it.
Fast_pattern: 'chop' fast_pattern:'chop'
-------------------- ~~~~~~~~~~~~~~~~~~~~
If you do not want the MPM to use the whole content, you can use If you do not want the MPM to use the whole content, you can use
fast_pattern 'chop'. fast_pattern 'chop'.
@ -61,3 +66,16 @@ For example::
content: “aaaaaaaaabc”; fast_pattern:8,4; content: “aaaaaaaaabc”; fast_pattern:8,4;
This way, MPM uses only the last four characters. This way, MPM uses only the last four characters.
prefilter
=========
The prefilter engines for other non-MPM keywords can be enabled in specific rules by using the 'prefilter' keyword.
In the following rule the TTL test will be used in prefiltering instead of the single byte pattern:
::
alert ip any any -> any any (ttl:123; prefilter; content:"a"; sid:1;)
For more information on how to configure the prefilter engines, see :ref:`suricata-yaml-prefilter`

@ -1,13 +0,0 @@
Prefilter
=========
The prefilter engines for other non-MPM keywords can be enabled in specific rules by using the 'prefilter' keyword.
In the following rule the TTL test will be used in prefiltering instead of the single byte pattern:
::
alert ip any any -> any any (ttl:123; prefilter; content:"a"; sid:1;)
For more information on how to configure the prefilter engines, see :ref:`suricata-yaml-prefilter`
Loading…
Cancel
Save