Chapter 15 Unified Threat Management for FortiOS 5.0 : Custom Application & IPS Signatures : Custom signature keywords : Session keywords
  
Session keywords
flow
Syntax: --flow {from_client[,reversed] | from_server[,reversed] | bi_direction };
Description:
Specify the traffic direction and state to be inspected. They can be used for all IP traffic.
Example: ‑‑src_port 41523; ‑‑flow bi_direction;
The signature checks traffic to and from port 41523.
If you enable “quarantine attacker”, the optional reversed keyword allows you to change the side of the connection to be quarantined when the signature is detected.
For example, a custom signature written to detect a brute-force log in attack is triggered when “Login Failed” is detected from_server more than 10 times in 5 seconds. If the attacker is quarantined, it is the server that is quarantined in this instance. Adding reversed corrects this problem and quarantines the actual attacker.
Previous FortiOS versions used to_client and to_server values. These are now deprecated, but still function for backwards compatibility.