For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

kevinmc's avatar
kevinmc
Icon for Altocumulus rankAltocumulus
Aug 07, 2017

LTM persistence

A virtual server has a default persistence profile set (cookie) and an iRule assigned as below

Which of these will take preference?

when CLIENT_ACCEPTED {

log local0. "Start Log"

log local0. "Client Connect: [IP::client_addr]:[TCP::client_port]"

if { [class match [IP::client_addr] equals addresslist] } {

pool SF-ECRPREP

persist source_addr

log local0. "Sent to Pool [LB::server addr] with Source Persist"

log local0. "End Log"

        }

else {

log local0. "Start Log"

log local0. "Client Connect: [IP::client_addr]:[TCP::client_port]"

pool SF-ECRPREP

persist cookie insert ECRPREP 0

log local0. "Sent to Pool [LB::server addr] with Cookie Persist"

log local0. "End Log"

} 

}

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Traffic that matches the first condition will have a source address persistence profile added, as well as the default cookie persistence.

     

    The traffic that matches the second condition will only have the ECRPREP cookie assigned.

     

    Hope this helps,

     

    N