Forum Discussion

Mir_62083's avatar
Mir_62083
Icon for Nimbostratus rankNimbostratus
May 19, 2014

Need translated iRule for bigip: 11.4

Hi guys , i know its very silly but can any one help me to translate the following iRules form ver 11.3 to 11.4, thanks in advance.

 

RPC_ASM_irule

 

when HTTP_REQUEST { if { ([HTTP::path] eq "/rpc/rpcproxy.dll") and \ (([HTTP::method] equals "RPC_IN_DATA") or ([HTTP::method] equals "RPC_OUT_DATA"))}{ set rpcdata 1 } else { set rpcdata 0 } } when HTTP_CLASS_SELECTED { if { $rpcdata == 1 }{ ASM::disable } else { ASM::enable } }

 

2 Replies

  • I believe, despite the wiki article saying otherwise, that you can just do this:

    when HTTP_REQUEST { 
        if { ( [HTTP::path] eq "/rpc/rpcproxy.dll" ) and ( ( [HTTP::method] equals "RPC_IN_DATA" ) or ( [HTTP::method] equals "RPC_OUT_DATA" ) ) } { 
            ASM::disable
        } 
    }