From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martijn Lievaart Subject: Re: DNAT not working Date: Wed, 18 Apr 2007 19:34:32 +0200 Message-ID: <462656A8.3090003@rtij.nl> References: <20070418162604.GA10834@tranquility.scriptkitchen.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070418162604.GA10834@tranquility.scriptkitchen.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Payal Rathod wrote: > Hi, > My gateway server is Ubuntu 6.06.1 LTS, iptables v1.3.3. By ifconfig I > have added one more ip say 1.2.3.4 (eth0:1). iptables-save gives me the > output at, > http://pastebin.ca/446625 > > # cat /proc/sys/net/ipv4/ip_forward > 1 > > > But when I connect to 1.2.3.4 port 25, instead of redirecting me to > 10.10.200.2 it connects me to port 25 of the gateway machine. I am > totally confused, can anyone help me out please? > Try -d 1.2.3.4 instead of -s. HTH, M4