Forum Discussion
Anand_128528
Nimbostratus
Feb 05, 2014Combine Client accepted and http_request.
I have an requirement to forward a source IP to particular pool member. Since I already have http_request configured is it a good idea to add client_accepted into the same irule ?
when HTTP_REQUEST {...
Kevin_Stewart
Employee
Feb 05, 2014Two things:
-
The order of the events in the iRule is not important. The compiler will reorganize and optimize the code as required.
-
Because IP data is available to all events after TCP, you can skip the CLIENT_ACCEPTED event altogether and perform your IP::client_addr check directly inside the HTTP_REQUEST event. You'll obviously need to reorganize your conditional logic to accommodate, but it should ultimately make you iRule simpler.
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
