ltm rule command clientsideΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



clientside
       Causes the specified iRule commands to be evaluated under the client-
       side context.

SYNOPSIS
       clientside (NESTING_SCRIPT)?

DESCRIPTION
       Causes the specified iRule commands to be evaluated under the client-
       side context. This command has no effect if the iRule is already being
       evaluated under the client-side context. If there is no argument, the
       command returns 1 if the current event is in the clientside context or
       0 if not.

RETURN VALUE
       clientside
	   Returns 1 if the current event is in the clientside context or 0 if
       not.

       clientside {}
	   Causes the specified iRule commands to be evaluated under the
       client-side context.

VALID DURING
       ALL_SERVERSIDE_EVENTS

EXAMPLES
	when SERVER_CONNECTED {
	   # Check if the client IP address is 10.1.1.80
	   # [clientside {IP::remote_addr}] is equivalent to [IP::client_addr]
	   if { [IP::addr [clientside {IP::remote_addr}] equals 10.1.1.80] } {
	      # Do something like drop the packets in this example
	      discard
	   }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.5.2 A runtime check is added: if the server side connection
       does not exist, this command aborts execution and returns a TCL error.
       One common problem is such script: "serverside {SSL::disable}" when
       there is no server side connection, it needs to be updated to
       "SSL::disable serverside".  @BIGIP-11.5.3 A runtime check is added: if
       the server side connection does not exist, this command aborts
       execution and returns a TCL error. One common problem is such script:
       "serverside {SSL::disable}" when there is no server side connection, it
       needs to be updated to "SSL::disable serverside".  @BIGIP-11.6.0 A
       runtime check is added: if the server side connection does not exist,
       this command aborts execution and returns a TCL error. One common
       problem is such script: "serverside {SSL::disable}" when there is no
       server side connection, it needs to be updated to "SSL::disable
       serverside".  @BIGIP-12.0.0 A runtime check is added: if the server
       side connection does not exist, this command aborts execution and
       returns a TCL error. One common problem is such script: "serverside
       {SSL::disable}" when there is no server side connection, it needs to be
       updated to "SSL::disable serverside".



BIG-IP				  2017-01-31			      iRule(1)