From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH 1/2] ipvs: ip_vs_ftp depends on nf_conntrack_ftp helper Date: Mon, 23 Jul 2012 19:39:06 +0200 Message-ID: <20120723173906.GA1430@1984> References: <1341966327-16606-1-git-send-email-horms@verge.net.au> <1341966327-16606-2-git-send-email-horms@verge.net.au> <20120712153937.GB18793@1984> <20120723064818.GK6603@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Julian Anastasov , lvs-devel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, Wensong Zhang , Hans Schillstrom , Jesper Dangaard Brouer To: Simon Horman Return-path: Received: from mail.us.es ([193.147.175.20]:53926 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754369Ab2GWRjS (ORCPT ); Mon, 23 Jul 2012 13:39:18 -0400 Content-Disposition: inline In-Reply-To: <20120723064818.GK6603@verge.net.au> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Mon, Jul 23, 2012 at 03:48:18PM +0900, Simon Horman wrote: > On Thu, Jul 12, 2012 at 10:43:22PM +0300, Julian Anastasov wrote: > > > > Hello, > > > > On Thu, 12 Jul 2012, Pablo Neira Ayuso wrote: > > > > > On Wed, Jul 11, 2012 at 09:25:26AM +0900, Simon Horman wrote: > > > > From: Julian Anastasov > > > > > > > > The FTP application indirectly depends on the > > > > nf_conntrack_ftp helper for proper NAT support. If the > > > > module is not loaded, IPVS can resize the packets for the > > > > command connection, eg. PASV response but the SEQ adjustment > > > > logic in ipv4_confirm is not called without helper. > > > > > > > > Signed-off-by: Julian Anastasov > > > > Signed-off-by: Simon Horman > > > > --- > > > > net/netfilter/ipvs/Kconfig | 3 ++- > > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/net/netfilter/ipvs/Kconfig b/net/netfilter/ipvs/Kconfig > > > > index f987138..8b2cffd 100644 > > > > --- a/net/netfilter/ipvs/Kconfig > > > > +++ b/net/netfilter/ipvs/Kconfig > > > > @@ -250,7 +250,8 @@ comment 'IPVS application helper' > > > > > > > > config IP_VS_FTP > > > > tristate "FTP protocol helper" > > > > - depends on IP_VS_PROTO_TCP && NF_CONNTRACK && NF_NAT > > > > + depends on IP_VS_PROTO_TCP && NF_CONNTRACK && NF_NAT && \ > > > > + NF_CONNTRACK_FTP > > > > > > If you require FTP NAT support, then this depends on NF_NAT_FTP > > > instead of NF_CONNTRACK_FTP. > > > > No, I just checked again, it works without nf_nat_ftp, > > only nf_nat, nf_conntrack_ftp and iptable_nat are needed. > > We use packet mangling part from nf_nat (nf_nat_mangle_tcp_packet). > > Is there a consensus on this? Fine with me, just wanted to make sure this what you wanted. Thanks Simon.