From: Phil Oester <kernel@linuxace.com>
To: Grace Li <zheyinli@hotmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: How does iptables redirect a packet that is not addressed to its local machine
Date: Wed, 7 Apr 2004 16:40:58 -0700 [thread overview]
Message-ID: <20040407234058.GA13050@linuxace.com> (raw)
In-Reply-To: <BAY7-DAV19wEsGmjm0800027007@hotmail.com>
Perhaps you haven't added a corresponding rule to the INPUT table
to actually allow port 2000 to the gateway?
Phil
On Wed, Apr 07, 2004 at 06:16:07PM -0700, Grace Li wrote:
> Hi,
>
> I am just wondering if anybody could explain what happened in the following experiments:
>
> Client (192.168.1.134) tries to connect to port 1888 of Server
> (192.168.1.115) through Gateway (192.168.1.1). In the Gateway, the iptables
> has been instructed to redirect traffic on port 1888 to 2000 (iptables -t
> nat -A PREROUTING -i eth0 -p tcp --dport 1888 -j REDIRECT -to-port 2000 ).
>
> The results of my experiments is that the application on Gateway who listens
> to port 2000 could not get anything, while Server receives everything
> expected on its port 1888. So my question is that did iptables do anything
> here?
>
> Many thanks,
>
> Grace
>
next prev parent reply other threads:[~2004-04-07 23:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-08 1:16 How does iptables redirect a packet that is not addressed to its local machine Grace Li
2004-04-07 22:44 ` Nicholas E. Walker
2004-04-07 23:06 ` Nicholas E. Walker
2004-04-07 22:48 ` Henrik Nordstrom
2004-04-07 23:40 ` Phil Oester [this message]
2004-04-08 5:44 ` zhi wang
-- strict thread matches above, loose matches on Subject: below --
2004-04-08 1:47 wanghtb
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=20040407234058.GA13050@linuxace.com \
--to=kernel@linuxace.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=zheyinli@hotmail.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.