Re: Programmatically manage no-auto-default.state file?

2022-08-10 Thread Andrei Borzenkov via networkmanager-list
On 10.08.2022 13:09, Thomas Haller wrote: > On Wed, 2022-08-10 at 09:01 +0300, Andrei Borzenkov via networkmanager- > list wrote: >> When automatic connection is deleted/modified, interface is added to >> /var/lib/NetworkManager/no-auto-default.state. Is there any device &

Programmatically manage no-auto-default.state file?

2022-08-10 Thread Andrei Borzenkov via networkmanager-list
When automatic connection is deleted/modified, interface is added to /var/lib/NetworkManager/no-auto-default.state. Is there any device property to show "no-auto-default" state? Is there any command/D-Bus API to remove interface from this list? ___

Re: connection to disable an interface

2022-05-14 Thread Andrei Borzenkov via networkmanager-list
On 14.05.2022 22:24, Thomas Haller wrote: > Hi, > > > On Sat, 2022-05-14 at 07:38 +0300, Andrei Borzenkov via networkmanager- > list wrote: >>> >>> >>> The background is a security requirement. Unused interfaces must >>> ideally remain disable

Re: connection to disable an interface

2022-05-13 Thread Andrei Borzenkov via networkmanager-list
On 14.05.2022 00:23, Adrian Freihofer via networkmanager-list wrote: > Hi > > Is it somehow possible to disable an interface via NetworkManager? > > I am thinking of something like: > > nmcli connection modify con-eth0 802-3-ethernet.phy disabled > nmcli connection up con-eth0 > > which would

Re: Enable virtual interface in pre.d script

2021-11-20 Thread Andrei Borzenkov via networkmanager-list
On 20.11.2021 16:15, Eric wrote: > On 19.11.2021 16:36, Eric wrote: > I have a chicken/egg problem. > > I want to have wlan1 as an interface. I have created a connection to use it. > But it doesn?t exist on reboot so I?d like to have a script in pre.d/ that > will add the interface but NM

Re: Enable virtual interface in pre.d script

2021-11-19 Thread Andrei Borzenkov via networkmanager-list
On 19.11.2021 16:36, Eric wrote: > I have a chicken/egg problem. > > I want to have wlan1 as an interface. I have created a connection to use it. > But it doesn’t exist on reboot so I’d like to have a script in pre.d/ that > will add the interface but NM refuses to start the connection

Chrony IPv6 sources offline after resume - dispatcher script runs before IPv6 is up

2021-08-12 Thread Andrei Borzenkov via networkmanager-list
Chrony comes with sample NetworkManager dispatcher script that offlines NTP sources when interface goes down and onlines them when interface comes up. Technically it runs "chronyc onoffline" which tries to determine whether each source can be reached. This script is actually installed by

Re: Make NetworkManager connection profiles without changing the current network configuration

2021-08-03 Thread Andrei Borzenkov via networkmanager-list
On 03.08.2021 17:38, Thomas Haller via networkmanager-list wrote: > > Also, if you modify profiles via D-Bus API (which is what nmcli does), > then the configuration only take effect when activating the profile the > next time. I mean, the profile changes immediately, but the current > network

Re: Question on using NM to connect to wifi AP

2021-07-28 Thread Andrei Borzenkov via networkmanager-list
On 28.07.2021 19:29, Michael Uman wrote: > Hello, > This is my 1st post to the list so please be forgiving if I am not asking > the question correctly. I am trying to use NM to connect to a wifi SSID and > I have the SSID and password, but I cannot figure out which interfaces and > which objects

Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated

2021-07-15 Thread Andrei Borzenkov via networkmanager-list
On Thu, Jul 15, 2021 at 11:27 AM wrote: > > On Donnerstag, 15. Juli 2021 06:45:06 CEST Andrei Borzenkov via > networkmanager-list wrote: > [...] > > > #!/usr/bin/perl -w > > > > > > use strict; > > > > > > use Data::Dumper; > >

Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated

2021-07-15 Thread Andrei Borzenkov via networkmanager-list
On Wed, Jul 14, 2021 at 5:52 PM Thomas Haller via networkmanager-list wrote: > > So, yes, there should be not much to do except replace the interface > name "org.freedesktop.NetworkManager*" with > "org.freedesktop.DBus.Properties". > It is probably oversimplified. Signatures are different, so

Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated

