]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: linux: use already configured addresses instead of in-memory
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 17 Dec 2019 13:14:13 +0000 (14:14 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 17 Dec 2019 13:18:09 +0000 (14:18 +0100)
commit6262906e5cbce9c2d430348827782a1c177a6d62
tree4d2834bf10afea3c781df105befbdeec217e5edb
parent64f83e6161204e7930fa4ad05275677f7bec57e4
wg-quick: linux: use already configured addresses instead of in-memory

The ADDRESSES array might not have addresses added during PreUp. But
moreover, nft(8) and iptables(8) don't like ip addresses in the form
somev6prefix::someipv4suffix, such as fd00::1.2.3.4, while ip(8) can
handle it. So by adding these first and then asking for them back, we
always get normalized addresses suitable for nft(8) and iptables(8).

Reported-by: Silvan Nagl <mail@53c70r.de>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/linux.bash