You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2019. It is now read-only.
# Demonstrate n2 can still send packets to n1, since persistent-keepalive will prevent connection tracking entry from expiring (to see entries: `n0 conntrack -L`).
281
281
pp sleep 3
282
282
n2 ping -W 1 -c 1 192.168.241.1
283
+
n1 wg set wg0 peer "$pub2" persistent-keepalive 0
284
+
285
+
# Do a wg-quick(8)-style policy routing for the default route, making sure vethc has a v6 address to tease out bugs.
286
+
ip1 -6 addr add fc00::9/96 dev vethc
287
+
ip1 -6 route add default via fc00::1
288
+
ip2 -4 addr add 192.168.99.7/32 dev wg0
289
+
ip2 -6 addr add abab::1111/128 dev wg0
290
+
n1 wg set wg0 fwmark 51820 peer "$pub2" allowed-ips 192.168.99.7,abab::1111
291
+
ip1 -6 route add default dev wg0 table 51820
292
+
ip1 -6 rule add not fwmark 51820 table 51820
293
+
ip1 -6 rule add table main suppress_prefixlength 0
294
+
ip1 -4 route add default dev wg0 table 51820
295
+
ip1 -4 rule add not fwmark 51820 table 51820
296
+
ip1 -4 rule add table main suppress_prefixlength 0
297
+
# suppress_prefixlength only got added in 3.12, and we want to support 3.10+.
298
+
if [[ $(ip1 -4 rule show all)==*suppress_prefixlength* ]];then
299
+
# Flood the pings instead of sending just one, to trigger routing table reference counting bugs.
0 commit comments