From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emilio Casbas Subject: Re: [semi-OT]: Transparent proxy: SQUID & IPTABLES Date: Thu, 23 Sep 2004 12:11:15 +0200 Sender: netfilter-bounces@lists.netfilter.org Message-ID: <4152A143.7070803@unav.es> References: <200409230802.KAA09921@mail.nexusat.it> <41529FFD.3050304@unav.es> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <41529FFD.3050304@unav.es> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Cc: Giovanni Costagliola Emilio Casbas wrote: > Giovanni Costagliola wrote: > >> Hello all, >> >> I'm attempting to configure a transparent proxy on my lan. >> >> >> >> Default gateway and proxy reside on the same machine. >> >> >> >> I issued the following iptables command: >> >> >> >> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT >> --to-ports 8080 >> >> >> >> where interface eth0 is the one that gateways internal clients. >> >> >> >> I receive a stupid message by squid caused by incorrect URL syntax. >> >> >> >> It seems that getting an URL such as: >> >> >> >> http://www.google.it/search?sourceid=navclient >> >> &hl=it&ie=UTF-8&q=foobar >> >> >> >> reach Squid layer as >> >> >> >> /search?sourceid=navclient&hl=it&ie=UTF-8&q=foobar >> >> >> >> Missing of the protocol and host part! >> >> >> >> How is it possible? >> >> >> >> >> Sorry. This is a tipical web request > You have to configure squid to accept HTTP requests > with partial URIs. > > see http://www.squid-cache.org/Doc/FAQ/FAQ-17.html Thanks Emilio C.