Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "John G. Norman" <john.g.norman@gmail.com>
To: Jason Opperisano <opie@817west.com>, netfilter@lists.netfilter.org
Subject: Re: On vanilla Fedora 3, can't do a transparent proxy (-j REDIRECT)
Date: Mon, 2 May 2005 15:04:20 -0400	[thread overview]
Message-ID: <df31c404050502120435134f8@mail.gmail.com> (raw)
In-Reply-To: <20050502185147.GA12120@bender.817west.com>

Thanks, Jason. Here's netstat.

[root@preview mysql-standard-4.1.11-pc-linux-gnu-i686]# netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat
e
tcp        0      0 0.0.0.0:32768               0.0.0.0:*                   LIST
EN
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LIST
EN
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LIST
EN
tcp        0      0 127.0.0.1:5335              0.0.0.0:*                   LIST
EN
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LIST
EN
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LIST
EN
tcp        0      0 :::8080                     :::*                        LIST
EN
tcp        0      0 :::22                       :::*                        LIST
EN

On 5/2/05, Jason Opperisano <opie@817west.com> wrote:
> On Mon, May 02, 2005 at 02:42:55PM -0400, John G. Norman wrote:
> > Hi. I've been reading through the FAQ and some of the recent list
> > history, and haven't found much guidance on the problem below.
> >
> > I am trying to do a transparent proxy from port 80 to port 8080. I've
> > had no problem doing this on a recent release of SuSE (iptables
> > 1.2.9), but something's not working on Fedora 3.
> >
> > The version of iptables on this release of Fedora is 1.2.11
> >
> > /proc/sys/net/ipv4/ip_forward shows: 1
> >
> > (any other settings in /proc/sys/net/ipv4 that could affect this?)
> >
> > I've tried it two ways, which I think should be equivalent (the
> > system's IP is 192.168.10.101):
> >
> > /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
> > REDIRECT --to-port 8080
> >
> > /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 192.16
> > 8.10.101:8080
> >
> > Port 8080 is definitely open, and I can browse to that port with no
> > problems. For 80, I get connection refused.
> >
> > My filter table is wide open; nothing in mangle, and I show below
> > what's in nat to show that the setting is at least there. Also below I
> > show the nat table when I use -j REDIRECT.
> >
> > Any ideas? I'm completely stumped.
> >
> > John
> 
> what's the output of:  netstat -lnt
> 
> -j
> 
> --
> "Brian: You got anything on that remote lower than Mute?"
>         --Family Guy
> 
>


  reply	other threads:[~2005-05-02 19:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-02 18:42 On vanilla Fedora 3, can't do a transparent proxy (-j REDIRECT) John G. Norman
2005-05-02 18:51 ` Jason Opperisano
2005-05-02 19:04   ` John G. Norman [this message]
2005-05-02 20:57     ` Jason Opperisano
2005-05-02 19:42 ` Taylor, Grant
2005-05-02 20:55   ` John G. Norman
2005-05-02 21:01     ` Jason Opperisano
2005-05-02 21:12       ` Ramoni
2005-05-02 21:18         ` John G. Norman
2005-05-02 21:55           ` Taylor, Grant
2005-05-03  2:27           ` iptables ip forwarding elg3ne
2005-05-02 21:15       ` On vanilla Fedora 3, can't do a transparent proxy (-j REDIRECT) John G. Norman

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=df31c404050502120435134f8@mail.gmail.com \
    --to=john.g.norman@gmail.com \
    --cc=john@7fff.com \
    --cc=netfilter@lists.netfilter.org \
    --cc=opie@817west.com \
    /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