Forum Discussion
BIG-IP : iRule to route uri-forms for all hosts
Thanks again Michael. In my case, the goal is for certain uri-forms to be routed to an entirely separate traffic-manager ( custom code built around HAProxy ) which performs all further handling of the request. I'm not at all sure about this, but I believe the other traffic-manager sends its responses directly to the client -- I don't believe responses flow back through BIG-IP ( is this even possible ? I need to research and find out for sure ). If so, BIG-IP will never have opportunity to execute HTTP_RESPONSE event. Subsequent requests on the same keep-alive connection should be processed anew -- because might be a request for a different uri that may or may not be contained in the set of uri-forms routed to the other traffic-manager.
- Michael_JenkinsMar 06, 2015CirrostratusIf that's the case (response skips the BIG-IP), then you may consider using a variable in your iRule and checking it in any other HTTP_REQUEST events to skip processing them. Another option in that case might be to disable events and then use `event HTTP_REQUEST_RELEASE enable` and re-enable all events (`event enable all`) in the release event, which may work for subsequent requests. To test whether the traffic is coming back through the F5, you could use `tcpdump` through the CLI and grab the traffic to see if it's getting any responses from the server.
- Mar 07, 2015turns out I was mistaken -- the alt-tm response traffic does flow back through the F5 on its way to client
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