Disabled IPv6 address assignments: Still getting IPv6 resolver queries

2020-07-07 Thread Florian Leeber via networkmanager-list
Hi all,

regarding Network-Manager 1.2.2 on Ubuntu Touch mobile OS:

We have a kernel bug that prevents correct assignment of IPv6 addresses
for most kernels between 3.4 and 3.18 (Android-Kernels, mispatched by
Code Aurora guys). So the idea was to disable IPv6 for the time being,
until we can upgrade network-manager package and see if the problem goes
away (trying to go to 1.14.x).

I was trying on my home internet to disable IPv6 address assignments with

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

in a sysctl.d config. However, I still get (unresolvable) DNS queries
like that:

06:28:41.781916 IP6 fe80::aecf:85ff:fe2a:2a8d.27135 >
2001:730:3e62:1000::53.domain: 53036+ PTR? 0.0.0.0
.in-addr.arpa.
(38)
06:28:41.781982 IP6 fe80::aecf:85ff:fe2a:2a8d.27135 >
2001:730:3e62::53.domain: 53036+ PTR? 0.0.0.0
.in-addr.arpa.
(38)
06:28:41.782127 IP 192.168.0.31
.33657
> compalhub.home.domain: 53036+ PTR? 0.0.0.0
.in-addr.arpa.
(38)
06:28:41.789573 IP6 compalhub.home > fe80::aecf:85ff:fe2a:2a8d: ICMP6,
destination unreachable, beyond scope 2001:730:3e62:1000::53, source
address fe80::aecf:85ff:fe2a:2a8d, length 94
06:28:41.791181 IP6 compalhub.home > fe80::aecf:85ff:fe2a:2a8d: ICMP6,
destination unreachable, beyond scope 2001:730:3e62::53, source address
fe80::aecf:85ff:fe2a:2a8d, length 94

Furthermore, dnsmasq does not try to query on IPv4, where the normal DNS
server would happily serve the request (configured by DHCP), but will
timeout on that queries. Only once in a while it seems to forget IPv6
for some minutes, then DNS queries work.

So the local dnsmasq seems to believe that IPv6 is available. The
question now is, how can I turn off (stateless?) configuration of an
IPv6 resolver that is somehow announced independently if SLAAC is off?

Thanks Florian


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NetworkManager for Ubuntu Touch

2018-12-05 Thread Florian Leeber via networkmanager-list
Hi,

ok super, then we shall try to make a packaging repo for the current
version and use our armhf builder to try if it can build it. One
question ahead of this, if network and WiFi both have provided DNS via
DHCP, how is NM updating the resolver so that not only the route to the
active network is taken but also the DNS proxy knows what to do?

BR Florian

Am 05.12.2018 um 18:23 schrieb Lubomir Rintel:
> It is supposed to.
>
> There were significant improvements to the connectivity checking
> lately. The connectivity checks were previously rather rudimentary,
> providing a simple connected/disconnected status, completely oblivious
> to the device that's actually used for the check.
>
> With an up-to-date NetworkManager we try to make the connectivity check
> use a particular device that has came up and then adjust the route
> metric accordingly. We also expose the result on the D-Bus. For this to
> work robustly you need to have systemd-resolved available (not
> necessarily default), otherwise we're not able to resolve names via a
> particular interface.
>
> I'm really really really not going to help you solve eventual problems
> on a rather old version when we have a new one that is a drop-in
> replacement. On the other hand I'm happy to help if something doesn't
> work with an up-to-date version.


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NetworkManager for Ubuntu Touch

2018-11-23 Thread Florian Leeber via networkmanager-list
Am 21.11.2018 um 19:18 schrieb Lubomir Rintel:
> NetworkManager is doing captive portal detection for ages, though it
> recently got somewhat better. The notification should be done in the
> desktop shell.

Hey cool, I just configured it:

