Managing client connections
-
Configuring the ICMP Response. You can configure the NetScaler appliance to send ICMP responses to PING requests according to your settings. On the IP address corresponding to the virtual server, set the ICMP RESPONSE to VSVR_CNTRLD, and on the virtual server, set the ICMP virtual server RESPONSE. The following settings can be made on a virtual server:
-
When you set ICMP virtual server RESPONSE to PASSIVE on all virtual servers, the NetScaler appliance always responds.
-
When you set ICMP virtual server RESPONSE to ACTIVE on all virtual servers, the ADC appliance responds even if one virtual server is UP.
-
When you set ICMP virtual server RESPONSE to ACTIVE on some and PASSIVE on others, the ADC appliance responds even if one virtual server set to ACTIVE is UP.
-
Redirecting Client Requests to a Cache
To configure cache redirection on a virtual server by using the CLI
set cs vserver <name> -cacheable <Value>
Example
set cs vserver Vserver-CS-1 -cacheable yes
To configure cache redirection on a virtual server by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, and open a virtual server.
-
In Advanced Settings, select Traffic Settings, and select Cacheable.
Enabling Delayed Cleanup of Virtual Server Connections
To configure the down state flush setting on a virtual server by using the CLI
set cs vserver <name> -downStateFlush <Value>
Example
set cs vserver Vserver-CS-1 -downStateFlush enabled
To configure the down state flush setting on a virtual server by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, and open a virtual server.
-
In Advanced Settings, select Traffic Settings, and then select Down State Flush.
Rewriting Ports and Protocols for Redirection
To configure HTTP redirection on a virtual server by using the CLI
set cs vserver <name> -redirectPortRewrite <Value>
Example
set cs vserver Vserver-CS-1 -redirectPortRewrite enabled
To configure HTTP redirection on a virtual server by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, and open a virtual server.
-
In Advanced Settings, select Traffic Settings, and select Rewrite.
Inserting the IP Address and Port of a Virtual Server in the Request Header
To insert the IP address and port of the virtual server in the client requests by using the CLI
set cs vserver <name> -insertVserverIPPort <vServerIPPORT>
Example
set cs vserver Vserver-CS-1 -insertVserverIPPort 10.201.25.136:80
To insert the IP address and port of the virtual server in the client requests by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, and open a virtual server.
-
In Advanced Settings, select Traffic Settings and, in the Virtual Server IP Port Insertion list, select VIPADDR or V6TOV4MAPPING, and specify a port header in the virtual server IP Port Insertion Value.
Setting a Time-out Value for Idle Client Connections
To set a time-out value for idle client connections by using the CLI
set cs vserver <name> -cltTimeout <Value>
Example
set cs vserver Vserver-CS-1 -cltTimeout 100
To set a time-out value for idle client connections by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, and open a virtual server.
-
In Advanced Settings, select Traffic Settings, and specify a Client Idle Time-Out value.
Identifying Connections with the 4-tuple and Layer 2 Connection Parameters
<source IP>:<source port>::<destination IP>:<destination port>) and Layer 2 connection parameters. The Layer 2 connection parameters are the MAC address, VLAN ID, and channel ID.
To set the L2Conn option for a content switching virtual server by using the CLI
- set cs vserver <name> -l2Conn (**ON** | **OFF**)
- show cs vserver <name>
Example
> set cs vserver mycsvserver -l2Conn ON
Done
> show cs vserver mycsvserver
mycsvserver (192.0.2.56:80) - HTTP Type: CONTENT
State: UP
. . .
. . .
L2Conn: ON Case Sensitivity: ON
. . .
. . .
Done
>
To set the L2Conn option for a content switching virtual server by using the GUI
-
Navigate to Traffic Management > Content Switching > Virtual Servers, and open a virtual server.
-
In Advanced Settings, select Traffic Settings, and then select Layer 2 Parameters.