Thanks Gianfranco, it makes sense now. So there is definitely some
(transparent)proxy/firewall that is probably misconfigured and does not
really understand how the Internet works. Should it be spoon-fed a more
typical test URI? Maybe yes. Just keep in mind the mere "connectivity"
idea is very subjective and a bit of a lost cause in the presence of
such "middleboxes":

https://lwn.net/Articles/745590/ QUIC as a solution to protocol
ossification - Jonathan Corbet

Drop the trailing dot now but at some other time and/or somewhere else
the connectivity check fails again due to some other, unexpected
filtering. Note how many pages you can find with
https://www.google.com/search?q=disable+connectivity+check  :-)

> We might even patch network manager to strip the "." after the dns
resolution process if needed, I have to check the code

If you want to keep both variants somehow, then I think it would be more
flexible and generally much better for NM to simply support a list of
MULTIPLE test URIs and return "Connected" when getting a reply from any
of them. That would give not just distributions but anyone including
end-users the flexibility to work around a LOT of misconfiguration and
bugs in middleboxes. Captive portals can be especially buggy and
according to
https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html#id-1.2.3.13,
captive portals is one of the main use cases. Instead of some obscure,
DNS-specific hack in NetworkManager, this is just an actual NM feature
that also provides redundancy.

Multiple URIs could even let end-users decide whether they want to be
"connected" or not when their laptop happens to be in a private network
that is actually and completely _disconnected_ from the Internet! They
could add an internal URI to the list instead of looking at
https://www.google.com/search?q=disable+connectivity+check

The icing on the cake would be for the list of test URIs to be the
combination of multiple [connectivity] section across different
"NetworkManager/conf.d/*.conf" files. Now that list becomes
"scriptable".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2148643

Title:
  [SRU] connectivity-check.ubuntu.com URL change?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2148643/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to