]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: linux: prevent traffic from momentarily leaking into tunnel
authorTom Yan <tom.ty89@gmail.com>
Fri, 17 Jun 2022 11:34:19 +0000 (19:34 +0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 17 Jun 2022 11:53:43 +0000 (13:53 +0200)
commit71799a8f6d1450b63071a21cad6ed434b348d3d5
tree20e5554c36e3b2b48fd89e00d8dcbec093d1067a
parent5b9c1d6d74376d4983a3055078225d95104194f0
wg-quick: linux: prevent traffic from momentarily leaking into tunnel

The wireguard route table ip rule should stay as a no-op until the
`suppress_prefixlength 0 table main` rule is in effect. Therefore, add
the wireguard default route to its route table after the latter rule is
added.

Signed-off-by: Tom Yan <tom.ty89@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/linux.bash