Using iRules to do source port and IP address persistence

Hi folks,

I’m trying to write an iRule to do a persistence to the same node by using the source IP and port.

The syntax is as follows:

when CLIENT_ACCEPTED {

if {[TCP::client_port] and [IP::client_addr] !=0} {

persist uie [TCP::client_port]

}

}

Please anyone help comment and correct on it.

Thanks,

:stuck_out_tongue:

Hi Guy,

Thank you for your help and I have tested with the customer and it sounds GREAT.

:stuck_out_tongue: