Forum Discussion
Raunak_Tiwari
Aug 06, 2020Nimbostratus
How to Create IRule to divert traffic between Pools based on XFF Header
Hello Everyone, I am facing issue with my Irule, Natted Traffic is coming from Imperva WAF and i have take value Value of XFF Header to redirect traffic to specific pool. I am receiving H...
- Aug 07, 2020
Hi Raunak Tiwari,
You should use "class match" for datagroup compare
when HTTP_REQUEST { if { [class match [HTTP::header "X-FORWARDED-FOR"] equals <DataGroupName>] } { pool Federation-ACC-444 } else { pool Federation-ACC-443 } }
Raunak_Tiwari
Aug 15, 2020Nimbostratus
Dear Eaa,
Thanks For your help,
Small change i have done in IRule.
I have used Incap-Client-IP at place of XFF Header.
Imperva supports both headers but in my situation it was using Incap-Client-IP
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