user
June 8, 2008, 1:50am
#1
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:
The requests are coming in on eth1. So if the browser is on the machine itself, this won’t work.
The machine is on the path to the outside world, i.e. it’s a router.
user
June 11, 2008, 9:33am
#3
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 !
user
June 28, 2008, 4:15pm
#4