Problems with OpenVPN client conf having several remotes
Hello again:) I encountered two problems with an openvpn client conf having several remotes. The first problem occurs when importing a openvpn client config having multiple remotes mixing udp & tcp and using the "implicit udp syntax": $ grep ^remote openvpn.conf ovpn.mydomain.com ovpn.mydomain.com 53 ovpn.mydomain.com 1194 tcp When imported in Network Manager, this translates to (in the vpn settings: Identity → General → Gateway) : ovpn.mydomain.com, ovpn.mydomain.com:53, ovpn.mydomain.com:1194:tcp When I try to enable the vpn connection, it goes back to being disabled immediately. Here is the error message I can see in the journal: Options error: --explicit-exit-notify can only be used with --proto udp Now, if I change the gateway vpn setting to: ovpn.mydomain.com:1194:udp, ovpn.mydomain.com:53:udp, ovpn.mydomain.com:1194:tcp Then, I can enable the vpn and it looks like it's working... **BUT** When I look closer, the fallback/try on the other remotes does not seem to work: on the journal, I can see the tries on the first remote (IPv6, then IPv4), then I see this log entry: Jun 14 19:44:31 nsfw nm-openvpn-serv[333567]: Connect timer expired, disconnecting. This "fallback mechanism" works fine when invoking openvpn directly. Is there something else to do to have it working with Network Manager? Any help greatly appreciated! Thanks, samuel PS: I'm using: $ NetworkManager --version 1.30.4-1.fc34 ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Developing for NetworkManager on Ubuntu
On Mon, Jun 14, 2021 at 11:38 AM Grumbach, Emmanuel via networkmanager-list wrote: > Hi, > > Are there any BKMs on how to hack on the code in Ubuntu? > I compiled my code, replaced the binary but then, when I try to start the > service with: > > sudo service NetworkManager start > > I get > > Jun 14 09:55:16 tglu226 NetworkManager[13711]: Cannot create > '/usr/local/var/run/NetworkManager': Read-only file system > Hi, I just suspect that you have to put the correct --prefix option at compile time, seems you compiled it with /usr/local instead of /usr. Just a guess. Rgds Saxa Jun 14 09:55:16 tglu226 systemd[1]: NetworkManager.service: Main process > exited, code=exited, status=1/FAILURE > > The version that Ubuntu ships for now is 1.22.10. > > > This is how /lib/systemd/system/NetworkManager.service looks like: > > [Unit] > Description=Network Manager > Documentation=man:NetworkManager(8) > Wants=network.target > After=network-pre.target dbus.service > Before=network.target > > [Service] > Type=dbus > BusName=org.freedesktop.NetworkManager > ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager > /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 > #ExecReload=/bin/kill -HUP $MAINPID > ExecStart=/usr/sbin/NetworkManager --no-daemon > Restart=on-failure > # NM doesn't want systemd to kill its children for it > KillMode=process > CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW > CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE > CAP_KILL CAP_SYS_CHROOT > > ProtectSystem=true > ProtectHome=read-only > > [Install] > WantedBy=multi-user.target > Also=NetworkManager-dispatcher.service > > # We want to enable NetworkManager-wait-online.service whenever this > service > # is enabled. NetworkManager-wait-online.service has > # WantedBy=network-online.target, so enabling it only has an effect if > # network-online.target itself is enabled or pulled in by some other unit. > Also=NetworkManager-wait-online.service > > Any help appreciated > > Thanks. > ___ > networkmanager-list mailing list > networkmanager-list@gnome.org > https://mail.gnome.org/mailman/listinfo/networkmanager-list > ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Developing for NetworkManager on Ubuntu
Hi, Are there any BKMs on how to hack on the code in Ubuntu? I compiled my code, replaced the binary but then, when I try to start the service with: sudo service NetworkManager start I get Jun 14 09:55:16 tglu226 NetworkManager[13711]: Cannot create '/usr/local/var/run/NetworkManager': Read-only file system Jun 14 09:55:16 tglu226 systemd[1]: NetworkManager.service: Main process exited, code=exited, status=1/FAILURE The version that Ubuntu ships for now is 1.22.10. This is how /lib/systemd/system/NetworkManager.service looks like: [Unit] Description=Network Manager Documentation=man:NetworkManager(8) Wants=network.target After=network-pre.target dbus.service Before=network.target [Service] Type=dbus BusName=org.freedesktop.NetworkManager ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 #ExecReload=/bin/kill -HUP $MAINPID ExecStart=/usr/sbin/NetworkManager --no-daemon Restart=on-failure # NM doesn't want systemd to kill its children for it KillMode=process CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT ProtectSystem=true ProtectHome=read-only [Install] WantedBy=multi-user.target Also=NetworkManager-dispatcher.service # We want to enable NetworkManager-wait-online.service whenever this service # is enabled. NetworkManager-wait-online.service has # WantedBy=network-online.target, so enabling it only has an effect if # network-online.target itself is enabled or pulled in by some other unit. Also=NetworkManager-wait-online.service Any help appreciated Thanks. ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Developing for NetworkManager on Ubuntu
On Mon, Jun 14, 2021 at 10:36 AM Emmanuel Grumbach wrote: > > Hi, > > Are there any BKMs on how to hack on the code in Ubuntu? > I compiled my code, replaced the binary but then, when I try to start > the service with: > > sudo service NetworkManager start I invoked the NetworkManager binary directly instead of using of the systemd scripts and it works now. Thanks ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Developing for NetworkManager on Ubuntu
Hi, Are there any BKMs on how to hack on the code in Ubuntu? I compiled my code, replaced the binary but then, when I try to start the service with: sudo service NetworkManager start I get Jun 14 09:55:16 tglu226 NetworkManager[13711]: Cannot create '/usr/local/var/run/NetworkManager': Read-only file system Jun 14 09:55:16 tglu226 systemd[1]: NetworkManager.service: Main process exited, code=exited, status=1/FAILURE The version that Ubuntu ships for now is 1.22.10. This is how /lib/systemd/system/NetworkManager.service looks like: [Unit] Description=Network Manager Documentation=man:NetworkManager(8) Wants=network.target After=network-pre.target dbus.service Before=network.target [Service] Type=dbus BusName=org.freedesktop.NetworkManager ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 #ExecReload=/bin/kill -HUP $MAINPID ExecStart=/usr/sbin/NetworkManager --no-daemon Restart=on-failure # NM doesn't want systemd to kill its children for it KillMode=process CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT ProtectSystem=true ProtectHome=read-only [Install] WantedBy=multi-user.target Also=NetworkManager-dispatcher.service # We want to enable NetworkManager-wait-online.service whenever this service # is enabled. NetworkManager-wait-online.service has # WantedBy=network-online.target, so enabling it only has an effect if # network-online.target itself is enabled or pulled in by some other unit. Also=NetworkManager-wait-online.service Any help appreciated Thanks. ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list