What is HTTP Part V - HTTP Profile Basic Settings
Updated Jun 06, 2023
Version 2.0Was this article helpful?
@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