Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto reconnect broken (after longer suspend) #778

Open
homes2001 opened this issue Feb 22, 2025 · 1 comment
Open

auto reconnect broken (after longer suspend) #778

homes2001 opened this issue Feb 22, 2025 · 1 comment

Comments

@homes2001
Copy link

homes2001 commented Feb 22, 2025

When awakening from longer suspend (arch linux), "nordvpn status" shows connected, but ping google.com does not work. However, when i do ping 8.8.8.8, it works.

I don't think it is directly related to suspend. If i suspend for 5 minutes and resume, all works normally. I think it is more due to the fact that probably the connection breaks after many hours, ... however, so far I was only able to observe it after awakening from suspend, so maybe problem appears if connection breaks during suspend.

When i then run nordvpn connect, it successfully connects and internet fully starts working again. So it seems somehow that the "auto reconnect" is stuck / not working. I think nordvpnd discovers that the connection is gone, see the log lines below. So i think it starts trying to reconnect. However, it does not succeed. And only manual "nordvpn connect" helps. I gave it also some time to see if it will eventually succeed in reconnecting itself in the background (~ 1 hour), but it does not (internet stays broken).

Feb 22 07:02:34 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:34 [NC] connection lost: pingresp not received, disconnecting
Feb 22 07:02:34 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:34 [NC] start connection loop

Log file (first log line is from day before, then second and onwards is after suspend):

Feb 21 22:53:01 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/21 22:53:01 [Info] unset allow list
Feb 22 07:02:26 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:26 [Info] refresh VPN, new interface detected: false
Feb 22 07:02:26 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:26 [Info] handle network changes for VPN
Feb 22 07:02:26 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:26 [Info] TELIO(v5.1.5): ThreadId(68) "telio::ffi":516 Telio::notify_network_change entry with instance id: 3813497036202923991.
Feb 22 07:02:26 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:26 [Info] setting dns to 103.86.96.100 103.86.99.100
Feb 22 07:02:26 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:26 [Info] set dns for interface [nordlynx] using: resolved
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] setting dns to 103.86.96.100 103.86.99.100
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] set dns for interface [nordlynx] using: resolved
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] reset allow list
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] unset allow list
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] refresh VPN, new interface detected: false
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] handle network changes for VPN
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] TELIO(v5.1.5): ThreadId(69) "telio::ffi":516 Telio::notify_network_change entry with instance id: 3813497036202923991.
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] setting dns to 103.86.96.100 103.86.99.100
Feb 22 07:02:27 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:27 [Info] set dns for interface [nordlynx] using: resolved
Feb 22 07:02:28 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:28 [Info] setting dns to 103.86.96.100 103.86.99.100
Feb 22 07:02:28 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:28 [Info] set dns for interface [nordlynx] using: resolved
Feb 22 07:02:28 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:28 [Info] reset allow list
Feb 22 07:02:28 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:28 [Info] unset allow list
Feb 22 07:02:34 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:34 [NC] connection lost:  pingresp not received, disconnecting
Feb 22 07:02:34 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:34 [NC] start connection loop
Feb 22 07:02:34 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:02:34 [NC] failed to connect:  network Error : dial tcp: lookup nc-unit3-mqtt.nordvpn.com: no such host
Feb 22 07:06:43 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:06:43 [NC] failed to connect:  network Error : dial tcp: lookup nc-unit3-mqtt.nordvpn.com: no such host
Feb 22 07:11:28 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:11:28 [Info] TELIO(v5.1.5): ThreadId(7) "telio_pmtu":79 PMTU -> IP4(0dc26b7652a0ceeb): 1492
Feb 22 07:11:58 ThinkPad-P14-Gen5 nordvpnd[1309]: 2025/02/22 07:11:58 [Info] HTTP CALL Duration: 29.141948ms
Feb 22 07:11:58 ThinkPad-P14-Gen5 nordvpnd[1309]: Request: HTTP/3 GET https://api.nordvpn.com/v1/servers?filters[servers.id]=0 map[Accept-Encoding:[gzip, deflate] Content-Length:[] Content-Type:[application/json] User-Agent:[NordApp Linux 3.20.0 Linux 6.13.3-arch1-1]]
Feb 22 07:11:58 ThinkPad-P14-Gen5 nordvpnd[1309]: Error: lookup api.nordvpn.com: no such host

My settings are this:

$ nordvpn settings
Technology: NORDLYNX
Firewall: enabled
Firewall Mark: 0xe1f1
Routing: enabled
Analytics: enabled
Kill Switch: enabled
Threat Protection Lite: disabled
Notify: enabled
Tray: disabled
Auto-connect: enabled
IPv6: disabled
Meshnet: disabled
DNS: disabled
LAN Discovery: disabled
Virtual Location: enabled
Post-quantum VPN: disabled
Allowlisted subnets:
192.168.1.0/24
192.168.11.0/20
192.168.0.0/20
192.168.11.0/22
192.168.11.0/23

@mariusSincovici
Copy link
Contributor

Hi,

thank you for your feedback.

If pinging at 8.8.8.8 works that means there is a VPN connection, otherwise the traffic would have been completely block, specially since Kill Switch: enabled.

But it seams that the DNS requests are not working in the system. Could it be that something else is changing the DNS system settings?

When this issues reproduces could you please try to:

  1. check system settings related to DNS, for example resolvectl status | grep -i -e Link -e Scopes -e "DNS Server"
  2. try to resolve hostname using another DNS server, for example using google DNS server nslookup google.com 1.1.1.1
  3. check the system route used to send the traffic, for example ip route get 1.1.1.1

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants