Opened 13 months ago

Last modified 13 months ago

#1322 accepted Feature Wish

Use actual VPN gateway address to determine "default" route

Reported by: Gert Döring Owned by: Gert Döring
Priority: major Milestone: release 2.6
Component: Networking Version: OpenVPN git master branch (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc: Antonio


Align IPv4 code with IPv6 code, so "get_default_gateway()" grows an extra field for "destination address to query", and fill that with the VPN gateway's (IPv4) address.

After all, this is what we're interested in, not "some /0 route that might not be the route actually used" (machines with multiple interfaces are getting more common)

Change History (1)

comment:1 Changed 13 months ago by Gert Döring

Cc: Antonio added
Owner: set to Gert Döring
Status: newaccepted

On the BSDs, this should be somewhat easy ("just pass a host IP and a /32 mask").

On Windows, it means "rewrite, using GetBestInterfaceEx?() and GetBestRoute2()" (but possibly can be combined with the IPv6 code).

On Linux, "just pass in the real v4 address, instead of".

And then, testing :-)

Note: See TracTickets for help on using tickets.