From: Patrick McHardy Subject: Re: Patch for CONFIG_IP_NF_NAT_LOCAL in 2.6.11 ? Date: Fri, 11 Mar 2005 06:18:43 +0100 Message-ID: <42312A33.3030603@trash.net> References: <019201c52592$e181a4b0$0a00a8c0@alexandre> <42307E2A.5060806@trash.net> <019f01c52595$dd3a56b0$0a00a8c0@alexandre> <42308509.4040902@trash.net> <01cd01c5259a$89ab8dc0$0a00a8c0@alexandre> <42308B4E.3030303@trash.net> <1110483093.1100.9.camel@tux.rsn.bth.se> <42312929.7000102@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Netfilter-devel To: Martin Josefsson In-Reply-To: <42312929.7000102@trash.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Patrick McHardy wrote: > Martin Josefsson wrote: > >> It simply does not route packets with loopback addresses out via non >> loopback interfaces, and SNAT occurs at POSTROUTING... >> Not sure what a good solution could be, we certainly don't want to the >> possibility to send out packets with 127.0.0.1 as source (like some >> windows virus got the windows stack to do by synflooding a domain that >> later got changed into 127.0.0.1) > > > Maybe we can use 0 as source if LOOPBACK(src). OTOH, I don't think we > want to route packet with loopback source, so we may instead declare > this as a bad testcase :) A different possibility would be retaining the old behaviour for loopback addresses and doing implicit source NAT. Regards Patrick