All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arthur Meyer <arthur.meyer@tbz.ch>
To: netfilter@lists.netfilter.org
Subject: Re: Transparent proxying using REDIRECT
Date: Thu, 17 Jul 2003 07:28:24 +0200	[thread overview]
Message-ID: <200307170728.24666.arthur.meyer@tbz.ch> (raw)
In-Reply-To: <4.2.2.20030717085400.00cb6ac0@vttmail.vtt.fi>

Hello Mikko

You need to change/add three statements in the squid.conf file:
HTTP-Accel-Host virtual
HTTP-Accel with proxy ON
HTTP-Accel uses Host-Header ON

That should do it
Plus Squid has to be compiled with the directive --enable-linux-netfilter (if 
you use Linux)

Arthur

On Thursday 17 July 2003 08:24, Mikko Alutoin wrote:
> Hi,
>
> I have a question about transparent proxying. Suppose I have the following
> rule in my kernel:
>
> iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
>
> The purpose of the rule is that all web traffic is captured by a proxy
> listening to a local port. Now the question:
>
> How does the proxy get to know the original destination IP address and
> port? By looking into the HTTP-request, perhaps? If so, what if the
> application protocol (some other than HTTP) does not contain the
> destination URL?
>
> Cheers,
> Mikko

-- 







  reply	other threads:[~2003-07-17  5:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-17  6:24 Transparent proxying using REDIRECT Mikko Alutoin
2003-07-17  5:28 ` Arthur Meyer [this message]
2003-07-17  7:22 ` Cedric Blancher
2003-07-17  7:35 ` Philip Craig

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=200307170728.24666.arthur.meyer@tbz.ch \
    --to=arthur.meyer@tbz.ch \
    --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 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.