Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ted Kaczmarek <tedkaz@optonline.net>
To: Cedric Blancher <blancher@cartel-securite.fr>
Cc: Igor Popov <igor@garant.koenig.ru>, netfilter@lists.netfilter.org
Subject: Re: REDIRECT to localhost
Date: Wed, 18 Aug 2004 08:22:43 -0400	[thread overview]
Message-ID: <1092831763.14318.39.camel@tarkus> (raw)
In-Reply-To: <1092792092.4025.4.camel@anduril.intranet.cartel-securite.net>

On Wed, 2004-08-18 at 03:21 +0200, Cedric Blancher wrote:
> Le mar 17/08/2004 à 13:02, Igor Popover a acrid :
> > As I know, REDIRECT target redirects to the same if ace, but on another port.
> 
> Nope.
> REDIRECT target redirects to lo interface, on the port you want.
> 
> > I can run squid on PP if ace, because it is created dynamically and I don't 
> > want it to listen on all addresses.
> 
> Just have it run on 127.0.0.1, port 3128, and configure it as a
> transparent proxy (see Squid doc).
> 
> > I have tried to use REDIRECT and DAT, but without any success.
> 
> And finally try this :
> 
> 	iptables -t nat -A PREROUTING -p tcp --dport 80 \
> 		-j REDIRECT --to-ports 3128

As long as you want ALL port 80 traffic hitting your squid. Otherwise
much better to be specific to interface or even ip block(s). Not a good
idea to be mixing squid for internal use with external accelerator usage
IMHO.
> 
> Should work.
> 
> 
Ted




  reply	other threads:[~2004-08-18 12:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16  8:24 REDIRECT to localhost Попов Игорь Николаевич 
2004-08-16 11:15 ` Ted Kaczmarek
2004-08-17 11:02   ` Igor Popov
2004-08-18  1:21     ` Cedric Blancher
2004-08-18 12:22       ` Ted Kaczmarek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-08-16 11:23 igorpopov
2004-08-16 14:17 Jason Opperisano
2004-08-18 12:37 Jason Opperisano
2004-08-18 13:41 ` Cedric Blancher
2004-08-18 13:47   ` Cedric Blancher

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=1092831763.14318.39.camel@tarkus \
    --to=tedkaz@optonline.net \
    --cc=blancher@cartel-securite.fr \
    --cc=igor@garant.koenig.ru \
    --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