Re: [squid-users] transparent proxy

From: Michael Hayder <mic-lists-squid@dont-contact.us>
Date: 19 Aug 2002 16:59:13 +0200

On Mon, 2002-08-19 at 14:53, PayalR wrote:

Maybe you forgotten to insert:

httpd_accel_host virtual
http_accel_port 0
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

Read the faq if this is suitable for U.
For me it works.

in your squid.conf
greets
mic

> Hi all,
> I want to use squid as a transparent proxy. So, I read a few docs including
> white paper of visolve and did accordingly. I use Mandrake Linux 8.2 with
> default kernel 2.4.18-6mdk.
>
> Here are the steps I followed.
> 1. I installed squid-2.4.STABLE1 using tar.gz with options
> ./configure --enable-linux-netfilter
> [ here I found that makefile created with ./configure
> --enable-linux-netfilter and just ./configure didn't have any difference ]
>
> 2. I edited the squid.conf properly to suit my requirements and started
> squid. It was working proeprly, a fact which I saw from access.log.
>
> 3. Then,
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-port 3128
>
> 4. My rules were correct which was verified by,
> #iptables -t nat -L
> Chain PREROUTING (policy ACCEPT)
> target prot opt source destination
> REDIRECT tcp -- anywhere anywhere tcp dpt:http
> redir ports
> 3128
>
> Chain POSTROUTING (policy ACCEPT)
> target prot opt source destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source destination
>
> 5. Then I tried to browse without setting the cache in browser (links)
> settings. I could browse alright, but squid's logs were not getting filled.
> That meant squid was not being used.
> What must be the problem? I am having a hard time to solve this.
> Thanks a lot in advance and waiting eagerly for the replies.
> Bye.
> -Payal
>
Received on Mon Aug 19 2002 - 08:59:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:44 MST