root@ubuntu-phablet:~# tail /var/log/syslog  -f | grep connectivity
Nov 23 22:58:03 ubuntu-phablet NetworkManager[1774]: 
[1543010283.5003] connectivity: check: send periodic request to
'http://connectivity-check.ubuntu.com/'
Nov 23 22:58:03 ubuntu-phablet NetworkManager[1774]: 
[1543010283.8697] connectivity: check for uri
'http://connectivity-check.ubuntu.com/' with Status header successful.
Nov 23 23:03:03 ubuntu-phablet NetworkManager[1774]: 
[1543010583.4998] connectivity: check: send periodic request to
'http://connectivity-check.ubuntu.com/'
Nov 23 23:03:03 ubuntu-phablet NetworkManager[1774]: 
[1543010583.8536] connectivity: check for uri
'http://connectivity-check.ubuntu.com/' with Status header successful.

So we could work with this version already. But a question, can it also
be triggered on any connection going down / being changed? If I
disable/reenable WiFi the connection check should take place immediately...

BR

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unable to add IPv6 address?

2018-11-23 Thread Florian Leeber via networkmanager-list
Oh and here is the tracking issue from us:
https://github.com/ubports/ubuntu-touch/issues/116 - I can see now that
it was at least an issue on 2 devices, with more or less different
kernel versions.

BR

Am 23.11.2018 um 22:44 schrieb Thomas Haller:
> O
>
> please enable level=TRACE logging and show more context. See hints at
> [1] for how to do that.
>
> What is the version of NetworkManager, and which kernel?
>
> https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf
>
> It's probably not directly related to mobile, but IPv6 in general.
>
>
> best,
> Thomas
>
>
>

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unable to add IPv6 address?

2018-11-23 Thread Florian Leeber via networkmanager-list
Hi,

I pasted here a bit more: https://pastebin.com/pkE3Zpbp

The versions are:
- Ubuntu: 16.04
- Kernel Linux ubuntu-phablet 3.4.0-Sultan-CAF
- NM: 1.2.2

BR Florian


Am 23.11.2018 um 22:44 schrieb Thomas Haller:
> On Fri, 2018-11-23 at 22:26 +0100, Florian Leeber via networkmanager-
> list wrote:
>> Hello again,
>>
>> this seems to be phone specific for some reason, but we dont know
>> why.
>> We cannot add IPv6 addies on the mobile:
>>
>> Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
>> [1543008226.9182] platform-linux: netlink: recvmsg: error message
>> from
>> kernel: Invalid argument (22) for request 1653
>> Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
>> [1543008226.9188] platform-linux: do-add-ip6-address[21:
>> 2a02:8388:8980:e700:9c4b:f32a:6c81:df77]: failure 22 (Invalid
>> argument)
>>
>> I found only very few informations about this. Any ides?
>>
>>
>> BR
>>
>>
> Hi,
>
> please enable level=TRACE logging and show more context. See hints at
> [1] for how to do that.
>
> What is the version of NetworkManager, and which kernel?
>
> https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf
>
> It's probably not directly related to mobile, but IPv6 in general.
>
>
> best,
> Thomas
>
>
>

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Unable to add IPv6 address?

2018-11-23 Thread Florian Leeber via networkmanager-list
Hello again,

this seems to be phone specific for some reason, but we dont know why.
We cannot add IPv6 addies on the mobile:

Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
[1543008226.9182] platform-linux: netlink: recvmsg: error message from
kernel: Invalid argument (22) for request 1653
Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
[1543008226.9188] platform-linux: do-add-ip6-address[21:
2a02:8388:8980:e700:9c4b:f32a:6c81:df77]: failure 22 (Invalid argument)

I found only very few informations about this. Any ides?


BR



___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NetworkManager for Ubuntu Touch

2018-11-23 Thread Florian Leeber via networkmanager-list
Hello Lubomir,

great to get you feedback so quickly! And we are happy that you have
good news for us already in the first mail :)

Let me summarize this quickly here, and I will come back and be more
specific when I have more infos on your questions:

- We are still using unity8 as shell, and there is indicator-network
basically displaying that status of WiFi and radio network and allowing
to operate the network connections, enable flight mode etc. Its a new
development made specifically for unity8 if I remember right. And it
should be able to talk to D-Bus. Debian wants to use them in the
so-called Ayatana indicators package, too.

- Regarding builds: The real issue is the rather tight coupling between
the Ubuntu root fs and the Android container which is started at boot
time. So far we are not able to just start Ubuntu Touch without it. A
lot of scripts and magic wait for the successful bringup of the
container. Moreover, some things just dont build correctly for amd64,
but do for armhf. We are working form time to time to get it more
sanitized, for example you could install unity8 shell with the
indicators probably also on a normal PC already. Maybe thats enough?

