Automatic Cluster Responders
http://www.example3.net/
<path>
The following regular expression:
^(([^ :/?#]+):)?//([^ \r/?#.]+)?\.([^ \r/?#.]+)?\.([^ \r/?#]+)?(/[^ \r]+)?
breaks the request URL into the following named variables:
$0 http://www.example.com/
<path>
$1 http:
$2 http
$3 www
$4 example
$5 com
$6 /
<path>
We can then use these variables in the URL field as shown in the following Responder
Configuration
screen (tab):
It should be noted that this example will not work for requests with destination URLs specified
with an IP address for a hostname (e.g.,"12.34.56.78" instead of "www.example.com"). Providing
support for IP addresses in URLs as well as DNS host names would involve either: a more
complex regular expression that matches both; or, an additional Responder with a regular
expression that matches IP addresses, as well as two match rules to match the two types of host
names (so that the appropriate Responder replies to the client).
Example 3 - Directory Redirect
The next example involves redirecting requests that include a particular directory to a different
domain, omitting the directory from the redirect URL’s path. Let’s say we want all requests for:
http://www.example.com/images/
<path>
to be redirected to:
http://images.example.com/
<path>
The following regular expression:
(([^ :/?#]+):)?//([^ \r/?#.]+)?.([^ \r/?#.]+)?.([^ \r/?#]+)?(/[^ \r]+)?(/[^ \r]+)
breaks the request URL into the following named variables:
$0 http://www.example.com/images/
<path>
$1 http
$2 http:
484
Copyright © 2014 Coyote Point Systems, A Subsidiary of Fortinet, Inc.
Summary of Contents for Equalizer GX Series
Page 18: ......
Page 32: ...Overview 32 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Page 42: ......
Page 52: ......
Page 64: ......
Page 72: ......
Page 76: ......
Page 228: ......
Page 238: ......
Page 476: ......
Page 492: ......
Page 530: ......
Page 614: ......
Page 626: ......
Page 638: ......
Page 678: ......
Page 732: ...Using SNMP Traps 732 Copyright 2014 Coyote Point Systems A Subsidiary of Fortinet Inc ...
Page 754: ......
Page 790: ......
Page 804: ......
Page 842: ......
Page 866: ......