2021-07-14 Thread Andrei Borzenkov via networkmanager-list
On 14.07.2021 19:30, m...@mike.franken.de wrote: > Hi, > > On Mittwoch, 14. Juli 2021 16:52:15 CEST Thomas Haller wrote: > [...] >>> so how can I use org.freedesktop.DBus.Properties.PropertiesChanged >>> then? >>> What would be the correct way instead? >>> Using >>> my $busobjpath =

Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated

2021-07-14 Thread Andrei Borzenkov via networkmanager-list
On 14.07.2021 21:57, m...@mike.franken.de wrote: > RuntimeError: To make asynchronous calls, receive signals or export objects, > D-Bus connections must be attached to a main loop by passing mainloop=... to > the constructor or calling dbus.set_default_main_loop(...) > > Here is full import

Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated

2021-07-14 Thread Andrei Borzenkov via networkmanager-list
On 14.07.2021 19:58, m...@mike.franken.de wrote: > Hi, > > On Mittwoch, 14. Juli 2021 16:52:53 CEST Andrei Borzenkov via networkmanager- > list wrote: > [...] >>> >>> Probably there is a fundamental misunderstanding regaring the concept on >>> my

Re: org.freedesktop.NetworkManager.Settings.PropertiesChanged deprecated

2021-07-14 Thread Andrei Borzenkov via networkmanager-list
On 14.07.2021 14:32, m...@mike.franken.de wrote: > Hi, > > thx for your answer. > > On Mittwoch, 14. Juli 2021 13:19:44 CEST Thomas Haller wrote: > [...] >>> I use the perl module Net::DBus for this job. >>> The following snippet shows how far I got up to date: >>> >>> my $busobjpath =

Re: VPN connection disappeared from networkmanager

2021-07-11 Thread Andrei Borzenkov via networkmanager-list
On 11.07.2021 19:30, David H Durgee via networkmanager-list wrote: > As you can see froman earlier post I am working to add a VPN connection > to secure my connection when out of the office.  I don't know how or > why, but my VPN connection no longer shows in the connections list! > Given this of

Re: Understanding IPv6-PD over PPPoE

2021-06-16 Thread Andrei Borzenkov via networkmanager-list
On Wed, Jun 16, 2021 at 12:28 PM Steve Hill wrote: > > On 16/06/2021 10:07, Andrei Borzenkov wrote: > > > The default and standard method to assign IPv6 address is SLAAC. > > DHCPv6 is optional. You need to investigate why SLAAC address was not > > assigned. >

Re: Understanding IPv6-PD over PPPoE

2021-06-16 Thread Andrei Borzenkov via networkmanager-list
On Wed, Jun 16, 2021 at 12:13 PM Beniamino Galvani wrote: > > On Wed, Jun 16, 2021 at 11:43:36AM +0300, Andrei Borzenkov wrote: > > > It is explicitly prohibited to assign any IA_PD prefix to the same > > interface via wh

Re: Understanding IPv6-PD over PPPoE

2021-06-16 Thread Andrei Borzenkov via networkmanager-list
On Wed, Jun 16, 2021 at 12:03 PM Steve Hill wrote: > > On 16/06/2021 09:43, Andrei Borzenkov wrote: > > > It is explicitly prohibited to assign any IA_PD prefix to the same > > interface via which this was obtained. > > > >

Re: Understanding IPv6-PD over PPPoE

2021-06-16 Thread Andrei Borzenkov via networkmanager-list
On Wed, Jun 16, 2021 at 11:39 AM Beniamino Galvani via networkmanager-list wrote: > > > > It feels as though NetworkManager should always be making both IA_NA and > > IA_PD requests and, if it didn't receive an IA_NA response from the ISP, it > > should assign an address from the delegated prefix

Re: How to configure NM using dhclient-script file

2020-11-27 Thread Andrei Borzenkov via networkmanager-list
That's rather concise answers. 28.11.2020 06:00, Mars via networkmanager-list пишет: > Hi Thomas, > > > Much thanks for your reply, my problem is that NM cannot deal with the > DHCPv6 message with IA_PD option, It is unclear what you mean here. NM supports IA_PD for connection sharing, it

