You are not logged in.

#1 2017-03-03 09:11:58

SeoDisparate
Member
Registered: 2015-09-12
Posts: 10

NetworkManager attempts to connect to 138.201.81.199:80 on start

I first noticed this when running

netstat -t -u -a -n -p

soon after booting up a qemu vm (Arch host, Arch guest).

For some reason, something tried to connect to 138.201.81.199:80. I made a simple script started up by systemd to post output of

netstat -t -u -a -n -p

to a log file as root (about 20 times in a 0.5 second interval).

Turns out NetworkManager is trying to connect to this address.

It even tries when I do a

systemctl restart NetworkManager

, and it also does this on my host/main desktop.

I tried visiting the ip address at port 80 with javascript disabled, and I get a "page not found" error, so apparently the website doesn't exist.

Is this something to be worried about? I don't think NetworkManager should be trying to connect to a non-existant website...

EDIT: I tested NetworkManager in a VoidLinux vm, that does not try to access the mentioned ip address. I also tested a fresh Arch Linux install vm and that tries to connect to the mentioned ip address. Seems that it may be unique to Arch?

EDIT2: I tested NetworkManager in a Debian vm, it does not try to access the mentioned ip address.

EDIT3: I tried a reverse dns lookup and it appears that the ip address is pointed to by "apollo.archlinux.org". So apparently Arch systems phone home when NetworkManager is started? What is the purpose of this? I'm not too worried at this point, but an explanation would be nice...

Last edited by SeoDisparate (2017-03-04 08:13:03)

Offline

#2 2017-03-29 16:40:58

devm33
Member
Registered: 2013-03-16
Posts: 2

Re: NetworkManager attempts to connect to 138.201.81.199:80 on start

I dont't know if you found the answer.
But it looks like NetworkManager sends the request below to 138.201.81.199 (www.archlinux.org, apollo.archlinux.org) to check if you can connect to the Internet.

>>
Request:
GET /check_network_status.txt HTTP/1.1
Host: www.archlinux.org
Connection: close

Response:
HTTP/1.1 200 OK
Server: nginx/1.10.3
Date: Wed, 29 Mar 2017 16:23:18 GMT
Content-Type: text/plain
Content-Length: 24
Connection: close

NetworkManager is online
<<

This is captured by Wireshark.
Now I think I'm fine with it.

Offline

#3 2017-04-16 01:48:40

yandere
Member
From: /dev/null
Registered: 2017-04-16
Posts: 6
Website

Re: NetworkManager attempts to connect to 138.201.81.199:80 on start

NetworkManager will try to connect to archlinux.org to test if you have internet access


insert below into your NetworkManager.conf to disable the feature

[connectivity]
interval=0

Offline

#4 2017-04-19 06:47:41

phw
Member
Registered: 2013-05-27
Posts: 318

Re: NetworkManager attempts to connect to 138.201.81.199:80 on start

As yandere said this is NetworkManager trying to determine if internet access is available. You can disable it as described above or use a different server to query, see https://bbs.archlinux.org/viewtopic.php … 3#p1705243

Offline

#5 2017-04-25 14:19:12

annoying_daniel
Member
Registered: 2017-04-08
Posts: 9

Re: NetworkManager attempts to connect to 138.201.81.199:80 on start

yandere wrote:

NetworkManager will try to connect to archlinux.org to test if you have internet access


insert below into your NetworkManager.conf to disable the feature

[connectivity]
interval=0

I'm getting unusually high cpu usage from networkmanager (~10% alone) after adding these two lines and restarting. Deleting the lines and restarting again brings the cpu back to a normal level, no other change.

Don't know if it's related to yesterday's updates since I just found this thread today. It's an issue for those of us on VPNs because the local IP attempts the connection (most likely by design to detect captive portals.) If the lines are not added, journalctl shows the block from local IP to 138.201.81.199:80 and the following (newer message) after a certain number of failed attempts:

NetworkManager[x]: <info>  [x] connectivity: (x) timed out

After that, the process seems to immediately repeat. Can anyone confirm?

Last edited by annoying_daniel (2017-04-25 14:47:08)

Offline

#6 2017-04-26 14:09:36

annoying_daniel
Member
Registered: 2017-04-08
Posts: 9

Re: NetworkManager attempts to connect to 138.201.81.199:80 on start

Workaround to my issue was setting interval to a high number (of seconds) versus 0. I believe #nm is aware and looking into it.

Offline

Board footer

Powered by FluxBB