Forum Discussion
nkroon1
Cirrus
Sep 25, 2019iRule to redirect pool based on header and ignoring SNAT
I'm currently trying to setup an iRule where when a user comes in and the header has iPhone in it, they are redirected to a different pool. I'm able to confirm my iRule is functional, however the ...
Islam_Nadim1
Cirrus
Nov 15, 2019Hello,
The first question I might ask is, which header field? Keep in mind that iRule is case insensitive .. So, you can try something like this adding it after the closure tag for the "when RULE_INIT":
when HTTP_REQUEST
{
if ( tolower [HTTP::header <header_name>] contains "iphone" ) {
snat none
pool <Your_Destination_pool>
}
}Give it a try and inform me if it works with you.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
