Forum Discussion
Need an iRule to apply AFM policy to inbound traffic based on node IP
Hello, I have a scenario that I need some help with. We have a VS that uses a policy to route traffic to multiple backend nodes based on HTTP Host used in the request. Is it possible to use an iRule to apply a specific AFM policy to this traffic?? The key here is that I need to be able to apply a whitelist to one backend node and a different whitelist to another, etc...
Any assistance is greatly appreciated. Thanks.
- Stanislas_Piro2
Cumulonimbus
Hi,
You can't assign a AFM policy in an irule, but you can assign another VS with a AFM policy assigned.
another solution about your question is to create a policy assigned to the VS with one rule filtering with whitelist followed by a any source rule and assigning an irule filtering on HOST header.
If the host must be filtered, respond with a blocking web page in the irule.
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