152 Citrix NetScaler Policy Configuration and Reference Guide

http://[9901:0ab1:22a2:88a3:3333:4a4b:5555:6666]/

The brackets in the IPv6 URL differentiate the IP address and the port number. The following expression is an example of an IPv6 URL that contains a port number:

https://[9901:0ab1:22a2:88a3:3333:4a4b:5555:6666]:8080/ IPv6 addresses are always in hex format (RFC 2373).

Note that you can only use the '+' operator to combine IPv6 expressions with other expressions. The output is a concatenation of the string values that are returned from the individual expressions. You cannot use any other arithmetic operator with an IPv6 expression. The following syntax is an example:

client.ipv6.src + server.ip.dst

For example, if the client source IPv6 address is ABCD:1234::ABCD, and the server destination IPv4 address is 10.100.10.100, the preceding expression returns "ABCD:1234::ABCD10.100.10.100".

Note that when the NetScaler receives an IPv6 packet, it assigns a temporary IPv4 address from an unused IPv4 address range and changes the source address of the packet to this temporary address. At response time, the outgoing packet's source address is replaced with the original IPv6 address.

Note: You can combine an IPv6 expression with any other expression except an expression that produces a Boolean result.

Expression Prefixes for IPv6 Addresses

When an IP address uses IPv6 format, it can be treated as text data. For example, the prefix client.ipv6.dst returns a string that can be evaluated as text.

The following table describes IPv6 expression prefixes.

IPv6 Expression Prefixes that Return Text

Prefix

Description

 

 

CLIENT.IPV6

Operates on the IPv6 address in with the current packet.

CLIENT.IPV6.DST

Returns the IPv6 address in the destination field of the

 

IP header.

CLIENT.IPV6.SRC

Returns the IPv6 address in the source field of the IP

 

header. Following are examples:

 

client.ipv6.src.in_subnet(2007::2008/64)

 

client.ipv6.src.get1.le(2008)

SERVER.IPV6

Operates on the IPv6 address in with the current packet.

Page 166
Image 166
Citrix Systems 9.2 manual Expression Prefixes for IPv6 Addresses, IPv6 Expression Prefixes that Return Text, IP header