Forum Discussion
Brad_53264
Nimbostratus
Nov 01, 2008ASM custom blocking response & iRules
I am trying to write an iRule to do search and replace logic on the body of a custom blocking response.
When I add headers to the custom blocking response within ASM I do not see them when logging the headers within a "when HTTP_RESPONSE" iRule.
Can this be done, or is the ASM blocking response mechanism disconnected from iRules present on the VIP?
I am running 9.4.3.
- hoolio
Cirrostratus
Hi there, - Brad_53264
Nimbostratus
I have multiple VIP's protected by 1 ASM policy. I am trying to configure the ASM blocking response page using SOL7825: Redirecting a blocking response support ID to an external error page. - Unfortunately the HTTP_RESPONSE event fires before ASM has made any modifications to (or replacement of) the response received from the node, and the same is true for the blocking response page. In essence you are seeing the embryonic blocking page before it has actually been constructed by the ASM.
- I agree it would be good Aaron, indeed I attempted to get an RFE CR for this particular use case recently - unfortunately the message in return was that this enhancement would not be considered.
- hoolio
Cirrostratus
Hi Aaron, thanks for the tip. It's there now: - brad_11480
Nimbostratus
if a couple variables would be available in the ASM response page in addition to TS.session.ID this could be easliy done without the complications and 'wizardy' described in the SOL9388 and irules and all. Perhaps a TS.vs.name could be available. - hoolio
Cirrostratus
Hi Brad, - brad_11480
Nimbostratus
And Version 10 has added some Irule events that can be set. - hoolio
Cirrostratus
Hi Brad, - Mike_Nepomny
Nimbostratus
Hi
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