From mboxrd@z Thu Jan 1 00:00:00 1970 From: Payal Rathod Subject: Re: firewall problem continued Date: Mon, 9 Aug 2004 11:22:46 -0400 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20040809152246.GB21508@tranquility.scriptkitchen.com> References: <20040809081216.GA12643@tranquility.scriptkitchen.com> <200408091155.10375.Antony@Soft-Solutions.co.uk> <20040809111959.GA16482@tranquility.scriptkitchen.com> <200408091231.33128.Antony@Soft-Solutions.co.uk> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <200408091231.33128.Antony@Soft-Solutions.co.uk> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Netfilter ML On Mon, Aug 09, 2004 at 12:31:33PM +0100, Antony Stone wrote: > Exactly the same as your extisting PREROUTING rule, but you put it in the > OUTPUT chain instead (still in the nat table): > > iptables -A OUTPUT -t nat -d 1.2.3.4 -p tcp --dport 25 -j DNAT --to 10.10.10.2 I am at home sick. But I did it remotely and tested it. It works. Thanks a lot Anthony and all who helped. I thought -t nat was never used in output chain. Thanks a lot again and I cannot wait to get back to work to test it throughly. With warm regards, -Payal