From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH] Handle routing changes in MASQUERADE target, v4 Date: Mon, 3 Dec 2012 19:28:05 +0100 Message-ID: <20121203182805.GA22736@1984> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Jozsef Kadlecsik Return-path: Received: from mail.us.es ([193.147.175.20]:43944 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792Ab2LCS2M (ORCPT ); Mon, 3 Dec 2012 13:28:12 -0500 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Fri, Nov 30, 2012 at 11:37:26PM +0100, Jozsef Kadlecsik wrote: > When the route changes (backup default route, VPNs) which affect a > masqueraded target, the packets were sent out with the outdated source > address. The patch addresses the issue by comparing the outgoing interface > directly with the masqueraded interface in the nat table. > > Events are inefficient in this case, because it'd require adding route > events to the network core and then scanning the whole conntrack table > and re-checking the route for all entry. Applied, thanks.