]> git.feebdaed.xyz Git - 0xmirror/openvpn.git/commit
route: handle default gateway (net_gateway) and nexthop towards VPN server separately
authorMarco Baffo <marco@mandelbit.com>
Wed, 19 Nov 2025 11:40:35 +0000 (12:40 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 19 Nov 2025 13:32:56 +0000 (14:32 +0100)
commit2777cdd3783776a91514804233c5e2b715d11d64
tree90a7cddc3521eaa8b3e6b3b8a0df77e107116806
parent3d0d4b1cf6c77f107af323e0ec81b0273c211867
route: handle default gateway (net_gateway) and nexthop towards VPN server separately

Right now there is the assumption that the gateway used for net_gateway is the same used to reach the VPN server.
However, these two gateways may be different (i.e. when there is a specific hostroute for the VPN server using a different nexthop).
For this reason we must adapt init_route_list() to fetch the two gateways separately.

Github: fixes OpenVPN/openvpn#890

Change-Id: I16d90221d0a75193035253817ff195f6da9dc0b3
Signed-off-by: Marco Baffo <marco@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1222
Message-Id: <20251119114041.17665-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34529.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/route.c
src/openvpn/route.h