ltm rule command CONNECTOR remapΒΆ

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

CONNECTOR::remap
       Set client/server IP/Port from connector.

SYNOPSIS
       CONNECTOR::remap server_addr IP_ADDR

       CONNECTOR::remap client_addr IP_ADDR

       CONNECTOR::remap client_port PORT

       CONNECTOR::remap server_port PORT

DESCRIPTION
       CONNECTOR::remap client_addr
	   Set the client IP address from connector profile.  CONNECTOR::remap server_addr
	   Set the server IP address from connector profile.  CONNECTOR::remap client_port
	   Set the client port from connector profile.	CONNECTOR::remap server_port
	   Set the server port from connector profile.

RETURN VALUE
VALID DURING
       ANY_EVENT

EXAMPLES
	when CONNECTOR_OPEN {
	    if {([CONNECTOR::profile] eq "/Common/connector_profile_1")} {
		CONNECTOR::remap client_addr 10.10.10.2
		log local0. "Remap client IP address from connector to 10.10.10.2"
		CONNECTOR::remap client_port 333
		log local0. "Remap client port from connector to 333"
		CONNECTOR::remap server_addr 20.20.20.2
		log local0. "Remap server IP address from connector to 20.20.20.2"
		CONNECTOR::remap server_port 999
		log local0. "Remap server port from connector to 999"
	    }
	}

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

BIG-IP							    2022-04-12							  iRule(1)