Forum Discussion
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 } }
It seems the
commands are only valid in theBOTDEFENSE
event. You are using them in theBOTDEFENSE_ACTION
event. See:HTTP_REQUEST
https://devcentral.f5.com/wiki/iRules.BOTDEFENSE__action.ashx
- Lee_Sutcliffe
Nacreous
BOTDEFENSE:: namespace commands are not valid within an
event.HTTP_REQUEST
Take a look at the Wiki -
is the only valid event forBOTDEFENSE_ACTION
andBOTDEFENSE::action
BOTDEFENSE::reason
https://devcentral.f5.com/wiki/iRules.BOTDEFENSE__action.ashx https://devcentral.f5.com/wiki/iRules.BOTDEFENSE__reason.ashx
Recent Discussions
Related Content
* 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