Re: [squid-users] IP address , Log File

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Tue, 10 Jan 2006 09:39:06 +0100

On 09.01 23:06, Lucas Nishimura wrote:
> Today i have 2 linux servers, one acting like a router and another is
> the cache server, running squid,
> I'm using this rule:
>
> iptables -t nat -A PREROUTING -i $interface -p tcp --dport 80 -j DNAT
> --to 102.168.10.10:3128

isn't that 192.168.10.10? (just for sure).
And do you have any other rules there?

> But, when open the squid's log file, i get the router server ip
> address instead of the client Ip address...

don't you have SNAT rule there too?

> So, how can i get the real client ip address?

this describes ways to use intercepting proxying:
http://www.faqs.org/docs/Linux-mini/TransparentProxy.html#s6

try method 2.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Chernobyl was an Windows 95 beta test site.
Received on Tue Jan 10 2006 - 01:39:26 MST

This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST