Re: [squid-users] transparent proxy with server box itself

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 3 Mar 2004 00:04:13 +0100 (CET)

yOn Tue, 2 Mar 2004, sebelk wrote:

> Hi,
> I'm testing squid as transparent proxy in a standalone pc (only has a ethernet
> card connected by cablemodem to internet). Namely, this computer has two
> interfaces eth0 and lo.

You can't transparently proxy traffic from the proxy server itself, at
least not without extreme care.

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

This requires support for local NAT to be enabled in your kernel. Normally
not enabled.

Please note that it is absulutely required that you also add rules
allowing Squid to access the Internet, if not the above rule will cause a
loop where Squid gets redirected back on itself.

Regards
Henrik
Received on Tue Mar 02 2004 - 16:34:33 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:01 MST