Search squid archive

Re: IP address , Log File

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx ; 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.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux