Transparent Proxy squid 2.6

Good day,

Squid it’s ok with proxy setting, but i need transparent proxy, with http_port 3128 transparent. and iptable - t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
What it’s wrong?

Thanks for your time

Regards
Juan L. Mera

There are a couple of assumptions in that iptables rule:

  1. The requests are coming in on eth1. So if the browser is on the machine itself, this won’t work.

  2. The machine is on the path to the outside world, i.e. it’s a router.

HI !

And sorry for my english :

A howto for a squid transparent proxy :

Linux: Setup a transparent proxy with Squid in three easy steps

For the firewall you can use SuSEfirewall script and add something like this :

/etc/sysconfig/SuSEfirewall2

At 15.)

FW_REDIRECT=“10.0.0.0/8,0/0,tcp,80,3128”

Tcho !

Howto Transparent Caching Server or Appliance - openSUSE