Forum Discussion
fxn-f5-bot_3543
Nimbostratus
Feb 27, 2019iRule or policies based redirection based on HTTPS username behind a GTM
Hi,
I am looking into a requirement to redirect client's traffic to a particular vip/pool based on client's username. The requirement is to have this feature for services running behind a GTM wid-ip....
Faruk_AYDIN
Altostratus
Feb 27, 2019It can be done on LTM not GTM. You can use iRule or a LTM policy. If you have more iRule in the VS, the orders of the iRules are important in terms of which one is first applied. Irule is like :
when HTTP_REQUEST {
switch -glob [URI::query [HTTP::uri] username] {
"user1" -
"user2" -
"user3"
{
pool pool123
}
"user1" -
"user2" -
"user3"
{
pool pool456
}
}
}
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
