547
edits
Line 207: | Line 207: | ||
This example describes how to measure the response time of HTTP GET requests. | This example describes how to measure the response time of HTTP GET requests. | ||
<ol> | |||
li>Add a new protocol definition by clicking at the '''plus''' button.<li> | |||
<li>Enter a name for this protocol definition. '''HTTP GET''' is short and appropriate.<li> | |||
<li>As layer 7 protocol filter select '''HTTP'''. If you only want to analyze one specific HTTP server, define a new protocol for only this IP in the L7 module and select it from the custom protocol list.<li> | |||
<li>Now edit the requests by clicking at the '''pencil''' button.<li> | |||
<li>Add a new request by clicking at the '''plus''' button.<li> | |||
<li>Enter the name of this request, '''GET''' is a good choice.<li> | |||
<li>Add a new pattern by clicking at the '''plus''' button in the third column.<li> | |||
<li>Enter the three characters '''GET''' (without the quotes) into the data field<li> | |||
<li>Make sure the '''data type''' drop down box still shows the default value '''string'''.<li> | |||
<li>Enter '''0''' (without the quotes) as the position, as the HTTP GET request always starts with the GET string.<li> | |||
<li>The settings should look like the following picture: | |||
{| class= '''wikitable sortable''' | {| class= '''wikitable sortable''' | ||
|- | |- | ||
|[[File:Http get req edit.png|600px|none|right]] | |[[File:Http get req edit.png|600px|none|right]] | ||
|} | |}<li> | ||
<li>Click at '''DONE''' to return to the previous mask for the HTTP protocol definition.<li> | |||
<li>Now edit the responses by clicking at the '''pencil''' button.<li> | |||
<li>Add a new response by clicking at the '''plus''' button.<li> | |||
<li>Enter the name of this response, '''HTTP response''' is a good choice.<li> | |||
<li>Add a new pattern by clicking at the '''plus''' button in the third column.<li> | |||
<li>Enter the characters '''HTTP/1''' (without the quotes) into the data field.<li> | |||
<li>Make sure the '''data type''' drop down box still shows the default value '''string'''.<li> | |||
<li>Enter '''0''' (without the quotes) as the position, as the HTTP response always starts with the HTTP/1 string.<li> | |||
<li>The settings should look like the following picture: | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| [[File:Http get resp edit.png|600px|none|right]] | | [[File:Http get resp edit.png|600px|none|right]] | ||
|} | |}<li> | ||
<li>Click at '''DONE''' to return to the previous mask for the HTTP protocol definition.<li> | |||
<li>The settings should look like the following picture: | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
|[[File:Http def edit.png|600px|none|right]] | |[[File:Http def edit.png|600px|none|right]] | ||
|} | |}<li> | ||
<li>Click again at '''DONE''' to finalize the configuration of HTTP protocol definition.<li> | |||
<li>The settings should look like the following picture: | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
|[[File:Http def.png|600px|none|right]] | |[[File:Http def.png|600px|none|right]] | ||
|} | |}<li> | ||
<li>Save the settings so the new definition takes effect.<li> | |||
</ol> |
edits