Working with Clusters and Match Rules
Example Match Rules
The Related Topics navigate to examples of how to create a few of the most commonly used types
of match rules.
Parsing the URI Using Match Rules
In this example, we want to direct requests to a pool of specific server pools based on the
hostname used in the URI contained in the request. We want all requests for URIs that start with
“support” to go to one server pool, and all other requests that do
not
match this rule to be load
balanced across all server pools in the cluster.
To do this, we will construct one match rule that parses the URI; if the URI contains the string
“support”
, it forwards the request to the server pool
sv_support
. For this example, we assume that
a cluster with server pools has already been defined.
1. Log into the GUI using a login that has add/del access for the cluster.
2. In the left frame, right-click the name of the Layer 7 cluster to which you want to add the
rule, and select
Add Match Rule
. The
Add Match Rule
dialog appears:
a. Type a name into the
Match Rule Name
field. In this case
New Match Rule
was
added.
b. Select the
Next Match Rule
from the drop-down list to determine the placement
of
New Match Rule
in the order of processing. In this case
test
was selected.
c. Click on
Commit
. If
test
was selected as the
Next Match Rule
it will appear
beneath
Test
in the navigation pane on the left.
The match rule is created, added to the navigation pane on the left, and its
Configuration
tab is
opened. Refer to
"Using the Match Rule Expression Editor"
on page 409 for further descriptions on
using the Expression Editor.
3. Click on the
Expression Editor
button and drag and drop
host_prefix
from the drop-down box
in the
Functions
pane into the
Expression Workbench
pane.
4. Type “
support
” into the
hostname prefix
text box as follows:
412
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: ......