Adrien_Legros_1
Aug 04, 2009Altostratus
Disable ASM module within Irule
Hello, we currently use BigIp LTM version 10.0.1 with the ASM module.
We have installed this version to use the ASM::disable command that was unavailable in version 10.0
We want to disable ASM for request from external users but when I perform some tests, I can see that the ASM is still intercepting the requests. Here is the Irule:
when HTTP_REQUEST {
set debug 1
if {not [matchclass [IP::client_addr] starts_with $::internalCl]} {
if {$debug}{log local0. "External client [IP::client_addr] DIRECT"}
ASM::disable
pool pool_unprotected
} else {
Internal request [HTTP::uri] via ASM
log local0. "Internal request from [IP::client_addr] to ASM -> [HTTP::uri]"
....
}
I have no errors in the logs, I can see that it is an external IP but ASM is stille intercepting the requests...
the internal part with the ASM works perfectly.
It also works with the command "event disable all" in place of ASM::disable but the full Irule is disable which is what I don't want.
Thanks for your help.