Forum Discussion

Manu_57441's avatar
Manu_57441
Icon for Nimbostratus rankNimbostratus
Jun 28, 2010

Client Ip in Webserver

Dear Team,

 

 

I have couple of webservers hosted behind my LB, I need to record the client ip of those who all visit my website, now I am getting the IP of LB but I need to know the real client ip.

 

 

 

 

 

1 Reply

  • Hi Manu,

     

     

    For HTTP (or HTTPS traffic that is decypted on LTM), you can have LTM insert the original client IP address in the X-Forwarded-For header by creating a custom HTTP profile with 'Insert XFF' enabled. You can then configure the web server to parse this custom HTTP header value and log it. See this post for details:

     

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/afv/topic/aft/1172654/afc/1196394/Default.aspx

     

     

    Aaron