ipvs: register conntrack hooks for ftp
authorJulian Anastasov <ja@ssi.bg>
Thu, 24 May 2018 20:40:12 +0000 (23:40 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Jun 2018 22:55:38 +0000 (00:55 +0200)
commit31875d4970baa02e08b719fdfea6f43e9e2f7e77
treea7a46fcf3b45ba6de424b83cef1fc67859142fd0
parent9c7f96fd77b0dbe1fe7ed1f9c462c45dc48a1076
ipvs: register conntrack hooks for ftp

ip_vs_ftp requires conntrack modules for mangling
of FTP command responses in passive mode.

Make sure the conntrack hooks are registered when
real servers use NAT method in FTP virtual service.
The hooks will be registered while the service is
present.

Fixes: 0c66dc1ea3f0 ("netfilter: conntrack: register hooks in netns when needed by ruleset")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_ctl.c