[squid-users] Log proxy hostname along with HTTP access URI
Peter Oruba
peter at decycive.com
Tue Feb 24 14:44:30 UTC 2015
> Am 24.02.2015 um 15:39 schrieb Ron Wheeler <rwheeler at artifact-software.com>:
>
> On 24/02/2015 9:04 AM, Peter Oruba wrote:
>> Hello everybody,
>>
>> I’d like to distinguish multiple clients that are behind NAT from Squid’s perspective. Proxy authentication or sessions are not an option for different reasons and the idea that came up was to assign each client a unique hostname through which Squid would be addressed (e.g. UUID1.proxy.example.com <http://uuid1.proxy.example.com/> and UUID2.proxy.example.com <http://uuid2.proxy.example.com/>) A DNS wildcard entry *.proxy.example.com <http://proxy.example.com/> would make sure each proxy referral points to the same machine. Question: Is there a way to let Squid log the DNS name through which a client referred to it? I was not able to find any example in this regard and I assume that the proxy hostname is „lost“ after the client's DNS lookup and that the client-proxy connection is established.
>>
>> Thanks,
>> Peter
>>
>>
>>
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org <mailto:squid-users at lists.squid-cache.org>
>> http://lists.squid-cache.org/listinfo/squid-users <http://lists.squid-cache.org/listinfo/squid-users>
> Not a direct answer but...
> Is it possible to get this info from the log kept by the service(http) that is getting the request?
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler at artifact-software.com <mailto:rwheeler at artifact-software.com>
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
Virtual hosts on web servers? Yes, the same principle, but on Squid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150224/fa26c168/attachment-0001.html>
More information about the squid-users
mailing list