Forum Discussion
Using an iRule to add source address affinity persistence.
So something like this? Please see below. thanks!
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "example.100.f5.com"} {
node 10.10.10.77:44351
}
elseif {[string tolower [HTTP::host]] equals "example.200.f5.com"} {
node 10.10.10.77:44358
}
elseif {[string tolower [HTTP::host]] equals "example.300.f5.com"} {
node 10.10.10.77:44359
}
elseif {[string tolower [HTTP::host]] equals "example.400.f5.com"} {
pool Treas_CRM-UAT_3259_Pool <-- need 60 minute source address affinity profile
persist source_addr 255.255.255.255 3600
}
elseif {[string tolower [HTTP::host]] equals "example.500.f5.com"} {
pool Treas_ECC-UAT_3251_Pool <-- need 60 minute source address affinity profile
persist source_addr 255.255.255.255 3600
}
elseif {[string tolower [HTTP::host]] equals "example.600.f5.com"} {
pool Treas_BW-UAT_3258_Pool <-- need 60 minute source address affinity profile
persist source_addr 255.255.255.255 3600
}
else { discard }
}
Recent Discussions
Related Content
* 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