Re: [squid-users] Problem with squid 2.6 on a single computer as a transparent proxy

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 21 Sep 2007 15:27:08 +0200

On fre, 2007-09-21 at 05:37 -0700, hk- wrote:
> I have configured squid to run on a single computer like a transparent proxy.
> I used this mail from the archive as a install guide.
> http://www.mail-archive.com/squid-users@squid-cache.org/msg48149.html
>
> Adding this as a iptables rule
> iptables -t nat -A OUTPUT -o eth0 -p tcp --dport 80 -m owner --uid-owner
> root -j ACCEPT

This needs to be your cache_effective_user, not root... (default nobody
if you are using a standard Squid source build)

> iptables -t nat -A OUTPUT -o eth0 -p tcp --dport 80 -j REDIRECT --to-port
> 3128

Regards
Henrik

Received on Fri Sep 21 2007 - 07:27:13 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT