Forum Discussion

Jay_De_Leo_3956's avatar
Jay_De_Leo_3956
Historic F5 Account
May 19, 2009

Multiple Actions Based On An HTTP Event

Greetings,

 

 

Is it possible to use an iRule to take multiple actions based on a single HTTP event?

 

 

My specific need is to create an iRule that will trigger on an HTTP_REQUEST event, and if that traffic matches a specific set of criteria, to then forward the traffic to a pool, AND redirect the client to a static content page.

 

 

Can that be done?

 

 

Thank you,

 

j1devc2d

3 Replies

  • Hi,

     

     

    It is possible to take multiple actions on a single event, but those two particular actions are mutually exclusive.

     

     

    Denny
  • You could potentially do this serially, using HTTP::retry (Click here). But what are you actually trying to accomplish by making the request to the pool member and redirecting the client to another location?

     

     

    Aaron
  • Jay_De_Leo_3956's avatar
    Jay_De_Leo_3956
    Historic F5 Account
    It is for potentially malicious traffic. We want to send the traffic to a pool for capture and forensics, but also return a static page to the client. The static page can be delivered to the client via the webserver, but we were curious if the iRule could do both.