Match Rule Functions
Match rule
functions
generally test for certain strings or settings in the headers and URI of a client
request. In the table below, we first discuss match rule functions that examine information in the
request other than the URI, and then we discuss the URI related functions.
The following table lists the non-URI functions supported by Equalizer match rules:
any()
This function always evaluates to
true
-- that is, this function matches any
incoming request.
client_ip(string)
This function evaluates to
true
only if the IP address of the client machine
making the connection matches the
string
argument.
The
string
can be a simple IP address (e.g., “192.168.1.110”), or an IP
address in Classless Inter-Domain Routing (CIDR) notation (e.g.,
“192.168.1.0/24”). This function can be useful in restricting match
expressions to a particular client or group of clients, which can aid in
debugging a new match rule when a cluster is in production. Only the spe-
cified clients match the rule, leaving other clients to be handled by other
match rules
debug_message(string)
This function always evaluates to
true
. It writes the
string
argument to
the Event Log for the cluster (
View > Event Log
). This function can be
logically ANDed and ORed with other functions to write debug messages.
Use this function for testing and debugging only. Do not use it in pro-
duction environments, since it has a negative impact on performance.
ignore_case()
This function always evaluates to
true
, and is intended to be used to apply
the
ignore_case
flag for comparisons when it is
not set
on the cluster.
When this function is ANDed with other functions, it has the effect of for-
cing case to be ignored for any comparisons done by the match rule.
observe_case()
This function always evaluates to
true
, and is intended to be used to over-
ride the
ignore_case
flag for comparisons when it is
set
on a cluster.
When this function is ANDed with other functions, it has the effect of for-
cing case to be honored for any comparisons done by the match rule.
http_09()
This function takes no arguments and evaluates to
true
if the HTTP pro-
tocol used by the request appears to be HTTP 0.9. This is done by infer-
ence: if an explicit protocol level is absent after the request URI, then the
request is considered HTTP 0.9.
method(string)
This function evaluates to
true
if the
string
argument exactly matches the
Request Method (e.g., GET, POST, etc.) specified in the request. Note that
by default Equalizer forwards packets to servers without determining
whether or not the method specified in the request is valid (i.e., is a
method specified in Section 9 of RFC2616). One use of the
method()
function is to be able to override this default behavior and prevent invalid
requests from being forwarded to a server.
ssl2()
HTTPS only. This function evaluates to
true
if the client negotiated the
encrypted connection using SSL version 2.0.
ssl3()
HTTPS only. This function evaluates to
true
if the client negotiated the
encrypted connection using SSL version 3.0.
tls1()
HTTPS only. This function evaluates to
true
if the client negotiated the
encrypted connection using TLS version 1.0.
Copyright © 2014 Coyote Point Systems, A Subsidiary of Fortinet, Inc.
All Rights Reserved.
393
Equalizer Administration Guide
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: ......