All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grace Li" <zheyinli@hotmail.com>
To: wanghtb@legend.com.cn, netfilter-devel@lists.netfilter.org
Subject: Re: How does iptables redirect a packet that is not addressed to its local machi
Date: Thu, 08 Apr 2004 10:55:57 -0400	[thread overview]
Message-ID: <BAY7-F991UjdSkleUBU00007230@hotmail.com> (raw)

Yes, Client and Server are in the same network!

I used the Ethereal tool, which is similiar to but better than tcpdump.  On 
Client, Server and Gateway, I could all always see that packets are sending 
back and forth from Server and Client.  There is no sign that Gateway 
receives packets on port 1888 or 2000.

Thanks,

Grace


>From: wanghtb@legend.com.cn
>To: netfilter-devel@lists.netfilter.org
>CC: zheyinli@hotmail.com
>Subject: Re: How does iptables redirect a packet that is not addressed to 
>its local machine
>Date: Thu, 8 Apr 2004 09:47:15 +0800
>
>Hi, I wonder if the Client and the Server are in the same network,
>under which the Gateway will send a ICMP Redirect message to
>make the Client access Server directly. version is iptables
>
>Please check netmask of the Machines and use tcpdump packet in the
>Gateway to see what happens:-)
>
> >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
>

_________________________________________________________________
STOP MORE SPAM with the MSN Premium and get 2 months FREE*    
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines

             reply	other threads:[~2004-04-08 14:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-08 14:55 Grace Li [this message]
2004-04-08 15:01 ` How does iptables redirect a packet that is not addressed to its local machi Chris Wilson
2004-04-08 17:08 ` Henrik Nordstrom
  -- strict thread matches above, loose matches on Subject: below --
2004-04-08 14:58 Grace Li
2004-04-08 15:13 Grace Li
2004-04-08 17:01 ` Henrik Nordstrom

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=BAY7-F991UjdSkleUBU00007230@hotmail.com \
    --to=zheyinli@hotmail.com \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=wanghtb@legend.com.cn \
    /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.