From mboxrd@z Thu Jan 1 00:00:00 1970 From: xchris Subject: Re: redirection Date: Tue, 8 Apr 2003 21:40:27 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200304082140.27919.lyra@fastwebnet.it> References: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: 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" To: netfilter@lists.netfilter.org Cc: Eric Joe On Tuesday 08 April 2003 08:44 pm, Eric Joe wrote: > Do this > > > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d x.y.z.1 -j D= NAT > --to x.y.z.2:80 > > iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to x.y.z.1 am i wrong or i loose the original connection source address? if i check the log in x.y.z.2 i see connections from x.y.z.1. I really need to preserve the source address. Thank you very much xchris