From: Ramoni <ramoni@databras.com.br>
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 18:12:37 -0300 [thread overview]
Message-ID: <200505021812.37561.ramoni@databras.com.br> (raw)
In-Reply-To: <20050502210104.GB12530@bender.817west.com>
And the prerouting chain at the nat table is not valid for locally generated
packets.
The output chain is for that.
But in all cases, I think Jason is right.
On Monday 02 May 2005 18:01, Jason Opperisano wrote:
> On Mon, May 02, 2005 at 04:55:00PM -0400, John G. Norman wrote:
> > Here's a transcript:
> >
> > [root@preview ~]# /sbin/iptables -t filter -F
> > [root@preview ~]# /sbin/iptables -t mangle -F
> > [root@preview ~]# /sbin/iptables -t nat -F
> > [root@preview ~]# cat /proc/sys/net/ipv4/ip_forward
> > 1
> > [root@preview ~]# /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp
> > --dport 80 80 -j REDIRECT --to-port 80
> > [root@preview ~]# wget http://localhost >/dev/null
>
> your problem is your testing methodology. do not try and test
> transparent proxying from the proxy machine itself--it's not a valid
> test of what you really want; which is transparent proxying of client
> requests made from machines behind the proxy.
>
> start testing from behind the firewall/proxy and see if you still have
> problems.
>
> -j
>
> --
> "Stewie: It rubs the lotion on its skin or else it gets the hose again."
> --Family Guy
--
André "Ramoni" (Cabelo)
Redes / Linux
Nada de Windows
Databras Informatica
Tel: (21) 2518-2363
Fax: (21) 2263-6830
next prev parent reply other threads:[~2005-05-02 21:12 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
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 [this message]
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=200505021812.37561.ramoni@databras.com.br \
--to=ramoni@databras.com.br \
--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 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.