sgoodliff_83611
Nov 22, 2007Nimbostratus
X-Forwarded-For
Hello,
I've been trying to extract the X-forwarded-For variable with a irule. But when I do something like this.
when HTTP_REQUEST {
set headers [HTTP::header names]
foreach header_name $headers {
log local0. "HTTP_header_DUMP [IP::client_addr] [IP::remote_addr] $header_name: [HTTP::header $header_name] ([string length [HTTP::header $header_name]]) "
}
}
The X-forwarded variable always returns the same as the client_addr and remote_addr which is the proxy server and not the real client.
The proxy sends the header in the request and its set to the correct ip.
Any ideas on how to access the variable or what part of my config must be stripping the variable ?
Thanks
Steve Goodliff