Skip to contentSkip to conversation

selftests: netfilter: synproxy test requires nf_conntrack

PATCH New Pablo Neira Ayuso 1 participant 1 message Feb 10, 2022

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 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 existe el fichero o el di
iperf3: error - unable to send control message: Bad file descriptor
FAIL: iperf3 returned an error

Fixes 7152303cbec4 ("selftests: netfilter: add synproxy test")
---
 tools/testing/selftests/netfilter/nft_synproxy.sh | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/netfilter/nft_synproxy.sh +2 -0
index 09bb95c87198..b62933b680d6 100755
@@ -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
 
Signature · 1 line
2.30.2