I did some more research
I stopped Network Manager and started debug
# systemctl stop NetworkManager
# sudo /usr/sbin/NetworkManager --debug --log-level=DEBUG
I set the routes manually
$ nmcli con modify "uk-vpn" +ipv4.routes "10.100.100.189/32,10.100.100.190/32"
$ nmcli con show "uk-vpn" |grep ipv4.routes:%s/
ipv4.routes: { ip = 10.100.100.189/32 }; { ip =
10.100.100.190/32 }
When I changed the connection (VPN in my case), it seems that
As soon as I go to the GUIDE I can see both routes and the netmask
10.0.0.189 255.255.255.255
10.0.0.190 255.255.255.255
But as soon I modify, i.e. the netmask (let's say 255.255.255.254) and click
apply, all routes without gateway disappear
$ nmcli con show "uk-vpn" |grep ipv4.routes
ipv4.routes:
Yet in the logs it seem like all went good and successfully saved
$ apt show network-manager
Package: network-manager
Version: 1.46.0-1ubuntu2.5
The log:
** (generate:2340584): WARNING **: 14:23:49.375: Permissions for
/run/netplan/eno1.yaml are too open. Netplan configuration should NOT be
accessible by others.
<debug> [1772544230.6476] ++ connection 'update connection'
(0x560e5da36cd0/NMSimpleConnection/"vpn" <
0x560e5d8aeeb0/NMSimpleConnection/"vpn")
[/org/freedesktop/NetworkManager/Settings/11]:
<debug> [1772544230.6476] ++ vpn [ 0x560e5d93e740 <
0x560e5d8b1e00 ]
<debug> [1772544230.6476] ++ vpn.data = ((GHashTable*)
0x560e5d9a0020) < ((GHashTable*) 0x560e5d9a0020)
<debug> [1772544230.6477] ++ ipv4 [ 0x560e5daffaf0 <
0x560e5d8af0e0 ]
<debug> [1772544230.6477] ++ ipv4.routes = ((GPtrArray*)
0x560e5db409c0) < ((GPtrArray*) 0x560e5db409c0)
<debug> [1772544230.6478] Saving secrets for connection
/org/freedesktop/NetworkManager/Settings/11 (uk-vpn)
<debug> [1772544230.6478] agent-manager:
agent[f6ae40cce2a00db3,:1.83/org.gnome.Shell.NetworkAgent/1000]: agent allowed
for secrets request [31eca8949e24dcaa/"uk-vpn"sav]
<info> [1772544230.6479] audit: op="connection-update"
uuid="a0de4e91-4b51-4af5-98b3-5fd75791350e" name="uk-vpn"
args="vpn.data,ipv4.routes" pid=2340005 uid=1000 result="success"
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2016066
Title:
Gnome Network Manager GUI does not save routes
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/2016066/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs