Forum Discussion
Ayrton_Miguel_S
Nimbostratus
Feb 18, 2016http_class to irule conversion
Does anyone know how to convert a http_class to an irule, the code it's the below. when HTTP_CLASS_SELECTED { if {[HTTP::class asm] == 1 } { if {$disable_asm == 1 } {
ASM::disabl...
Kai_Wilke
MVP
Feb 18, 2016Hi Ayrton Miguel Salazar Cortes,
you may try the following syntax as a starting point...
when HTTP_REQUEST {
set asm_policy "/Common/YOUR_ASM_POLICY"
if { $asm_policy ne "" } then {
ASM::enable $asm_policy
} else {
ASM::disable
}
}
Note: Keep in mind that you have to assign at least one ASM_POLICY (could be a dummy policy) to your Virtual Server to execute the
or [ASM::enable]
commands.[ASM::disable]
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects