From: zhi wang Subject: Re: How does iptables redirect a packet that is not addressed to its local machine Date: Wed, 7 Apr 2004 22:44:18 -0700 (PDT) Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20040408054418.1592.qmail@web41701.mail.yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Netfilter Develop Return-path: To: Grace Li In-Reply-To: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org > 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 ). At the client execute: traceroute -n 192.168.1.115 to make sure that the client DID send the packet to the gateway __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/