Re: [squid-users] squid2.6STABLE13 and transparent proxy

From: Leonardo Rodrigues Magalhães <leolistas@dont-contact.us>
Date: Mon, 12 May 2008 18:49:22 -0300

melvin obiri escreveu:
> Hi, I need help with transparent proxy on fedora 6 or fedora.
> I have set the http_port to transparent mode as below
> http_port 192.168.0.220:3128 transparent
>
> and made a fowarding rule on iptables but am still not able to do
> transparent proxy
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
>
>

    if i'm not sure, REDIRECT redirects to 127.0.0.1, and your squid is
listening on 192.168.0.220 only.

    try removing the http_port ip, leaving just

http_port 3128 transparent

    or adjust your iptables rule:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to
192.168.0.220:3128

-- 
	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br
	Minha armadilha de SPAM, NÃO mandem email
	gertrudes@solutti.com.br
	My SPAMTRAP, do not email it
Received on Mon May 12 2008 - 21:49:40 MDT

This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 12:00:03 MDT