Thread (7 messages) 7 messages, 2 authors, 2021-06-01

[PATCH net] selftests/wireguard: make sure rp_filter disabled on vethc

flat view
STALE1959d

From: Hangbin Liu <hidden>
Date: 2021-05-25 12:15:21
Subsystem: kernel selftest framework, the rest, wireguard secure network tunnel · Maintainers: Shuah Khan, Shuah Khan, Linus Torvalds, Jason A. Donenfeld

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help