doc: flow: update and add new keywords

pull/2364/head
Jason Ish 10 years ago committed by Victor Julien
parent 8f56c23468
commit 1a724ba851

@ -59,36 +59,47 @@ only (only_stream) or on packet only (no_stream).
So with the flow keyword you can match on: So with the flow keyword you can match on:
:: to_client
Match on packets from server to client.
to_client established only_stream
from_client stateless no_stream
to_server to_server
Match on packets from client to server.
from_client
Match on packets from client to server (same as to_server).
from_server from_server
Match on packets from server to client (same as to_client).
**NOTE:** *from_server* and *to_client* are the same, and so are established
*to_server* and _from_client_. This comes from the original Snort Match on established connections.
language and we support it for compatibility reasons. not_established
Match on packets that are not part of an established connection.
These options can be combined. You can use stateless
up to three options. For example: Match on packets that are and are not part of an established connection.
only_stream
:: Match on packets that have been reassembled by the stream engine.
no_stream
flow:to_client, established; Match on packets that have not been reassembled by the stream
flow:from_client, established, only_stream; engine. Will not match packets that have been reeassembled.
only_frag
There are different ways in which can be checked whether the Match packets that have been reassembled from fragments.
connection is established or not. With tcp-traffic a connection starts no_frag
with the three-way-handshake. In the flow is a part in which the state Match packets that have not been reassembled from fragments.
is set. There will be checked in which state the connection is. In
other cases there will be just checked if traffic comes from two Multiple flow options can be combined, for example::
sides.
flow:to_client, established
Example: flow:to_server, established, only_stream
flow:to_server, not_established, no_frag
The determination of *established* depends on the protocol:
* For TCP a connection will be established after a three way
handshake.
.. image:: flow-keywords/Flow1.png .. image:: flow-keywords/Flow1.png
* For other protocols (for example UDP), the connection will be
considered established after seeing traffic from both sides of the
connection.
.. image:: flow-keywords/Flow2.png .. image:: flow-keywords/Flow2.png
Flowint Flowint

Loading…
Cancel
Save