From: "David S. Miller" Subject: Re: Fw: Fw: [Bugme-new] [Bug 4180] New: masquarade and source ip Date: Mon, 7 Feb 2005 12:14:25 -0800 Message-ID: <20050207121425.53c34af2.davem@davemloft.net> References: <20050207114212.024a09bb.davem@davemloft.net> <4207CC76.8040500@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: rusty@rustcorp.com.au, netfilter-devel@lists.netfilter.org To: Patrick McHardy In-Reply-To: <4207CC76.8040500@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 On Mon, 07 Feb 2005 21:15:50 +0100 Patrick McHardy wrote: > >Didn't this get changed on purpose? > > Yes. One thing we could do to make it more consistent is treat > local packets the same way as forwarded ones in MASQUERADE, then > at least all packets would have the same source address. This check > currently prevents local packets from beeing masqueraded: > > /* FIXME: For the moment, don't do local packets, breaks > testsuite for 2.3.49 --RR */ > if ((*pskb)->sk) > return NF_ACCEPT; > > I'm not sure if we can simply remove it, maybe Rusty remembers :) Ok, when you figure out what's going on please post the analysis to netdev et al., and in particular Andrew or Stephen, so the bugzilla can get closed properly. Thanks.