[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210525121507.6602-1-liuhangbin@gmail.com>
Date: Tue, 25 May 2021 08:15:07 -0400
From: Hangbin Liu <liuhangbin@...il.com>
To: netdev@...r.kernel.org
Cc: "Jason A . Donenfeld" <Jason@...c4.com>,
Hangbin Liu <liuhangbin@...il.com>
Subject: [PATCH net] selftests/wireguard: make sure rp_filter disabled on vethc
Some distros may enable strict rp_filter by default, which will previent
vethc receive the packets with unrouteable reverse path address.
Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
---
tools/testing/selftests/wireguard/netns.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/wireguard/netns.sh b/tools/testing/selftests/wireguard/netns.sh
index 7ed7cd95e58f..37b12f642254 100755
--- a/tools/testing/selftests/wireguard/netns.sh
+++ b/tools/testing/selftests/wireguard/netns.sh
@@ -363,6 +363,7 @@ ip1 -6 rule add table main suppress_prefixlength 0
ip1 -4 route add default dev wg0 table 51820
ip1 -4 rule add not fwmark 51820 table 51820
ip1 -4 rule add table main suppress_prefixlength 0
+n1 sysctl -w net.ipv4.conf.vethc.rp_filter=0
# Flood the pings instead of sending just one, to trigger routing table reference counting bugs.
n1 ping -W 1 -c 100 -f 192.168.99.7
n1 ping -W 1 -c 100 -f abab::1111
--
2.26.3
Powered by blists - more mailing lists