What is HTTP Part V - HTTP Profile Basic Settings
In the first four parts of this series on HTTP, we laid the foundation for understanding what’s to come. In this article, we’ll focus on the basic settings in the BIG-IP HTTP profile. Before we dive ...
Updated Jun 06, 2023
Version 2.0JRahm
Admin
Christ Follower, Husband, Father, Technologist. I love community and I especially love THIS community. My background is networking, but I've dabbled in all the F5 iStuff, I'm a recovering Perl guy, and am very much a python enthusiast. Learning alongside all of you in this accelerating industry toward modern apps and architectures.Morten_Marstran
Nimbostratus
Oct 17, 2017@Brian, I think you would have to write an iRule for this. In your scenario, I typically use the following iRule:
when HTTP_REQUEST {
if { [HTTP::header exists "X-Forwarded-For"] } {
HTTP::header remove "X-Forwarded-For"
}
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
}
You can easily add an iRule to multiple virtual servers by using the script written by Thomas Brown; https://devcentral.f5.com/questions/add-irule-via-tmsh-without-deleting-existing-irules-and-how-to-re-order
Morten