Forum Discussion
Preet_pk
Jan 17, 2022Cirrus
Multiple ASM policy applied on Virtual Server
Hi, We have a F5 design were single Virtual Server (VIP) is pointing to multiple application on back-end via iRule & iRule load balancing is based on HTTP::host (Layer 7) for eg: w...
Jan 19, 2022
You can apply the ASM policy in your irule when you select the pool. You'll want to enable the policy for the pools that need it and disable it on the pools that dont.
https://devcentral.f5.com/s/question/0D51T00006i7jvy/apply-asm-policy-through-irule
Your code should look something like this:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
pool a_test_Pool1
ASM::enable "/Common/<asm Policy name>"}
pool b_test_Pool1
ASM::disable}
}
}
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