Am 17.10.2017 um 10:07 schrieb David Woodhouse:
> On Wed, 2017-10-11 at 22:40 +0200, Gernot Hillier wrote:
>>
>> + get_uplink_gw() {
>> + # If we have a specific route to VPNGATEWAY, then this is our
>> + # Internet uplink (VPN tunnel active). If tunnel is not
>>
On Wed, 2017-10-11 at 22:40 +0200, Gernot Hillier wrote:
>
> + get_uplink_gw() {
> + # If we have a specific route to VPNGATEWAY, then this is our
> + # Internet uplink (VPN tunnel active). If tunnel is not
> active,
> + # then the default route sho
Add helper functions to get network device and gateway of default route of our
Internet uplink (not the VPN tunnel). (As bonus, we have get_default_dev for
/sbin/route mode to get information about currently active default route just
to complement get_default_gw.)
Signed-off-by: Gernot Hillier
--