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
Joined January 20, 2005
Morten_Marstran
Oct 17, 2017Nimbostratus
@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