From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Taylor Subject: Re: Redirect back to internal network Date: Fri, 07 Nov 2008 14:51:46 -0600 Message-ID: <4914AA62.30000@riverviewtech.net> References: <491490E0.7080701@riverviewtech.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Mail List - Netfilter On 11/07/08 14:02, Henrique Netfilter wrote: > It actually worked, but only when I also added my PREROUTING DNAT > rule. So the final solution is like this: *nod* You have to have both the PREROUTING rule to DNAT the traffic to the new destination /and/ the POSTROUTING rule to cause the destination to send the reply traffic back through your router. > iptables -t nat -I PREROUTING -i -d > -j DNAT --to > > iptables -t nat -I POSTROUTING -o -s > -d -j SNAT --to > > > Thanks once again. You are welcome. I'm glad that it worked the way that you needed it to. :) Grant. . . .