It doesn't sound like you are wanting to use a proxy, but more of a NAT
or IP Masquerading server. Although, you are probably attempting to
determine which user accesses that web server, right?
If you are simply attempting to determine which IP Addresses access the
web server, there are two things that you can do.
1. Setup a user access control list that requires authentication. This
will create a user line for each web-access that goes through the proxy.
This information will be located in your access.log
2. Check the access.log, it may already have all of the information that
you are looking for. If I understand correctly, regardless of how you
setup Squid, it will list all of the IP Addresses as well as the sites
that those internal IP Addresses request. This is all saved in the
access.log.
From my own experience, this file can grow to 4MBs within just a few
days with just a few users accessing it. My internal network has 6 users
that access the proxy server and the file grew to just over 4MB after
almost a week of being in service.
However, if you are attempting to determine the internal IP Addresses
from the machine that is serving up the page, I doubt that is possible
with the proxy, NAT or IP-Masquerading.
Part of the purpose of the 3 above services is to "hide" the internal IP
addresses, allow multiple computers to share one external IP Address or
cut down on bandwidth usage.
I hope that is enough information for you.
Regards,
Robert Adkins
IT Manager/Buyer
IMPEL Industries, Inc.
Office: 586-254-5800
-----Original Message-----
From: jcluzel@onomad.com [mailto:jcluzel@onomad.com]
Sent: Monday, June 10, 2002 3:06 PM
To: mailinglistsquid-users@squid-cache.org; Squid Mailinglist; Robert
Adkins
Subject: [squid-users] How to get client IP ?
Hi,
I use squid 2.3 under win2k as a normal proxy, and I want my Web server
to get
client IP, instead of my proxy IP.
So, I use the following options:
acl local-server dst 192.168.0.55/255.255.255.0
always_direct allow local-server
to force my clients to connect directly to the webserver when they try to
access it.
However, when I trace my http server log, I still have the proxy IP...
May have I forgot something ?
Regards,
Jérémy
Received on Mon Jun 10 2002 - 09:17:08 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:37 MST