Forum Discussion
Chris_Schaerli_
Nimbostratus
Sep 28, 2008tracking user sessions when snatting
I am looking at changing configuration for load balancing so that we use a snat pool rather than passing the original client IP back to the webservers. Snat will save me many headaches with routing, but I have a group of people that deal with web analytics and they have using the Apache HTTP logs to track site usage. The logs will only show that Snat IP so all their tracking kind of goes out the window. I was thinking about trying to insert the client IP into the headers and maybe they can log off of that, but I was wondering if anyone else had ideas for a good way to track sessions without a unique source IP.
3 Replies
- Scott_85521
Nimbostratus
This is a common on problem encountered when using HTTP accelleration/security devices. Most people use the X-Forwarded header. It is common practice and most good apps are capable of analysing it. There is an option under the http profile to enable the X-Forwarded header. - hoolio
Cirrostratus
As skottieb suggested, using an XFF header is the typical way to track the original client IP address for HTTP requests through a device which performs source address translation to ensure symmetric routing. SOL4816 has some additional information on hwo to configure IIS and Apache to log the custom header (Click here). If you are using the XFF header for something other than reporting, you should consider removing any existing XFF headers in the request. You can do this by configuring the HTTP profile's 'Request Header Erase' field with X-Forwarded-For. - Chris_Schaerli_
Nimbostratus
Ok this sounds pretty simple. One question though, what if I have one user's session passing though the LTM more than once as part of the traffic?
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