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.
- Prasad4uMar 01, 2021
Nimbostratus
Hi Enes Afsin,
Greetings!!
After applying this irule, The VIP stopped working.
Could you please help us here.
- Mar 01, 2021
Hi Prasad4u,
Can you investigate /var/log/ltm ?
Is there a log for this irule or another attached irule?
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
