cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

irule help - disable persistence

Ashu_Aggarwal
Cirrus
Cirrus

I have a VS configured with session cookie persistence profile. So all the requests from users & middleware receive session cookie. users receives session cookie is fine but all the requests from middleware routed to only one server in load balancing pool which is not desired. I need to configure a irule so that all the POST messages from middleware should not receive a cookie & get loadbalanced more efficiently. This is the i-rule i came up with. Would it work ?

 

when CLIENT_ACCEPTED {

     switch [IP::client_addr] {

       "10.27.15.231" { persist none }

       "10.27.15.236" { persist none }

       "10.27.15.238" { persist none }

       }

   }

 

 

1 REPLY 1

Simon_Blakely
F5 Employee
F5 Employee

That should work, although you might want to create a data-group of type address, and use class match

 

when CLIENT_ACCEPTED { if {[class match [IP::client_addr] equals "middleware-ip_dg"]} { persist none } }