NetworkManager/src/vpn
Thomas Haller fa7fafe8fd vpn: resolve route to external VPN gateway from kernel
When activating a route, we commonly need to add a route to the
external VPN gateway, so that the (encrypted) data is not sent over
the VPN itself.

Currently, our VPN connections are rather strongly tied to their
parent device. Maybe the shouldn't be, as VPN may happily support
changing the route from one device/IP address to another.

Anyway, our previous way to determine the gateway for the route
was not great. Instead, ask kernel how to reach the gateway via
(something like) `ip route get`. If kernel would route the packets
to the gateway via our parent device, we take that gateway.

If not, we keep our previous heuristic (which is probably wrong
in this case).
2017-08-24 10:48:03 +02:00
..
nm-vpn-connection.c vpn: resolve route to external VPN gateway from kernel 2017-08-24 10:48:03 +02:00
nm-vpn-connection.h vpn-connection: use NMActiveConnectionStateReason 2017-03-17 10:21:19 +01:00
nm-vpn-manager.c build: rename "src/vpn-manager" to "src/vpn" 2016-11-21 14:07:47 +01:00
nm-vpn-manager.h build: rename "src/vpn-manager" to "src/vpn" 2016-11-21 14:07:47 +01:00