[squid-users] Re: squid + tproxy is not working properly when using url_rewriter and local apache script for youtube caching

From: x-man <x-man_at_vivateam.org>
Date: Wed, 18 Apr 2012 23:35:15 -0700 (PDT)

Hi,

thanks for the reply.

Initially in the url_rewriter I was pointing to
http://localhost/somescript.php..... but after implementing tproxy and I saw
the request are coming from customer real Ip to 127.0.0.1 then I replaced
that line in the url_rewriter with ip address like 192.168.2.2 which is on
one of the interfaces of the squidbox, so now the destination address is
routable IP, but again same problem.

What I saw with tcpdump on the squidbox is something like this:

tcpdump -i lo -n port 80

USER-IP (10.10.10.10) - > APACHE IP (192.168.2.2)

tcpdump -i eth0 -n port 80

APACHE IP (192.168.2.2) - > (10.10.10.10)

So the Request from user is redirected through SQUID to the APACHE php
script and then I think the reply is going directly to the user - but I
think it must go through squid. Can this be the problem?

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-tproxy-is-not-working-properly-when-using-url-rewriter-and-local-apache-script-for-youtube-cacg-tp4568053p4570044.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Apr 19 2012 - 06:35:18 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 19 2012 - 12:00:03 MDT