summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-10-05 17:34:36 +0200
committerFlorian Westphal <fw@strlen.de>2022-10-12 14:08:15 +0200
commit6a91e7270936c5a504af7e0a197d7021e169d281 (patch)
treeb65441e33152d17aac3dbde39715bae56ed98110 /tools
parentnetfilter: rpfilter/fib: Populate flowic_l3mdev field (diff)
downloadlinux-6a91e7270936c5a504af7e0a197d7021e169d281.tar.xz
linux-6a91e7270936c5a504af7e0a197d7021e169d281.zip
selftests: netfilter: Fix nft_fib.sh for all.rp_filter=1
If net.ipv4.conf.all.rp_filter is set, it overrides the per-interface setting and thus defeats the fix from bbe4c0896d250 ("selftests: netfilter: disable rp_filter on router"). Unset it as well to cover that case. Fixes: bbe4c0896d250 ("selftests: netfilter: disable rp_filter on router") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/netfilter/nft_fib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/netfilter/nft_fib.sh b/tools/testing/selftests/netfilter/nft_fib.sh
index fd76b69635a4..dff476e45e77 100755
--- a/tools/testing/selftests/netfilter/nft_fib.sh
+++ b/tools/testing/selftests/netfilter/nft_fib.sh
@@ -188,6 +188,7 @@ test_ping() {
ip netns exec ${nsrouter} sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
ip netns exec ${nsrouter} sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null
ip netns exec ${nsrouter} sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null
+ip netns exec ${nsrouter} sysctl net.ipv4.conf.all.rp_filter=0 > /dev/null
ip netns exec ${nsrouter} sysctl net.ipv4.conf.veth0.rp_filter=0 > /dev/null
sleep 3