Current iRule:
when HTTP_REQUEST { set uri [string tolower [HTTP::uri]]
switch -glob $uri { “/test" { pool TEST_POOL } "/test1” { pool TEST2_POOL } default { pool MY_POOL } } }
Is it possible to throw in “ASM::disable” for the “/test1*” condition to this existing iRule? I’m running version 12.1.2 HF1.
Update. I was able to add “ASM::disable” for the test1 condition and the developer has verified the request is no longer being blocked.
ASM policies are enabled in LTM with a LTM policy.
why are you trying to disable ASM within an irule instead of LTM policy?
In the LTM policy, add a rule above the existing rule with condition :
HTTP Uri path starts with /test1
and with action
disable ASM