Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Emilio Casbas <ecasbas@unav.es>
To: netfilter@lists.netfilter.org
Cc: Giovanni Costagliola <giovanni.costagliola@nexusat.it>
Subject: Re: [semi-OT]: Transparent proxy: SQUID & IPTABLES
Date: Thu, 23 Sep 2004 12:11:15 +0200	[thread overview]
Message-ID: <4152A143.7070803@unav.es> (raw)
In-Reply-To: <41529FFD.3050304@unav.es>

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.



      reply	other threads:[~2004-09-23 10:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4152A143.7070803@unav.es \
    --to=ecasbas@unav.es \
    --cc=giovanni.costagliola@nexusat.it \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox