Forum Discussion
Prasad4u
Nimbostratus
Jan 05, 2021Need help with insert true-client-ip to X-Forwarded-For rule on F5 LTM
Hi, Additional INFO: First of I will represent the access as it is done from the client to the F5 CLIENT --> Cloudflare --> F5 Service client try to access to the following hostname tha...
Jan 05, 2021
Hi Prasad4u,
iRule:
when HTTP_REQUEST {
if { [HTTP::header exist True-Client-IP] } {
# Client --> CloudFlare --> F5
HTTP::header replace X-Forwarded-For [HTTP::header True-Client-IP]
}
else {
# Client --> F5
HTTP::header replace X-Forwarded-For [IP::client_addr]
}
}Additional note: In this scenario, don't use source_addr persistence.
Prasad4u
Nimbostratus
Mar 01, 2021Hi Enes Afsin,
Greetings!!
After applying this irule, The VIP stopped working.
Could you please help us here.
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