On 08/22/2018 04:49 PM, Mike Wright wrote:
On 08/22/2018 01:59 PM, Samuel Sieb wrote:
> On 08/22/2018 08:59 AM, Patrick O'Callaghan wrote:
>> This is the routing table with the VPN enabled (the virbr stuff is from
>> a VM, not relevant here):
>
> (I rearranged the table.)
>
>> $ route
>> Kernel IP routing table
>> Destination Gateway Genmask Flags Metric Ref Use
>> Iface
>> 0.0.0.0 10.87.0.53 128.0.0.0 UG 0 0 0 tun0
>> 128.0.0.0 10.87.0.53 128.0.0.0 UG 0 0 0 tun0
I've seen this used before. Basically it matches everything so it
"front runs" the default route without having to replace it. I thought
it was pretty clever.
You never have to replace the default route, just provide another one
that has a lower metric. Although doing it this way uses a more
specific match so it doesn't matter what the metric is.