Forum Discussion
Philip_King_719
Nimbostratus
Apr 13, 2007Adding client IP to header info
I've found a couple of articles about being able to add the client IP address to the header information, but haven't seen any that give the exact irule verbage to use. This is what I'm trying to use in the HTTP irule:
when HTTP_REQUEST {
HTTP::header insert ClientIPAddress [IP::client_addr]
}
Anyone out there succcessfully done this and see where I'm going wrong?
- hoolio
Cirrostratus
Your rule looks fine, but I'm guessing that you haven't configured the web server to log that custom header, you've named ClinetIPAddress. You can actually enable the X-Forwarded-For header on your HTTP profile, and then configure the web server to parse and log the header. - hoolio
Cirrostratus
dupe... - Philip_King_719
Nimbostratus
The forward-for worked great. Figures it was something that simple.
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