]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: account for specified fwmark in auto routing mode
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 14 Apr 2018 00:34:28 +0000 (02:34 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 15 Apr 2018 13:41:57 +0000 (15:41 +0200)
commit81879fe34648d1aba618df5a065591538d1492c2
treeee98eafe0f68ea6c5f219fee175c6fc5e536d875
parentcd19f54970c544907d231c0e68568a45b471442c
wg-quick: account for specified fwmark in auto routing mode

If we're doing automatic routing with default routes, but the config has
also specified an explicit fwmark, then use that explicit fwmark, even
if it's conflicting, since the administrator has explicitly opted into
using it. Also, when shutting down the interface, we only now remove the
fancy rules if we're in automatic routing mode with default routes.

Suggested-by: Luis Ressel <aranea@aixah.de>
Reported-by: Saeid Akbari <saeidscorp@yahoo.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick.bash