summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-02-10 10:11:52 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2022-02-10 16:34:46 +0100
commit249749c88906a00dc937a750406a36dfd11b5701 (patch)
treebb89f48840a3eb35f881d68d6c8fe7747bb6e70a /tools
parent2b4e5fb4d3776c391e40fb33673ba946dd96012d (diff)
downloadlinux-249749c88906a00dc937a750406a36dfd11b5701.tar.bz2
selftests: netfilter: synproxy test requires nf_conntrack
Otherwise, this test does not find the sysctl entry in place: sysctl: cannot stat /proc/sys/net/netfilter/nf_conntrack_tcp_loose: No such file or directory iperf3: error - unable to send control message: Bad file descriptor FAIL: iperf3 returned an error Fixes: 7152303cbec4 ("selftests: netfilter: add synproxy test") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/netfilter/nft_synproxy.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/netfilter/nft_synproxy.sh b/tools/testing/selftests/netfilter/nft_synproxy.sh
index 09bb95c87198..b62933b680d6 100755
--- a/tools/testing/selftests/netfilter/nft_synproxy.sh
+++ b/tools/testing/selftests/netfilter/nft_synproxy.sh
@@ -23,6 +23,8 @@ checktool "ip -Version" "run test without ip tool"
checktool "iperf3 --version" "run test without iperf3"
checktool "ip netns add $nsr" "create net namespace"
+modprobe -q nf_conntrack
+
ip netns add $ns1
ip netns add $ns2