Forum Discussion
F5Apprentice112
Mar 10, 2017Nimbostratus
How to maintain Cookie persistence across web application with multiple ports (i.e. 80, 8443)
We have an F5 LB. There are two back-end servers that sit behind it. SSL termination is at the LB. Mapping to the back-end servers is 443 to 80, 80 to 80, and 8443 to 8443. That is, on the back-end s...
cjbarr1234
Mar 10, 2017Altostratus
This may work:
ltm rule badsoftware {
when CLIENT_ACCEPTED {
if { [IP::port [IP::client_port] equals 80] } {
switch [TCP::client_port] {
x {
node server_80
persist cookie cookie5678
}
default {
Sends traffic to server5678
}
}
} elseif { [IP::port [IP::client_port] equals 1234] } {
switch [TCP::client_port] {
x {
node node1234
persistence cookie cookie1234
}
default {
maintain cookie persiste
}
}
} else {
Do Nothing special, just serve traffic
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects