1 |
On Sun, Jun 10, 2018 at 10:03 AM Grant Taylor |
2 |
<gtaylor@×××××××××××××××××××××.net> wrote: |
3 |
> |
4 |
> On 06/09/2018 06:31 PM, Hilco Wijbenga wrote: |
5 |
> > Okay, with all that advice, I gave it another try. I'm also setting |
6 |
> > up a VirtualBox for my WFH stuff and VB wants to use 10.0.0.0 for its |
7 |
> > networking. I've changed this to 172.16.0.0 so now I can easily tell |
8 |
> > that network from work network (which seems to use 10.25.0.0) |
9 |
> > |
10 |
> > I wanted to add a route to NetworkManager's VPN connection. It wants |
11 |
> > Address, Network, Gateway, and Metric so I gave it "10.0.0.0", "255.0.0.0" |
12 |
> > (this one shows up automatically), "207.x.y.z", "1". But then VPN fails |
13 |
> > to start with the complaint that the configuration is invalid. |
14 |
> > |
15 |
> > So I tried what I think is the same on the CL: |
16 |
> > |
17 |
> > $> route add -net 10.0.0.0/8 gw "207.x.y.z" metric 1 |
18 |
> > SIOCADDRT: Network is unreachable |
19 |
> > |
20 |
> > So apparently, it's not quite as straightforward as I thought it might |
21 |
> > be. :-) |
22 |
> |
23 |
> I think you're actually quite close. |
24 |
> |
25 |
> I believe the reason NetworkManager's VPN and the route command are |
26 |
> complaining are the same. |
27 |
> |
28 |
> Routing almost always wants the next hop, not the ultimate destination. |
29 |
> |
30 |
> Think about it this way, if you ask for directions in an unfamiliar |
31 |
> building, do you want to be told that you need to go to the office |
32 |
> across the hall from Mary? Or do you want to be told, take the elevator |
33 |
> tot he 4th floor, turn left, and go to the office across the haul from |
34 |
> Mary, she has a big sign on her office. |
35 |
> |
36 |
> "Across the haul from Mary" by itself is useless and unactionable. The |
37 |
> directions that start with the elevator in the lobby is actionable. ;-) |
38 |
|
39 |
Okay, that makes sense, I suppose. What is the next hop? I've googled |
40 |
and googled but I did not find any examples of how to set this up. |
41 |
AFAICT, you're simply supposed to check the "Use only for resources on |
42 |
this connection" checkbox and you're done. |