/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-08 / IIS logging with real client IP solution

[ << ] [ >> ]

[ Pound 2.1, Logfile not showning IP of backend / ... ] [ RE: Welcome to [Pound Mailing List] / ... ]

IIS logging with real client IP solution
"Kenneth Lin" <klin(at)rezlink.com>
2006-08-21 19:34:14 [ FULL ]
I figure there are a bunch of IIS users who might have the same trouble I
had with IIS logging Pound's IP (or any other hardware LB) instead of the
real client IP.  I apologize beforehand if this has already been mentioned.
I couldn't find any solutions in the archives.

 

I was able to get mine to log the real client IP after compiling and
installing an ISAPI filter written by David Wang at
http://blogs.msdn.com/david.wang/archive/2005/09/28/HOWTO_ISAPI_Filter_which
_Logs_original_Client_IP_for_Load_Balanced_IIS_Servers.aspx.

 

You'll have to change within the code "X-Client-IP" to "X-Forwarded-For".

 

If you need help compiling it, go here:
http://blogs.msdn.com/david.wang/archive/2005/12/19/HOWTO_Compile_and_Use_my
_ISAPI_Code_Samples.aspx

 

Ken



********************************************************************************************
IMPORTANT: The information contained in this message is privileged and
confidential.  It
is intended only for the use of the individual or entity named above.  If the
reader of this message is not the intended recipient, any dissemination or 
reproduction of it is strictly prohibited.  If you have received this
communication
in error, please contact us at postmaster(at)Rezlink.com immediately.  
Thank you.
********************************************************************************************
Attachments:  
text.html text/html 3756 Bytes

MailBoxer