From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Simpson Subject: Re: Send local traffic to a different server. Date: Thu, 24 Jun 2004 14:27:34 -0400 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1088101654.12633.20.camel@simpsonb.hillsboroughcounty.org> References: <200406231500.05742.Antony@Soft-Solutions.co.uk> <1088003535.4009.78.camel@simpsonb.hillsboroughcounty.org> <200406231524.14579.Antony@Soft-Solutions.co.uk> Reply-To: simpsonb@hillsboroughcounty.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200406231524.14579.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" To: netfilter On Wed, 2004-06-23 at 10:24, Antony Stone wrote: > How are packets from the machine we are talking about routed to and from the > Internet? Where is NAT taking place? I got it working! Actually I was testing on Redhat Enterprise Linux ES 3 (RHEL) with no success so I went to Gentoo and was able to get it to work with the following... iptables -t nat -A OUTPUT -p tcp --dport 6000 -d 127.0.0.1 -j DNAT --to 207.156.7.115:80 iptables -t nat -A POSTROUTING -p tcp -d 207.156.7.115 -o eth0 --dport 80 -j SNAT --to-source 172.27.228.220 I suspect that RHEL doesn't have 'NAT of local connections' compiled into the kernel. Thanks for everyone help, Brett