Forum Discussion
Irule for pool selection & enabling WAF
Hi Folks,
Can some one help me write an irule which selects pool member based upon HTTP host match and also enables the waf policy. For example two URLs are (abc.com & ), need to select the same pool member (pool1) & enable the WAF policy in the same IRULE.
Regards, Qamar Zia
- Misa_222415
Cirrus
Hello Qamar Zia!
when HTTP_REQUEST { if { [HTTP::host] equals "abc.com" || "www.abc.com" } { pool ASM::enabled } }
Look, this is a simple one. If you'd try this, make sure you've created a pool with just one member to receive especific connections.
- Stanislas_Piro2
Cumulonimbus
Use a ltm policy instead of irule!
- Qamar_Zia_13515
Nimbostratus
Hi Misa,
Thanks for this, I always have issues with TCL syntax, always getting errors but I am working on it to learn it in detail. Please confirm why the pool with member ? in this setup F5 would be doing traffic load balance across two servers, is there any issue with that ?
Regards, Qamar Zia
- Qamar_Zia_13515
Nimbostratus
Also in the IRULE, where would I specify the ASM policy name ?
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