Opened 2 years ago

Last modified 3 weeks 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.7
Component: Networking Version: OpenVPN git master branch (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc: Antonio Quartulli


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 (2)

comment:1 Changed 2 years ago by Gert Döring

Cc: Antonio Quartulli 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 :-)

comment:2 Changed 3 weeks ago by Gert Döring

Milestone: release 2.6release 2.7

Work for 2.6 focused on DCO, not on "routing things".

We still want this, so bumping the milestone to 2.7

Note: See TracTickets for help on using tickets.