Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: Ethernet port redirection
Date: Wed, 5 Jan 2005 10:52:39 -0500	[thread overview]
Message-ID: <20050105155239.GB24445@bender.817west.com> (raw)
In-Reply-To: <000d01c4f33a$5ac1f590$eaab9385@gagan>

On Wed, Jan 05, 2005 at 08:52:06PM +0530, Navneet wrote:
> Hi,
> 
> Now, pease check this out :-
> I was trying to run squid in transparent mode(Transparent Proxying) ?
> 
> System details:
> RedHat Linux 9
> eth0 133.147.171.169/8 [Internal NIC]
> eth1 172.21.133/14        [External NIC]

maybe i'm being silly--but it sure looks to me like eth0 is external and
eth1 is internal.

> All http request get REDIRECTED to squid  at eth0(Internal).It should work
> as Gateway by means of eth1(External).
> 
> i've done this:
> 1.Enabled IP forwarding
> #echo "1" >/proc/sys/net/ipv4/ip_forward
> 2.iptables (Netfilter) PORT REDIRECTION:
> #iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
> REDIRECT --to-port 3128

are you *positive* that you don't mean eth1 there?

-j

--
"Ah, good ol' trustworthy beer. My love for you will never die."
        --The Simpsons


  reply	other threads:[~2005-01-05 15:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-05 15:22 Ethernet port redirection Navneet
2005-01-05 15:52 ` Jason Opperisano [this message]
2005-01-06 23:48   ` Jose Maria Lopez
     [not found]   ` <002501c4f4b6$278eed40$eaab9385@gagan>
2005-01-07 13:47     ` Jason Opperisano
2005-01-07 11:05 ` Askar

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=20050105155239.GB24445@bender.817west.com \
    --to=opie@817west.com \
    --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