0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00
openvpn/src
Vladislav Grishenko c7f95891a4 Fix IPv4 default gateway with multiple route tables
Current default gateway selection for zero destination address just
dumps and parses all the routing tables. If any of non-main table
with default route comes first, wrong default gateway can be picked.
Since adding/removing routes currently handles only main table,
let's stick to RT_TABLE_MAIN while selecting default route too.

v2: keep gateway address unchanged on lookup error
v3: reduce ammout of gateway address copying

Reported-by: Donald Sharp <donaldsharp72@gmail.com>
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20210416120708.1532-1-themiron@yandex-team.ru>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22130.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
2021-04-18 16:04:53 +02:00
..
compat Remove a number of checks for functions/headers that are always present 2021-04-07 08:31:08 +02:00
openvpn Fix IPv4 default gateway with multiple route tables 2021-04-18 16:04:53 +02:00
openvpnmsica openvpnmsica: Simplify find_adapters() to void return 2020-09-24 13:39:06 +02:00
openvpnserv Remove automatic service 2021-03-31 17:16:11 +02:00
plugins Remove NULL checks before calling free 2020-10-24 21:49:40 +02:00
tapctl Remove support for non ISO C99 vararg support 2021-03-28 16:34:42 +02:00
Makefile.am Introduce tapctl.exe utility and openvpnmsica.dll MSI CA 2019-01-17 15:31:18 +01:00