- The captive portal detection I tried to configure manually for my
device, but since nothing is listening to that event, I cannot tell if
it works properly or not. I might be able to hook up tcpdump or so on
the device to see if he is querying on change of network. So if thats
already in for ages, I hope we can use it right away ;)

- What we currently see sometimes is a long switchover time between
radio and WiFi. Is it NM trying to hold on for the WiFi connection for a
longer time? What also can happen is that the DNS servers dont get
updated, and when you come from WiFi you have a reall long interval
without having DNS lookups.

FYI here is our packaging for NM:
https://github.com/ubports/network-manager-packaging/

I will talk with my guys how we can make a bit more Q&A with you guys,
have a ncie weekend until then!

BR Florian


Am 21.11.2018 um 19:18 schrieb Lubomir Rintel:
> Hello Florian,
>
> thanks for your message.
>
> We're dealing with exact same challenges on machines larger than phones
> too.
>
> For quite some time I think the Canonical folks have done a good job at
> upstreaming their changes. E.g. ofono support got in, which I figure
> was one of the larger patches.
>
> Perhaps there wouldn't be too much stuff left if NM gets rebased to
> something more recent (more on that below).
> There's basically four regular contributors to NetworkManager at the
> moment, all of us happy to improve its usefulness on phones, provided
> we understand what the deficiencies are.
>
> A device could help, but I think even more useful would be an x86
> compose of your distribution that could be run in a VM. Do you have
> such builds? I suppose that would help us understand what are the
> specifics of the phone setup (I guess you run a different desktop
> shell, have Android kernel beneath, ofono instead of ModemManager,
> etc.).
>
> We don't break things, including API/ABI and do regularly test our
> builds on Ubuntu 16.04. The version number in itself doesn't carry much
> meaning -- an update to 1.14.x at this point should be staightforward
> and safe.
>
> NetworkManager is doing captive portal detection for ages, though it
> recently got somewhat better. The notification should be done in the
> desktop shell.
>
> For the reference -- GNOME Shell deals with it and should provide a
> good example. I guess KDE does too. nm-applet does not.
>
> Don't hesitate to ask more, especially when we do something that
> doesn't make sense on a phone or miss something that would be useful.
> The more technical context you provide the better.
>
> I'm quite certain it's not only me who appreciates that you decided to
> keep the upstream project in the loop.
>
> Take care,
> Lubo
>
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


NetworkManager for Ubuntu Touch

2018-11-20 Thread Florian Leeber via networkmanager-list

Greetings,

my name is Florian Leeber and I am in the BoD of the upcoming UBports 
Foundation, which promotes Ubuntu Touch since Canonical has abandoned 
it. We have so far achieved a continuation of the project, delivering an 
upgrade to Ubuntu 16.04 and so forth.


When it comes to networking, some things are crucial for a smooth user 
experience on a mobile device. Unlike to a desktop or fixed server 
device, a mobile device has to tackle a lot of challenges with changing 
networks, WiFi connections, loosing contact, constantly changing IP 
addresses etc.


NetworkManager has been patched for that by Canonical and others, but we 
still think it could improve a lot. But we are a small team, and we are 
constantly looking for help. So in this context, I am currently looking 
for an experienced dev that knows NetworkManager fairly well, in order 
to help us test and improve it for the mobile experience we want to 
achieve. If necessary he/she can receive a test device with Ubuntu Touch 
and the necessary support. However, we cannot pay for the support at 
them moment.


The first goal will be to update/backport things if necessary for the 
currently used 16.04 LTS version (1.2.2 I think). I know this is quite 
old, but we are bound to what we get from usual Ubuntu sources for the 
time being. Backporting can be done by our developers as well, if they 
are guided which things to be aware of.


Another very urgent task is to get connectivity / captive portal 
recognition working, so that users can more easily connect to public 
networks. This involves signalling from NM to the OS in some way so that 
a popup notification with a link to the web browser is being shown.


I am looking forward to hearing from anyone who is interested, her eon 
the ML or on my email addy.


BR Florian
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list