aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-20 23:11:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-24 23:10:15 +0200
commit0a44826235f2e2bdadf738563a5faf2b4011f97c (patch)
treeb06d9fde7786d9b6ab8cd908fa7ec50c5326dd7e
parentcontrib: add sticky sockets example code (diff)
downloadwireguard-monolithic-historical-0a44826235f2e2bdadf738563a5faf2b4011f97c.tar.xz
wireguard-monolithic-historical-0a44826235f2e2bdadf738563a5faf2b4011f97c.zip
netns: disable rp_filter for final test
Diffstat (limited to '')
-rwxr-xr-xsrc/tests/netns.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh
index ea70fb5..6f5ea8f 100755
--- a/src/tests/netns.sh
+++ b/src/tests/netns.sh
@@ -358,6 +358,10 @@ n1 wg set wg0 peer "$pub2" endpoint 10.0.0.2:2
n1 ping -W 1 -c 1 192.168.241.2
[[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.1:1" ]]
ip1 route add 10.0.0.0/24 dev veth3 src 10.0.0.3 metric 1
+n1 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/veth1/rp_filter'
+n2 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/veth4/rp_filter'
+n1 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/all/rp_filter'
+n2 bash -c 'printf 0 > /proc/sys/net/ipv4/conf/all/rp_filter'
n1 ping -W 1 -c 1 192.168.241.2
[[ $(n2 wg show wg0 endpoints) == "$pub1 10.0.0.3:1" ]]