Forum Discussion
Kalpesh_48932
Jul 16, 2013Nimbostratus
x-forward-for irule
Hello Friends,
I have configured x-forward-for irule on my F5 and also it is enabled on HTTP profile. but it seems its not working cause on Apache server, we are getting only value of se...
Leonardo_39231
Jul 16, 2013Nimbostratus
Kalpesh,
Are you familiar with logging in the irule? I would try logging in the irule to see what headers it's sending out to the pool member(s).
Something like this:
when HTTP_REQUEST {
HTTP::header insert X-Forwarded-For [IP::client_addr]
set LogString "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]"
log local0. "============================================="
log local0. "$LogString (request)"
foreach aHeader [HTTP::header names] {
log local0. "$aHeader: [HTTP::header value $aHeader]"
}
log local0. "============================================="
}
when HTTP_RESPONSE {
log local0. "============================================="
log local0. "$LogString (response) - status: [HTTP::status]"
foreach aHeader [HTTP::header names] {
log local0. "$aHeader: [HTTP::header value $aHeader]"
}
log local0. "============================================="
}
https://devcentral.f5.com/wiki/irules.loghttpheaders.ashx
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