Forum Discussion
irule to select an ASM policy
Dear community,
I am trying to disable "Attack Signature" checks for a specific URL.
As I didn't find a way to do it directly via the ASM policy itself, I thought to do it like that :
Add an irule to my VS that will disable the ASM (ASM::disable), then based on my URL I want to use asm_policy_1 or asm_policy_2.
The problem is that I didn't find a command to make :
ASM::select asm_policy_1 $
ASM::enable
or something like the command "WEBSSO::select"...
Any idea on how to do it ?
Thanks
- cjunior
Nacreous
Hello,
You could do this same with a LTM Policy.
- Anesh
Cirrostratus
What you are looking to achieve can be done via Local Traffic Policies and if you want to use iRule you can try the below
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "*/car/*" { ASM::enable /Common/asm_policy_1 } "*/house/*" { ASM::enable /Common/asm_policy_2 } } }
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