Forum Discussion

sukru_isik_8872's avatar
sukru_isik_8872
Icon for Nimbostratus rankNimbostratus
Jul 21, 2013

x forwarded problem

I have an apache server behind f5 VIP.I m using SNAT automap .To see client s real ip on server ,I enabled "x-forwarded for " option in http profile.

 

in access logs,I can see client's real ip; but in error logs,I see f5 self ip.how can I see clients real ip in error logs?

 

4 Replies

  • Enabling the x-forwarded-for in the http profile is only part of the equation. You also have to make changes on the server side for the server to insert the information in the logs accordingly. Google for "apached and x-forwarded-for" as an example.
  • I'm not sure about Apache, but I know that there's an ISAPI filter you have to install/config in IIS to get the forwarded-for IP to appear in the logs.
  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus
    This article should help:

     

     

    https://devcentral.f5.com/blogs/us/using-quotx-forwarded-for-quot-in-apache-or-php.UfFOOdJky-o

     

     

    Rgds

     

    N
  • Can you paste here VIP and pool config?

     

     

    on which port Apache servers listening to traffic?