Re: Putting interface always up with NetworkManager

2020-10-16 Thread Andrei Borzenkov via networkmanager-list
nore-carrier=yes > > ? > Works for me. > Thanks, > Mura Andrei > > On Fri, Oct 16, 2020 at 10:56 AM Andrei Borzenkov > wrote: > >> On Fri, Oct 16, 2020 at 10:15 AM Andrei Petru Mura via >> networkmanager-list wrote: >>> >>> H

Re: Putting interface always up with NetworkManager

2020-10-16 Thread Andrei Borzenkov via networkmanager-list
On Fri, Oct 16, 2020 at 10:15 AM Andrei Petru Mura via networkmanager-list wrote: > > Hi, > > In my CentOS 8, I want to make my network card to be configured at boot time. > The networking is managed by NetworkManager. I configured the connection with > nmcli as such: > > nmcli con add type

Re: How to send DHCPv6 request with IA-PD option within NM

2020-08-28 Thread Andrei Borzenkov via networkmanager-list
On Fri, Aug 28, 2020 at 12:45 PM Mars via networkmanager-list wrote: > > hi all, > > For CentOS 8, NetworkManager is default to manage and configure network > devices, I want to obtain IPv6 address via dhcpv6, found NM always send > dhcpv6 packet with ia-na option, I tried internal dhcp

Re: NetworkManager removes *STATIC* IP address from interface when link down

2020-07-06 Thread Andrei Borzenkov via networkmanager-list
07.07.2020 04:51, Graham пишет: > Thomas, I'm still struggling with this one. > > I read the man page and have created a new file in > /etc/NetworkManager/conf.d > > I also note that the "main" option that you suggested is deprecated in > favour of per-device options, but I have been unable to

Re: Need help porting ifcfg-ppp0 config to NetworkManager

2020-03-27 Thread Andrei Borzenkov via networkmanager-list
28.03.2020 00:30, Beniamino Galvani via networkmanager-list пишет: > On Thu, Mar 26, 2020 at 09:09:36AM +, David Howells via > networkmanager-list wrote: >> Hi, >> >> I need some help porting an ifcfg-ppp0 config from my old internet gateway >> which was running to Fedora 16 to my new

Re: Set permanent route to IPv6 subnet on interface

2020-03-26 Thread Andrei Borzenkov via networkmanager-list
26.03.2020 11:15, Jeremy Ardley пишет: > What is the best NetworkManager method to add a permanent route to an > ipv6 subnet on an interface? > > I can add a temporary route outside of NetworkManager thus: > > ip -6 route add 2001:db8:c111:b000::/56 dev eth0 > Many aspects of IPv6 implicitly

Re: IPV6 auto method not working

2020-03-25 Thread Andrei Borzenkov via networkmanager-list
26.03.2020 02:48, Jeremy Ardley пишет: > I have a debian stretch system acting as a client. > > I have another system acting as ipv6 router and dhcpv6 server . I am > using isc-dhcp-server and radvd router advertisements. > > My issue is that the client instance of NetworkManager is not behaving

Listing currently registered secret agents?

2019-04-19 Thread Andrei Borzenkov via networkmanager-list
Is there any way to see which secret agents are currently registered with NM? basically to see where user connection secrets may be stored? Thank you! ___ networkmanager-list mailing list networkmanager-list@gnome.org

Re: Using both VPN and non-VPN (default route non-VPN)

