RE: [squid-users] How to log Client ip?

From: Szarka Zoltán <szarka@dont-contact.us>
Date: Tue, 4 Oct 2005 14:39:33 +0200

Well, there is no extra settings

by default in config file:
cache_access_log /usr/local/squid/var/logs/access.log

in access.log:

1128327063.698 2151 192.168.1.0 TCP_MISS/407 542 GET http://www.index.hu/
- DEFAULT_PARENT/10.22.23.12 text/html
1128327069.434 1347 192.168.1.0 TCP_MISS/304 217 GET
http://img.index.hu/assets/css/cimlap.css - DEFAULT_PARENT/10.22.23.12 -
1128327069.447 1309 192.168.1.0 TCP_MISS/304 284 GET
http://index.hu/hires/default/templates/scripts.js -
DEFAULT_PARENT/10.22.23.12 -
1128327073.331 5229 192.168.1.0 TCP_MISS/200 7375 GET
http://index.hu/hires/default/templates/_t_cimlap/section.css -
DEFAULT_PARENT/10.22.23.12 text/css
1128327075.197 1621 192.168.1.0 TCP_MISS/302 461 GET
http://sher.index.hu/ad? - DEFAULT_PARENT/10.22.23.12 text/html
1128327075.240 1909 192.168.1.0 TCP_MISS/200 381 GET
http://audit.median.hu/cgi-bin/track.cgi? - DEFAULT_PARENT/10.22.23.12
image/gif
1128327075.247 1616 192.168.1.0 TCP_MISS/304 216 GET
http://img.index.hu/assets/cimlap/ewiw.gif - DEFAULT_PARENT/10.22.23.12 -
1128327076.842 1537 192.168.1.0 TCP_MISS/304 216 GET
http://img.index.hu/assets/fejlec_logo.gif - DEFAULT_PARENT/10.22.23.12 -
1128327077.540 2289 192.168.1.0 TCP_MISS/302 461 GET
http://sher.index.hu/ad? - DEFAULT_PARENT/10.22.23.12 text/html

The problem is, in the colonum of client IP is only the subnet address of
us, not the client's addresses

> > each access? There is only my subnet IP address showing in Access.log :(
>
>
> What did you change in squid.conf?
> What do you have in there?
> Have you read squid.conf.default - the sample config file?
> I am sure it explains about this.
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
> +======================================================================+
> |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com>
> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com
> |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
> '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
> +======================================================================+
> ... at least I thought I was dancing, 'til somebody stepped on my hand.
> -- J. B. White
>
Received on Tue Oct 04 2005 - 06:42:00 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:03 MST