Forum Discussion
Michael_Yates
May 21, 2010Nimbostratus
My initial thought was to use the Return command, but that won't work.
Note that return does not:
1. cause an exit from the iRule altogether;
2. prevent the same event from firing in another iRule; or
3. prevent the same event with a higher priority value from firing in the same iRule.
To prevent further processing of an event in the current rule or other rules for the current TCP connection, you can use 'event EVENT_NAME disable'.
Wiki for Return Command: http://devcentral.f5.com/wiki/default.aspx/iRules/return.html
I don't currently have any iRules that I'm working on where I would use it, so I'd be very interested in seeing what you come up with if this works for you.
Wiki for Event Command: http://devcentral.f5.com/wiki/default.aspx/iRules/event.html