Skip to content

Commit

Permalink
selftests: netfilter: synproxy test requires nf_conntrack
Browse files Browse the repository at this point in the history
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: 7152303 ("selftests: netfilter: add synproxy test")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Feb 10, 2022
1 parent 2b4e5fb commit 249749c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/testing/selftests/netfilter/nft_synproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 249749c

Please sign in to comment.