|
@@ -45,6 +45,7 @@
|
|
|
#include <linux/netfilter.h>
|
|
|
#include <net/netfilter/nf_conntrack.h>
|
|
|
#include <net/netfilter/nf_conntrack_expect.h>
|
|
|
+#include <net/netfilter/nf_nat.h>
|
|
|
#include <net/netfilter/nf_nat_helper.h>
|
|
|
#include <linux/gfp.h>
|
|
|
#include <net/protocol.h>
|
|
@@ -359,7 +360,7 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
|
|
|
buf_len = strlen(buf);
|
|
|
|
|
|
ct = nf_ct_get(skb, &ctinfo);
|
|
|
- if (ct && !nf_ct_is_untracked(ct)) {
|
|
|
+ if (ct && !nf_ct_is_untracked(ct) && nfct_nat(ct)) {
|
|
|
/* If mangling fails this function will return 0
|
|
|
* which will cause the packet to be dropped.
|
|
|
* Mangling can only fail under memory pressure,
|