Forum Discussion
Steve_Knapp
Altostratus
Sep 09, 2020Can Irule forward request after ASM block?
Below is a snippet from an inquiry I received from our web developers. Matching on part of the URI is no problem, but what about forwarding the request even after blocked by the ASM? ++++++++++++++...
Andrew-F5
Employee
Sep 11, 2020"The iRule can buffer the request so it persists beyond the ASM block. This alone may be the show-stopper as this may be a significant performance problem."
◘ I'm not entirely sure what you mean by this?
"The iRule can send to a different location than just allowing to pass to the back end pool members"
◘ You can use a 'forward' command, redirect, etc, after the 'ASM::unblock' statement.
when ASM_REQUEST_DONE {
#log local0.debug "\[ASM::status\] = [ASM::status]"
if { [ASM::status] equals "blocked" } {
ASM::unblock
log local0. "Unblocked request with ID [ASM::support_id]"
}
}References:
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