Re: [squid-users] Squid logs not showing original client IP

From: Alfonso Alejandro Reyes Jimenez <>
Date: Sat, 17 Dec 2011 08:57:40 -0600


You have 2 options:

First you may disable the sorce nat on your load balancing device.

Second you need to enable the x-forwarder-for option, you are just "preparing" the log to get that information, now you need to send it to the squids log.

I hope this helps.


Ing. Alfonso Alejandro Reyes Jimenez
   Coordinador de Seguridad - SASI
Telefono: 91507489
Movil: (044) 55 85 81 04 62

----- Mensaje original -----
De: Sekar Duraisamy []
Enviado: Saturday, December 17, 2011 07:45 AM
Para: <>
Asunto: [squid-users] Squid logs not showing original client IP


My squid proxy is placed behind the LoadBalancer. So i can see only
the loadbalancer IP as a source IP in the squid logs.

I have configured the log format with %{X-Forwarded-For}>h . But in
this field shows "-" . Not showing original client IP.

How to configure the squid to find the original client IP in squid logs ?

Received on Sat Dec 17 2011 - 14:59:03 MST

This archive was generated by hypermail 2.2.0 : Sun Dec 18 2011 - 12:00:02 MST