Skip to contentSkip to conversation

ipvs: ip_vs_ftp depends on nf_conntrack_ftp helper

PATCH In review Julian Anastasov 2 participants 2 messages Jul 7, 2012 – Jul 10, 2012

Subsystems (3)
lore
Share & tools
lore

Julian Anastasov

author maintainer
#0 lore raw

PATCH 1/1 ipvs: ip_vs_ftp depends on nf_conntrack_ftp helper

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.

---
 net/netfilter/ipvs/Kconfig |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/netfilter/ipvs/Kconfig +2 -1
index f987138..8b2cffd 100644
@@ -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
 	select IP_VS_NFCT
 	---help---
 	  FTP is a protocol that transfers IP address and/or port number in
Signature · 1 line
1.7.3.4
maintainer
#1 lore raw
Quoted 7 lines · 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.

Thanks, I have added this to my ipvs-next tree
for inclusion in 3.6.

Quoted 21 lines
---
 net/netfilter/ipvs/Kconfig |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/netfilter/ipvs/Kconfig +2 -1
index f987138..8b2cffd 100644
@@ -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
 	select IP_VS_NFCT
 	---help---
 	  FTP is a protocol that transfers IP address and/or port number in
Signature · 1 line
1.7.3.4