Re: [squid-users] redirecting to squid on a local machine

From: saspan <saspan@dont-contact.us>
Date: Fri, 19 Jan 2007 22:16:22 +0100

From: "Henrik Nordstrom" <henrik@henriknordstrom.net>

>> iptables -t -nat -A OUTPUT -m owner ! --owner-uid squid -p tcp
>> --dport 80 -j REDIRECT --to-destination 3128
>>
>> doesn't seem to work,
>
>Should work.
>
>Have you configured squid.conf proper for transparent interception?

At least I think so, I am using squid-2.5.STABLE10-5.2
and my configuration looks like this:

/etc/squid/squid.conf

# HTTP_ACCELERATOR OPTIONS
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

I am at a loss....been searching in several tuts and howtos, tried this and
that, but nothing ever worked properly.

PS: In the iptables-rule above is a little mistake which happened by
recalling
the rule from my memory to write it down here... instead of --to-destination
the rule actually uses --to-ports. Sorry for the confusion.

Regards,

Sascha
Received on Fri Jan 19 2007 - 14:16:32 MST

This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:01 MST