Specifications

Rules
BIG-IP® Reference Guide 4-63
2. Click the Add button.
The Add Rule screen opens.
3. In the Add Rule screen, fill in the fields to add a rule.
You can type in the rule as an unbroken line, or you can use the
Enter key to add line breaks.
4. Click Done.
To define a rule from the command line
To define a rule from the command line, use the following syntax:
b rule <rule_name> ’{ <if statement> | <cache_statement }’
Table 4.13 contains descriptions of all the elements you can use to create
rules.
Element Description
rule definition
rule <rule_name { <if_statement> | <discard_statement> | <use_statement> |
<<cache_statement> | 41
<redirect_statement>}
if statement
if ( <expression>){<statement> }
[ { else <statement> } ] [ { else if <statement> } ]
discard statement
discard |
use statement
use ( <pool_name> )
cache statement
cache ( <expression> ) { origin_pool <pool_name> cache_pool <pool_name> [
hot_pool <pool_name> ] [ hot_threshold <hit_rate> ] [ cool_threshold
<hit_rate> ] [ hit_period <seconds> ][ content_hash_size
<sets_in_content_hash> ] }
redirect statement
redirect ( <redirect URL> )
literal
<regex_literal>
<string_literal>
<address_literal>
regular expression literal Is a string of 1 to 63 characters enclosed in quotes that may contain regular expressions
string literal Is a string of 1 to 63 characters enclosed in quotes
address literal
<dot_notation_longword> [netmask <dot_notation_longword>]
Dot notation longword
<0-255>.<0-255>.<0-255>.<0-255>
Table 4.13 Elements for rules construction