Forum Discussion
Kevin_Stewart
Feb 05, 2014Employee
Two 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.