* [semi-OT]: Transparent proxy: SQUID & IPTABLES
@ 2004-09-23 7:36 Giovanni Costagliola
2004-09-23 10:05 ` Emilio Casbas
0 siblings, 1 reply; 3+ messages in thread
From: Giovanni Costagliola @ 2004-09-23 7:36 UTC (permalink / raw)
To: netfilter
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
<http://www.google.it/search?sourceid=navclient&hl=it&ie=UTF-8&q=foobar>
&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?
cya
*g
:\ Giovanni Costagliola
_______________________
The worst disease for a thinking male?
Deductio Precox
-- *g
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [semi-OT]: Transparent proxy: SQUID & IPTABLES 2004-09-23 7:36 [semi-OT]: Transparent proxy: SQUID & IPTABLES Giovanni Costagliola @ 2004-09-23 10:05 ` Emilio Casbas 2004-09-23 10:11 ` Emilio Casbas 0 siblings, 1 reply; 3+ messages in thread From: Emilio Casbas @ 2004-09-23 10:05 UTC (permalink / raw) To: Giovanni Costagliola; +Cc: netfilter 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 ><http://www.google.it/search?sourceid=navclient&hl=it&ie=UTF-8&q=foobar> >&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? > > > > > This is a tipical proxy 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [semi-OT]: Transparent proxy: SQUID & IPTABLES 2004-09-23 10:05 ` Emilio Casbas @ 2004-09-23 10:11 ` Emilio Casbas 0 siblings, 0 replies; 3+ messages in thread From: Emilio Casbas @ 2004-09-23 10:11 UTC (permalink / raw) To: netfilter; +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 >> <http://www.google.it/search?sourceid=navclient&hl=it&ie=UTF-8&q=foobar> >> &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. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-23 10:11 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-09-23 7:36 [semi-OT]: Transparent proxy: SQUID & IPTABLES Giovanni Costagliola 2004-09-23 10:05 ` Emilio Casbas 2004-09-23 10:11 ` Emilio Casbas
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.