ltm rule command PCP rejectΒΆ

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



PCP::reject
       Provides the ability to cause a PCP reqeust to fail based on processing
       in the iRule.

SYNOPSIS
       PCP::reject PCP_RESULT_CODE

DESCRIPTION
       This command provides the ability to cause a PCP (Port Control
       Protocol) reqeust to fail based on processing in the iRule. If the
       reject command is issued, the PCP request is rejected with the
       specified result code and no other action is taken by the PCP proxy.

       Syntax

       PCP::reject 

	    * result_code is an integer field between 0 and 255 and is required

RETURN VALUE
VALID DURING
       PCP_REQUEST

EXAMPLES
	when PCP_REQUEST {
	     if {[PCP::request opcode] == "map" &&
		     [PCP::request internal-port] == 22 } {
		 log "Rejecting PCP request to map SSH"
		 PCP::reject 1
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.5.0 --First introduced the command.



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