Forum Discussion
Andrea_Arquint
Nimbostratus
May 24, 2012processing sequential redirects within irules
Hi there
For example I've two irules:
irule_one:
--> redirect to www.google.ch
irule_two:
--> redirect to www.switch.ch
What happens with the redirect in irule_two when the first redirect to www.google.ch is processed?
What happens with the TCP session and HTTP session?
thx
bb
2 Replies
- Kevin_Davies_40
Nacreous
Hi bigbrother,
In order to understand better what you are trying to achieve, can you post both iRules please? There are a number of factors here like iRule priority and what conditions are being used to trigger your redirect. If on the other hand you are just testing then try it out! I do this all the time when I have the same kind of questions about iRule behaviour.
As for TCP and HTTP session...
The redirect is effectively a HTTP response from the F5 and not from the backend server so the HTTP session will be complete. The browser will request a new HTTP session to new destination. The browser will create a new TCP session to the new server to support the new HTTP session.
Regards
Kevin - santosh_81454
Nimbostratus
Hi,
When you apply more than one redirect in the definition of the irule, you may face an error.
So, you may want to use the parameter "return" after the initial redirect, so once the TMM reaches the return statement, the system will exit out of the irule.
- Santosh.
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
