1,775
edits
No edit summary |
No edit summary |
||
Line 257: | Line 257: | ||
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. | ||
:1- Add a new protocol definition by clicking at the ‘plus’ button. | |||
:2- Enter a name for this protocol definition. “HTTP GET” is short and appropriate. | |||
:3- 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. | |||
:4- Now edit the requests by clicking at the ‘pencil’ button. | |||
:5- Add a new request by clicking at the ‘plus’ button. | |||
:6- Enter the name of this request, “GET” is a good choice. | |||
:7- Add a new pattern by clicking at the ‘plus’ button in the third column. | |||
:8- Enter the three characters “GET” (without the quotes) into the data field | |||
:9- Make sure the “data type” drop down box still shows the default value “String”. | |||
:10- Enter “0” (without the quotes) as the position, as the HTTP GET request always starts with the GET string. | |||
:11- 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]] | ||
|} | |} | ||
: | :12- Click at ‘DONE’ to return to the previous mask for the HTTP protocol definition. | ||
: | :13- Now edit the responses by clicking at the ‘pencil’ button. | ||
:14- Add a new response by clicking at the ‘plus’ button. | |||
:15- Enter the name of this response, “HTTP response” is a good choice. | |||
:16- Add a new pattern by clicking at the ‘plus’ button in the third column. | |||
:17- Enter the characters “HTTP/1” (without the quotes) into the data field. | |||
:18- Make sure the “data type” drop down box still shows the default value “String”. | |||
:19- Enter “0” (without the quotes) as the position, as the HTTP response always starts with the HTTP/1 string. | |||
:20- 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]] | ||
|} | |} | ||
:21- Click at ‘DONE’ to return to the previous mask for the HTTP protocol definition. | |||
:22- 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]] | ||
|} | |} | ||
:23- Click again at ‘DONE’ to finalize the configuration of HTTP protocol definition. | |||
:24- 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]] | ||
|} | |} | ||
:25- Save the settings so the new definition takes effect. |
edits