150 Citrix NetScaler Policy Configuration and Reference Guide

Note: As the preceding example shows, if you configure an advanced expression on the command line, you must escape the quotation marks. For more information, see “Configuring Advanced Expressions in a Policy,” on page 57.

Prefixes for IPV4 Addresses and IP Subnets

The following table describes prefixes that return IPv4 addresses and subnets and segments of the addresses.

You can apply the IP address-specific operations to this prefix, as described in this chapter. You can also apply numeric operations. For more information on numeric operations, see “Basic Operations on Expression Prefixes,” on page 44 and “Compound Operations for Numbers,” on page 48.

Prefixes That Evaluate IP and MAC Addresses

Prefix

Description

 

 

CLIENT.IP.SRC

Returns the source IP of the current packet as an IP

 

address or as a number.

CLIENT.IP.DST

Returns the destination IP of the current packet as

 

an IP address or as a number.

SERVER.IP.SRC

Returns the source IP of the current packet as an IP

 

address or as a number.

SERVER.IP.DST

Returns the destination IP of the current packet as

 

an IP address or as a number.

Operations for IPV4 Addresses

An IPv4 address is a traditional format that uses four numeric values that are separated by periods, for example, nn.nnn.nn.nnn.

The following table describes operations on IP addresses.

Operations on IPV4 Addresses

Prefix

Description

 

 

ip address.EQ(address)

Returns a Boolean TRUE if the IP address value is

 

same as the address argument. The following

 

example checks whether the client's destination IP

 

address is equal to 10.100.10.100:

 

client.ip.dst.eq(10.100.10.100)

Page 164
Image 164
Citrix Systems 9.2 Prefixes for IPV4 Addresses and IP Subnets, Operations for IPV4 Addresses, Operations on IPV4 Addresses