]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Added support for "on-link" routes on Linux client
authorJames Yonan <james@openvpn.net>
Mon, 26 Dec 2011 00:18:50 +0000 (00:18 +0000)
committerDavid Sommerseth <davids@redhat.com>
Fri, 27 Jan 2012 09:33:56 +0000 (10:33 +0100)
commit8fc83a2d6cfa44032f38e13fc2f7dbc096f584d9
tree7e71254561a80527ae49099fbb41ea285503f06e
parent415421c24ac5b62d59fb8f03076521cba6f126cc
Added support for "on-link" routes on Linux client

These are routes where the gateway is specified as an interface rather
than an address. This allows redirect-gateway to work on Linux clients
whose connection to the internet is via a point-to-point link such as
PPP.

Note that at the moment, this capability is incompatible with
the "redirect-gateway block-local" directive -- this is because
the block-local directive blocks all traffic from the local LAN
except for the local and gateway addresses.  Since a PPP link
is essentially a subnet of two addresses, local and remote (i.e.
gateway), the set of addresses that would be blocked by block-local
is empty.  Therefore, the "redirect-gateway block-local" directive
will be ignored on PPP links.

To view the OpenVPN client's current determination of the default
gateway, use this command:

  ./openvpn --show-gateway

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7794 e7ae566f-a301-0410-adde-c780ea21d3b5
Signed-off-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
ChangeLog
route.c
route.h