Forum Discussion

Peter__Chan_109's avatar
Peter__Chan_109
Icon for Nimbostratus rankNimbostratus
Oct 26, 2005

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,

 

 

 

:P
  • Hi Guy,

     

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

     

     

    :P