Norman_Zhang
May 31, 2021Nimbostratus
X-Forwarded-For Log iRule
Currently I have "Insert X-Forwarded-For" field enabled on a http-custom profile. I would like to capture the field in the F5 log.
* To enable this, I need to disable http-custom profile and use iRule to insert and log X-Forwarded-For?
* For the iRule, would this be sufficient?
when HTTP_REQUEST {
HTTP::header insert X-Forwarded-For [IP::remote_addr]
log local0. "X-Forward-IP: [IP::remote_addr]"
}