Forum Discussion

Brandon_12607's avatar
Brandon_12607
Icon for Nimbostratus rankNimbostratus
Jan 29, 2019

iRule error

When i try to save the IRULE it gives me the following error. Trying to block all non app traffic to vip combined with using a SDK on ASM

 

Here are the errors

 

1070151:3: Rule [/Common/ASM_SDK] error: /Common/ASM_SDK:3: error: [command is not valid in current event context (HTTP_REQUEST)][BOTDEFENSE::reason]

 

/Common/ASM_SDK:2: error: [command is not valid in current event context (HTTP_REQUEST)][BOTDEFENSE::action]

 

Below is the iRule:

 

when HTTP_REQUEST { if { ([BOTDEFENSE::action] eq "allow") && (not ([string tolower [BOTDEFENSE::reason]] starts_with "valid mobile application cookie")) } { BOTDEFENSE::action tcp_rst } }

 

2 Replies