2018-12-10 Thread Andrei Borzenkov via networkmanager-list
10.12.2018 21:02, Alexandre Garreau via networkmanager-list пишет: > On 2018-12-10 at 18:16, Thomas Haller wrote: >> you need to have the routes configured properly, which depends on your >> environment. > > Maybe should I ask on debian mailing-lists (not that much active, not > sure I can get

Re: Writing resolv.conf issues with broken symlink

2018-05-31 Thread Andrei Borzenkov
31.05.2018 22:02, Matthew Starr пишет: > I am building NetworkManager 1.8.0 using buildroot with SysV init on an ARM > embedded device. Buildroot has the /etc/resolv.conf file as a symlink that > points to /tmp/resolv.conf. When I use NetworkManager with this resolv.conf > symlink

Re: Problem I've been having with dhclient dhcp in Fedora27

2018-01-04 Thread Andrei Borzenkov
04.01.2018 23:59, dpr...@deepplum.com пишет: > I've been having problems with NetworkManager dhcp on my Fedora27 Workstation > (desktop, wired).. Note, because I'm using VMs on that workstation, the > interface is a bridge (br0 with slave eno1). > > What seems to happen is this: > >

Re: Loss of Network Adress is DHCP Server failed for some hours

2017-10-02 Thread Andrei Borzenkov
02.10.2017 18:22, Olaf Hering пишет: > On Mon, Oct 02, Francesco Giudici wrote: > >> With that anyway you miss the option of having different connections >> that could fallback if the "primary" one with dhcp fails. > > How is it a failure if the DHCP server disappears, perhaps right after > it

Re: [PATCH] dhcp/dhclient: Improve "interface" statement parsing

2017-07-06 Thread Andrei Borzenkov
On Thu, Jul 6, 2017 at 1:05 PM, Jonathan Kang wrote: > The previous email was on hold because of the unsubscribed mail account. > > -- Forwarded message - > From: Jonathan Kang > Date: Thu, Jul 6, 2017 at 4:34 PM > Subject:

Re: [PATCH 1/1] start after systemd-networkd

2015-11-25 Thread Andrei Borzenkov
25.11.2015 18:11, Thomas Haller пишет: > On Wed, 2015-11-25 at 15:36 +0100, Christian Hesse wrote: >> Thomas Haller on Wed, 2015/11/25 15:11: >>> On Wed, 2015-11-25 at 11:53 +0100, Christian Hess wrote: From: Christian Hesse It is possible to use

Re: IPv6 with DHCP -- how is default route set?

2015-10-20 Thread Andrei Borzenkov
20.10.2015 19:37, Eloy Paris пишет: I realize now that it is not that nothing happened but that things took a long time (a couple of minutes) to happen -- first, there was a delay to get an IPv6 address, and then there was a delay (after the interface had a global IPv6 address) to see the

Re: IPv6 with DHCP -- how is default route set?

2015-10-20 Thread Andrei Borzenkov
20.10.2015 21:23, Eloy Paris пишет: Do we not send router solicitation messages to avoid having to wait for the next router advertisement message, which could happen who knows when? Yes. I do not know if NM does it. ___ networkmanager-list mailing

Re: How to configure a DHCP + (2nd) Static address (eg on eth0+eth0:0)?

2015-09-29 Thread Andrei Borzenkov
29.09.2015 20:54, Dan Williams пишет: Basically I want to automate NM doing, effectively: ifconfig eth0:0 192.168.x.y Don't do this with interface aliases; the kernel is perfectly capable of using more than one address on the same interface. Simply do: ip addr add 192.168.x.y/24 dev

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-18 Thread Andrei Borzenkov
В Mon, 15 Dec 2014 14:20:45 -0600 Dan Williams d...@redhat.com пишет: On Mon, 2014-12-15 at 20:40 +0300, Andrei Borzenkov wrote: В Mon, 15 Dec 2014 11:34:17 -0600 Dan Williams d...@redhat.com пишет: On Mon, 2014-12-15 at 16:11 +0100, Lennart Poettering wrote: On Sat, 13.12.14

Re: [systemd-devel] Cycle between logind and NetworkManager in case of remote user database

2014-12-15 Thread Andrei Borzenkov
В Mon, 15 Dec 2014 11:34:17 -0600 Dan Williams d...@redhat.com пишет: On Mon, 2014-12-15 at 16:11 +0100, Lennart Poettering wrote: On Sat, 13.12.14 10:09, Andrei Borzenkov (arvidj...@gmail.com) wrote: NetworkManager sets logind inhibitor lock to monitor for suspend events. So

Cycle between logind and NetworkManager in case of remote user database

2014-12-12 Thread Andrei Borzenkov
NetworkManager sets logind inhibitor lock to monitor for suspend events. So it implicitly requires logind to be present when NM starts. logind is ordered after nss-user-lookup.target. If we have remote user database, it means that logind depends on network to be up and running. If network is